@bigcommerce/eslint-config

2.9.0 • Public • Published

@bigcommerce/eslint-config

This package is a configuration preset for ESLint.

Install

npm install --save-dev eslint prettier
npm install --save-dev @bigcommerce/eslint-config

Usage

Add @bigcommerce/eslint-config to your project's ESLint configuration file. i.e.:

// .eslintrc.js
require('@bigcommerce/eslint-config/patch');

module.exports = {
  extends: ['@bigcommerce/eslint-config'],
};

This config also runs prettier via eslint, add the following to your package.json

{
  "prettier": "@bigcommerce/eslint-config/prettier"
}

Stylistic rules are considered warnings for better developer experience, however, we recommend running CI with:

eslint --max-warnings 0

Usage with Next.js

Make sure to also extend from next's core-web-vitals.

// .eslintrc.js
require('@bigcommerce/eslint-config/patch');

module.exports = {
  extends: ['@bigcommerce/eslint-config', 'next/core-web-vitals'],
};

Release

Please refer to the documentation of lerna for release options.

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @bigcommerce/eslint-config

Weekly Downloads

1,519

Version

2.9.0

License

MIT

Unpacked Size

24.2 kB

Total Files

14

Last publish

Collaborators

  • erik.christensen
  • leebigcommerce
  • toma-r
  • cilo
  • jorgemoya
  • bcnpmuser
  • icatalina
  • chris.boulton
  • bcandreik
  • davidchin
  • pascal.zajac
  • deini
  • chanceaclark
  • jairobc
  • jmwiese