eslint-plugin-detect-no-assignment
v0.0.3
Published
Detect functions like map, filter and reduce without being assigned to a variable
Downloads
21
Maintainers
Readme
eslint-plugin-detect-no-assignment
Detect functions like map, filter and reduce without being assigned to a variable.
Installation
You'll first need to install ESLint:
$ npm i eslint --save-dev
or if you use yarn
$ yarn add eslint -D
Next, install eslint-plugin-detect-no-assignment
:
$ npm install eslint-plugin-detect-no-assignment --save-dev
or
$ yarn add eslint-plugin-detect-no-assignment -D
Usage
Add detect-no-assignment
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": ["detect-no-assignment"],
"rules": {
"detect-no-assignment/detect-no-assignment": "error"
}
}