@broxus/eslint-config

3.3.1 • Public • Published

Recommended ESLint configuration to create formatted code with best practices. Based on the AirBnB ESLint config.

Installation

Install the package as development dependency, alongside eslint package

npm i @broxus/eslint-config eslint -D

or

yarn add @broxus/eslint-config eslint -D

Usage

Create the .eslintrc.js file in the root directory of your project and put code below to the file

module.exports = {
    extends: [
        ...
        '@broxus',
        '@broxus/eslint-config/hooks', // includes react-hooks rules 
        ...
        'prettier' // eslint-config-prettier
    ],
    rules: {
        // ...your own custom rules and overrides
    }
}

or add code below to the package.json

{
    ...
    "eslintConfig": {
        "extends": ["@broxus"]
    },
    ...
}

Readme

Keywords

Package Sidebar

Install

npm i @broxus/eslint-config

Weekly Downloads

107

Version

3.3.1

License

MIT

Unpacked Size

15.7 kB

Total Files

21

Last publish

Collaborators

  • pavel337
  • odrin
  • 30mb1
  • geronimo
  • rexagon
  • pavlovdog_