Skip to content

Latest commit

 

History

History
57 lines (36 loc) · 1.16 KB

README.md

File metadata and controls

57 lines (36 loc) · 1.16 KB

Intelie ESLint config

Install the package

yarn add -D @intelie/eslint-config

Install the peer dependencies

npx [email protected] --dev -o --yarn @intelie/eslint-config

On your package.json:

    "prettier": "@intelie/prettier-config",
    "eslintConfig": {
        "extends": "@intelie"
    },

If you need to make custom changes, extend this configuration:

 "extends": "@intelie/eslint-config",
  "rules": {
       ..."your other rules"
      }
 

IDE & Code Editor notes:

IntelliJ

Under Languages & Frameworks > Javascript > Code Quality Tools > ESLint:

  • Automatic ESLint configuration
  • Run eslint --fix on save

VSCode

ESLint extension

  1. Install ESLint extension.
  2. Attach a keyboard shortcut to ESLint fix all auto fixable Problems like {control + shift + i}
  3. Use that shortcut before saving the file.

Troubleshooting

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.