Plugin for eslint rules that apply to feature modules directory structure
npm install eslint-plugin-feature-modulesPlugin for eslint rules that apply to feature modules directory structure
You'll first need to install ESLint:
```
$ npm i eslint --save-dev
Next, install eslint-plugin-feature-modules:
``
$ npm install eslint-plugin-feature-modules --save-dev
Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-feature-modules globally.
Add feature-modules to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
`json`
{
"plugins": [
"feature-modules"
]
}
Then configure the rules you want to use under the rules section.
`json``
{
"rules": {
"feature-modules/no-deep-module-require": {"moduleFolderName": "modules"}
}
}
* no-deep-module-require - disallow importing other module files that are not exported through module's index.js file. See README of rule