Skip to content

VSCode plugin

Course: ESLint, Prettier and Pre-commit hooks - chapter 4

Until now, we can’t see any errors in our editor directly. We have to run npm run lint to be able to see them.

  • Install the ESLint VSCode plugin

  • Add .vscode/settings.json

{
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
"eslint.validate": ["javascript", "typescript"]
}
  • Notice code gets auto linted every time you save now