New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eslint-config-ezcater-react

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-ezcater-react

The style config for ezCater's React codebases

2.0.0
Source
npm
Version published
Weekly downloads
1K
-26.2%
Maintainers
1
Weekly downloads
 
Created
Source

eslint-config-ezcater-react

npm version

Usage

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

  • Install the package as a dev dependency for your project:
npm i eslint-config-ezcater-react --save-dev
  • Add ezcater-react to the extends section of your project's .eslintrc:
extends: ['ezcater-react'],
  • Add optional scripts to your package.json to run linting checks:
"scripts": {
  "fix:lint": "eslint . --fix",
  "validate:lint": "eslint .",
}
  • 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...
}

Keywords

eslint

FAQs

Package last updated on 02 Apr 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts