From c091517b675bee4f04484b69c5f1ff50aebce820 Mon Sep 17 00:00:00 2001 From: Bill Sager Date: Fri, 16 Aug 2024 10:59:58 -0700 Subject: [PATCH] add eslint rule --- extensions/vscode/.eslintrc.json | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/extensions/vscode/.eslintrc.json b/extensions/vscode/.eslintrc.json index 151335b6b..8e2982291 100644 --- a/extensions/vscode/.eslintrc.json +++ b/extensions/vscode/.eslintrc.json @@ -25,8 +25,14 @@ "@typescript-eslint/semi": "warn", "curly": "warn", "eqeqeq": "warn", - "no-throw-literal": "warn", - "semi": "off" + "no-throw-literal": "error", + "semi": "off", + "no-restricted-syntax": [ + "error", + { + "selector": "ThrowStatement" + } + ] }, "ignorePatterns": ["out", "dist", "**/*.d.ts", "api"] }