3.3.1 • Published 3 days ago

@broxus/eslint-config v3.3.1

Weekly downloads
-
License
MIT
Repository
-
Last release
3 days ago

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"]
    },
    ...
}