1.0.5 • Published 11 months ago

@gitirana/eslint-config v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

🎨 My ESLint config

The Rules:

Setup

  1. If you use VSCode: Install eslint extension

ESLint

  1. Install the dependencies
npm i -D eslint @gitirana/eslint-config
  1. Add this code to your settings.json

    If you use WSL, add the code on te Remote Settings

"editor.codeActionsOnSave": {
  "source.fixAll.eslint": true,
},
  1. 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.