Skip to content

Commit

Permalink
[lint] Remove no-case-declarations (#1256)
Browse files Browse the repository at this point in the history
This commit adds "no-case-declarations" rule to our lint configuration and
fixes the errors.

ONE-vscode-DCO-1.0-Signed-off-by: dayo09 <[email protected]>
  • Loading branch information
dayo09 authored Sep 6, 2022
1 parent a3dc9dd commit 8881946
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"eqeqeq": "warn",
"no-throw-literal": "warn",
"semi": "off",
"no-extra-semi": "warn"
"no-extra-semi": "warn",
"no-case-declarations": "warn"
}
}
3 changes: 2 additions & 1 deletion src/CfgEditor/CfgEditorPanel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -158,6 +158,7 @@ export class CfgEditorPanel implements vscode.CustomTextEditorProvider {
}
});
break;
}
default:
break;
}
Expand Down

0 comments on commit 8881946

Please sign in to comment.