eslint-plugin-detect-no-assignment

0.0.3 • Public • Published

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"
  }
}

Package Sidebar

Install

npm i eslint-plugin-detect-no-assignment

Weekly Downloads

1

Version

0.0.3

License

MIT

Unpacked Size

4.62 kB

Total Files

4

Last publish

Collaborators

  • felipebruce