1.0.2 • Published 8 years ago
eslint-plugin-feature-modules v1.0.2
eslint-plugin-feature-modules
Plugin for eslint rules that apply to feature modules directory structure
Installation
You'll first need to install ESLint:
$ npm i eslint --save-devNext, install eslint-plugin-feature-modules:
$ npm install eslint-plugin-feature-modules --save-devNote: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-feature-modules globally.
Usage
Add feature-modules to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": [
"feature-modules"
]
}Then configure the rules you want to use under the rules section.
{
"rules": {
"feature-modules/no-deep-module-require": {"moduleFolderName": "modules"}
}
}Supported Rules
- no-deep-module-require - disallow importing other module files that are not exported through module's index.js file. See README of rule