Skip to content

Commit

Permalink
Dev: Use local eslint in vscode
Browse files Browse the repository at this point in the history
The live linter must be configured to use our version of eslint and
plugins. Otherwise, a global install would be needed.
  • Loading branch information
deribaucourt committed Sep 20, 2024
1 parent 879d0de commit 6164864
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@
"source.fixAll.eslint": "explicit"
},
"jest.jestCommandLine": "node_modules/.bin/jest",
"jest.monitorLongRun": 300000
"jest.monitorLongRun": 300000,
"eslint.nodePath": "${workspaceFolder}/node_modules",
}
6 changes: 1 addition & 5 deletions README-DEVELOPER.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,7 @@ One can check coding style using
``` sh
npm run lint
```
Install the recommended extensions to automatically fix linting errors through VSCode.
You will also need to install the `eslint` dependencies globally:
``` sh
npm install -g eslint typescript-eslint
```
Install the recommended extensions to automatically fix linting errors when possible.

### Unit tests

Expand Down

0 comments on commit 6164864

Please sign in to comment.