Skip to content

Commit

Permalink
[lint] Add envs and globals
Browse files Browse the repository at this point in the history
This commit adds envs and globals to configurations to remove wrong errors.

NOTE

"node" in "env"  <-- Removes 'process' is undefined error
"mocha" in "env" <-- Removes 'test'/'suites' is undefined error
"Thenable" in "globals" <-- Removes 'Thenables' is undefined error. Thenable is defined in node_modules/@types/vscode
"NodeJS" in "gloabls" <-- Removes 'NodeJS' is undefined error. Ref Chatie/eslint-config#45

ONE-vscode-DCO-1.0-Signed-off-by: dayo09 <[email protected]>
  • Loading branch information
dayo09 committed Sep 2, 2022
1 parent 2675ba8 commit 0b4aa65
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@
"plugins": [
"@typescript-eslint"
],
"env": {
"node": true,
"mocha": true
},
"globals":
{
"Thenable": true,
"NodeJS": true
},
"rules": {
"@typescript-eslint/naming-convention": "warn",
"@typescript-eslint/semi": "warn",
Expand Down

0 comments on commit 0b4aa65

Please sign in to comment.