From 8881946ebbd15b5e5a01b2ba5fae9b870aee3f92 Mon Sep 17 00:00:00 2001 From: Dayoung Lee Date: Tue, 6 Sep 2022 14:10:24 +0900 Subject: [PATCH] [lint] Remove no-case-declarations (#1256) This commit adds "no-case-declarations" rule to our lint configuration and fixes the errors. ONE-vscode-DCO-1.0-Signed-off-by: dayo09 --- .eslintrc.json | 3 ++- src/CfgEditor/CfgEditorPanel.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 725a7647..9dc0df74 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -24,6 +24,7 @@ "eqeqeq": "warn", "no-throw-literal": "warn", "semi": "off", - "no-extra-semi": "warn" + "no-extra-semi": "warn", + "no-case-declarations": "warn" } } diff --git a/src/CfgEditor/CfgEditorPanel.ts b/src/CfgEditor/CfgEditorPanel.ts index 1b2d7e53..132cd125 100644 --- a/src/CfgEditor/CfgEditorPanel.ts +++ b/src/CfgEditor/CfgEditorPanel.ts @@ -142,7 +142,7 @@ export class CfgEditorPanel implements vscode.CustomTextEditorProvider { vscode.workspace.applyEdit(edit); } break; - case 'getPathByDialog': + case 'getPathByDialog': { const dialogOptions = { canSelectMany: false, canSelectFolders: e.isFolder, @@ -158,6 +158,7 @@ export class CfgEditorPanel implements vscode.CustomTextEditorProvider { } }); break; + } default: break; }