eslint-config-react-tracktor

1.8.1 • Public • Published

eslint-config-react-tracktor

npm version

A set of opinionated ESLint rules for react projects

Installation

yarn add eslint-config-react-tracktor -D

Usage

Create a file named .eslintrc in your root project and extends config :

{
  "extends": "eslint-config-react-tracktor",
  "rules": {
    "...": "..."
  },
  "overrides": "..."
}

Specific rules

For better compatibility with generated api files, some rules are disabled inside src/api folder.

{
  "files": "./src/api/**/*.ts",
  "rules": {
    "indent": "off",
    "no-duplicate-imports": "off",
    "sort-keys": "off",
    "no-redeclare": "off",
  }
}

Read more

Read more about eslint rules here: http://eslint.org/docs/rules

Convention

Package Sidebar

Install

npm i eslint-config-react-tracktor

Weekly Downloads

149

Version

1.8.1

License

ISC

Unpacked Size

7.92 kB

Total Files

6

Last publish

Collaborators

  • mickael-tracktor