1.0.7 • Published 11 months ago

@jumbotail/eslint-config v1.0.7

Weekly downloads
-
License
-
Repository
-
Last release
11 months ago

Installation

npm i --save-dev @jumbotail/eslint-config OR yarn add -D @jumbotail/eslint-config

Configuration

After installation, create a .eslintrc.js (OR .eslintrc.cjs ) file and add this:

module.exports = {
  extends: [
    '@jumbotail/eslint-config',
  ],
  parserOptions: {
    project: [<path to tsconfig.json file in quotes>]
  },
}

You can add other config and plugins.

Overriding rules

Sometimes in our feature project, we might need to add/override some rules. e.g: in this library, the no-console will give a warning. If we want to override in our project, by adding this in .eslintrc.js file.

rules: {
    'no-console':"error",
}

Credits

A big thanks to all the open sourced eslint configs and plugins that we are using. Please support them 🚀