eslint-config-ezcater-react

6.0.0 • Public • Published

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...
}

Package Sidebar

Install

npm i eslint-config-ezcater-react

Weekly Downloads

423

Version

6.0.0

License

MIT

Unpacked Size

12.9 kB

Total Files

23

Last publish

Collaborators

  • jbeard6ezcater
  • juliantrueflynn
  • noranda
  • pgrippi
  • craigcav
  • danidewitt
  • jasper.chen
  • bjackson2
  • jbelang
  • spdonegan1
  • paul.thiebauth.ezcater
  • avanriellyezcater