1.0.0 • Published 3 years ago
@piktew/eslint-config-react v1.0.0
TMoweS ESLint config
ESLint configuration used by Piktew.
Whats included?
- Airbnb config
- SonarJS plugin
- React Hooks plugin
- React plugin
- JSX a11y plugin
- Prettier
⚙️ Setup
Install the dependencies
npm i -D eslint @piktew/eslint-config-react
# Or Yarn
yarn add -D eslint @piktew/eslint-config-react
Create a .eslintrc
file extending the config:
{
"extends": "@piktew/eslint-config-react"
}
You can also use a
.eslintrc.js
instead of JSON if you prefer.
📖 Usage
Add lint script to package.json
file:
"scripts": {
...
"lint": "eslint src/**/*.ts* --fix"
}
1.0.0
3 years ago