@gotrip/eslint-config

2.3.0 • 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 @gotrip/eslint-config eslint -D

or

yarn add @gotrip/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: [
        ...
        '@gotrip',
        '@gotrip/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": ["@gotrip"]
    },
    ...
}

Readme

Keywords

Package Sidebar

Install

npm i @gotrip/eslint-config

Weekly Downloads

0

Version

2.3.0

License

MIT

Unpacked Size

15.6 kB

Total Files

21

Last publish

Collaborators

  • geronimo