prepack/scripts/.eslintrc
Sapan Bhatia f97ccf38d5 Lint rule to prevent imports of modules from lib/* (#2604)
Summary:
Adds a lint rule that rejects imports such as the following:

```js
import ECMAScriptSourceFunctionValue from "../../lib/values/ECMAScriptSourceFunctionValue.js";
```

The path should contain `src` instead of `lib`.
Pull Request resolved: https://github.com/facebook/prepack/pull/2604

Differential Revision: D10432286

Pulled By: sb98052

fbshipit-source-id: 55542de99643a7bf49f8a290a35af35f9b795c7b
2018-10-17 12:56:12 -07:00

6 lines
56 B
Plaintext

{
"rules": {
"no-restricted-imports": "off"
}
}