VSCode plugin
Course: ESLint, Prettier and Pre-commit hooks - chapter 4
Problem
Section titled “Problem”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.
Solution
Section titled “Solution”-
Install the
ESLintVSCode plugin
-
Add
.vscode/settings.json
{ "editor.codeActionsOnSave": { "source.fixAll.eslint": "explicit" }, "eslint.validate": ["javascript", "typescript"]}- Notice code gets
auto lintedevery time you save now
