Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

eslint-plugin-bbva

BBVAEngineering56ISC4.0.0

BBVA eslint plugin

eslint, eslintplugin, eslint-plugin, rules

readme

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

changelog

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

4.0.0 (2021-08-31)

Bug Fixes

  • change eslint peer range (0272e6b)
  • config: add external plugins declaration (976feb0)
  • no-throw-in-unchained-promise: fix false positives (bf45bbc)
  • no-transition-abort-in-routes: fix runtime error (7e36449)
  • package: add external dependencies (99f49da)
  • plugin: add eslint peer dependency (4655338)
  • rule: enable "prefer-promise-reject-errors" as error (9261346)

Features

  • 🎸 bump version (40b8278)
  • 🎸 comentario adri (ea2e627)
  • 🎸 correccion eslint warnings (bc4903e)
  • 🎸 nuevas reglas (da027b8)
  • 🎸 nuevas reglas de seguridad (96c281d)
  • 🎸 package-lock (265abdc)
  • 🎸 package-lock (e1dbc18)
  • 🎸 package-lock (90be52f)
  • 🎸 se elimina eslint-plugin-security (a01ebff)
  • 🎸 subida de versiones (74054d2)
  • 🎸 subida version eslint (524cfe2)
  • add eslint-plugin-decorator-position to config (440fef1)
  • add rule exceptions for prettier (d99e0a4)
  • bump versions (5e39161)
  • empty-line-before-return: add new case and tets (bb79aec)
  • empty-line-before-return: change flag type from string to bool (8ad4a93)
  • empty-line-before-return: create new rule (552a447)
  • empty-line-before-return: remove custom rule, update config (5f806a3)
  • eslint-config-bbva: fix incorrectly named rule (20ed015)
  • no-throw-in-unchained-promise: doc and tests (610ea8c)
  • no-throw-in-unchained-promise: new rule (5c75277)
  • no-transition-abort-in-routes: better doc (368b098)
  • no-transition-abort-in-routes: new rule (b49759c)
  • no-transition-abort-in-routes: pr comments (e1b1675)
  • no-transition-abort-in-routes: tests and doc (f822955)
  • prefer-rsvp-promise-reject-errors: create new rule (d6cfe6b)
  • prefer-rsvp-promise-reject-errors: fix tests (ce681a9)
  • prefer-rsvp-promise-reject-errors: move code to util (b8e9ef8)
  • prefer-throw-in-promise: doc (283c94e)
  • prefer-throw-in-promise: doc (befa682)
  • prefer-throw-in-promise: new rule (19dd627)
  • prefer-throw-in-promise: pr comments (b1fde78)
  • tests: misc tests improvements & coverage (1d48214)

BREAKING CHANGES

  • removed a lot of style rules
  • dependencies
  • dependencies