6.0.0 • Published 2 years ago

eslint-config-ezcater-react v6.0.0

Weekly downloads
250
License
MIT
Repository
github
Last release
2 years ago

eslint-config-ezcater-react

npm version

Usage

Package extends our base ESLint rules, and includes rules for React, JSX, and Jest.

  1. Install the package as a dev dependency for your project:
npm i eslint-config-ezcater-react --save-dev
  1. Add ezcater-react to the extends section of your project's .eslintrc:
extends: ['ezcater-react'],
  1. Add optional scripts to your package.json to run linting checks:
"scripts": {
  "fix:lint": "eslint . --fix",
  "validate:lint": "eslint .",
}
  1. ESLint is configured here to run Prettier along with the other linting rules. But if your text editor supports a Prettier integration, you will probably need to copy the rules in ./rules/prettier.js into a .prettierrc in your project's root directory:
...in .prettierrc

{
  "singleQuote": true,
  "printWidth": 100,
  "trailingComma": "es5",
  etc...
}
6.0.0

2 years ago

5.0.0

3 years ago

4.0.1

4 years ago

3.0.1

6 years ago

3.0.0

6 years ago

2.2.0

6 years ago

2.1.0

6 years ago

2.0.0

6 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago