1.0.5 • Published 2 years 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.jsonfile extending the config:
For React:
{
"extends": "@gitirana/eslint-config/react"
}For Node:
{
"extends": "@gitirana/eslint-config/node"
}You can also use a
.eslintrc.jsinstead of JSON if you prefer.