1.0.0 • Published 7 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-devNext, install eslint-plugin-no-module-mutate:
$ npm install eslint-plugin-no-module-mutate --save-devNote: 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
7 years ago