Skip to content

Commit 42ba433

Browse files
vicperdanaCopilot
andcommitted
fix: relax ESLint flat config to match original rule set
The recommended presets added strict rules (no-require-imports, no-explicit-any, no-unused-vars, no-var, prefer-const) that the original .eslintrc.json did not enforce. Disable these to maintain parity with the subtree source code. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 6079df4 commit 42ba433

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

packages/vscode-extension/eslint.config.mjs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,23 @@ import eslint from "@eslint/js";
33
import tseslint from "typescript-eslint";
44

55
export default tseslint.config(
6-
eslint.configs.recommended,
7-
...tseslint.configs.recommended,
86
{
97
files: ["src/**/*.ts"],
8+
extends: [
9+
eslint.configs.recommended,
10+
...tseslint.configs.recommended,
11+
],
1012
rules: {
1113
"@typescript-eslint/naming-convention": "warn",
1214
"curly": "warn",
1315
"eqeqeq": "warn",
1416
"no-throw-literal": "warn",
17+
// Relax rules that the original .eslintrc.json didn't enforce
18+
"@typescript-eslint/no-require-imports": "off",
19+
"@typescript-eslint/no-explicit-any": "off",
20+
"@typescript-eslint/no-unused-vars": "off",
21+
"no-var": "off",
22+
"prefer-const": "off",
1523
},
1624
},
1725
{

0 commit comments

Comments
 (0)