0.0.3 • Published 5 years ago
eslint-plugin-detect-no-assignment v0.0.3
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-devor if you use yarn
$ yarn add eslint -DNext, install eslint-plugin-detect-no-assignment:
$ npm install eslint-plugin-detect-no-assignment --save-devor
$ yarn add eslint-plugin-detect-no-assignment -DUsage
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"
}
}