1.0.0 • Published 6 years ago
eslint-plugin-no-module-mutate v1.0.0
eslint-plugin-no-module-mutate
Disallow mutation of imported values
Installation
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-no-module-mutate
:
$ npm install eslint-plugin-no-module-mutate --save-dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install eslint-plugin-no-module-mutate
globally.
Usage
Add no-module-mutate
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"no-module-mutate"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"no-module-mutate/no-module-mutate": 2
}
}
1.0.0
6 years ago