eslint-plugin-bbva

4.0.0 • Public • Published

eslint-plugin-bbva

BBVA eslint plugin

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-bbva:

$ npm install eslint-plugin-bbva --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-bbva globally.

Usage

Add bbva to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
  "plugins": ["bbva"]
}

Then configure the rules you want to use under the rules section.

{
  "rules": {
    "bbva/duplicated-if": 2,
    "bbva/infinite-loop": 2,
    "bbva/inline-conditional": 2,
    "bbva/jquery-selector-length": 2,
    "bbva/no-args-assignment": 2,
    "bbva/useless-increment": 2
  }
}

Package Sidebar

Install

npm i eslint-plugin-bbva

Weekly Downloads

53

Version

4.0.0

License

ISC

Unpacked Size

24.9 kB

Total Files

25

Last publish

Collaborators

  • josex2r
  • bbvaengineer