From a3dc9dd3a24a5923013a9f569ce3d032c3f6eec5 Mon Sep 17 00:00:00 2001 From: Dayoung Lee Date: Tue, 6 Sep 2022 14:09:30 +0900 Subject: [PATCH] [lint] Add envs and globals (#1255) 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 https://github.com/Chatie/eslint-config/issues/45 ONE-vscode-DCO-1.0-Signed-off-by: dayo09 --- .eslintrc.json | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.eslintrc.json b/.eslintrc.json index 2c459c6e..725a7647 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -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",