1.0.5 • Published 11 months ago
@gitirana/eslint-config v1.0.5
🎨 My ESLint config
The Rules:
Setup
- If you use VSCode: Install eslint extension
- Install the dependencies
npm i -D eslint @gitirana/eslint-config
- Add this code to your settings.json
If you use WSL, add the code on te Remote Settings
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true,
},
- Create a
.eslintrc.json
file extending the config:
For React:
{
"extends": "@gitirana/eslint-config/react"
}
For Node:
{
"extends": "@gitirana/eslint-config/node"
}
You can also use a
.eslintrc.js
instead of JSON if you prefer.