Skip to content

Commit

Permalink
[lint] Add envs and globals (#1255)
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 authored Sep 6, 2022
1 parent 651fc38 commit a3dc9dd
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 a3dc9dd

Please sign in to comment.