1.0.2 • Published 3 years ago
@nataliafonseca/eslint-config v1.0.2
ESLint config
Whats included?
- React plugin;
- React Hooks plugin;
- JSX a11y plugin;
- Prettier;
Setup
- Install the dependencies
yarn add -D eslint @nataliafonseca/eslint-config
npm i -D eslint @nataliafonseca/eslint-config
- Create a
.eslintrc.json
file extending the config:
{
"extends": "@nataliafonseca/eslint-config/react"
}
- Create a
.prettierrc.json
file with the config:
{
"printWidth": 100,
"singleQuote": true,
"trailingComma": "all",
"endOfLine": "auto"
}