npm.io
1.4.1 • Published 7 months ago

@bigcommerce/eslint-plugin

Licence
MIT
Version
1.4.1
Deps
1
Size
5 kB
Vulns
0
Weekly
0
Stars
3

@bigcommerce/eslint-plugin

This plugin contains a few custom eslint rules we use at BigCommerce. It's enabled by default with @bigcommerce/eslint-config, if you are extending our config, there is no need to do the following install process.

Install

npm install --save-dev @bigcommerce/eslint-plugin

Usage

Add plugin:@bigcommerce/recommended to your project's ESLint configuration file. i.e.:

// .eslintrc.js
module.exports = {
  extends: ['plugin:@bigcommerce/recommended'],
};
Rules

@bigcommerce/jsx-short-circuit-conditionals:

Disallows usage of string / number while short-circuiting jsx