Intelie ESLint config
yarn add -D @intelie/eslint-config
npx install-peerdeps@2.0.1 --dev -o --yarn @intelie/eslint-config
"prettier": "@intelie/prettier-config",
"eslintConfig": {
"extends": "@intelie"
},
"extends": "@intelie/eslint-config",
"rules": {
..."your other rules"
}
Under Languages & Frameworks > Javascript > Code Quality Tools > ESLint
:
- Automatic ESLint configuration
- Run eslint --fix on save
- Install ESLint extension.
- Attach a keyboard shortcut to
ESLint fix all auto fixable Problems
like{control + shift + i}
- Use that shortcut before saving the file.
Working directories
If your Javascript project is not on the root of the open project you must define the "eslint.workingDirectories": ["my-root-folder"]
setting of the VSCode ESLint plugin to make it work.