eslint-plugin-welldone
Prevent to use anything except import/export
Installation
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-welldone
:
$ npm install eslint-plugin-welldone --save-dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install eslint-plugin-welldone
globally.
Usage
Add welldone
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": ["welldone"]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"welldone/modules-engagement": "error",
}
}
these are the possible options for the welldone/modules-engagement
rule:
{
"rules": {
"welldone/modules-engagement": ["error", {
"glob": null,
"modulesLevels": {'common': 1, 'shared': 1, 'app': 3},
"middleModulesLevel": 2,
"moduleInnerPaths": [],
"ignoreInnerPathsForModules": ['common', 'shared']
}],
}
}
Supported Rules
- Fill in provided rules here