eslint-config-arista-react
v0.4.1
Published
Arista's eslint config for React/JSX code
Downloads
112
Maintainers
Readme
eslint-config-arista-react
Arista's eslint config for React/JSX code.
Usage
Create an .eslintrc.json
file in your project with something similar to the following:
{
"files": ["**/*.jsx"],
"extends": ["arista-js", "arista-react"]
}
{
"files": ["**/*.tsx"],
"extends": ["arista-ts", "arista-react"],
"parserOptions": {
"project": "./tsconfig.json"
}
}
and add "eslint-config-arista-react": "<VERSION>"
to your package.json
devDependencies.
This config should be applied only to .jsx
and .tsx
files.