Skip to content

Commit f3cc423

Browse files
Copilotrzhao271
andauthored
Migrate ESLint to v9 with flat config and update dependencies (#594)
* Start ESLint v9 migration plan Agent-Logs-Url: https://github.com/microsoft/vscode-hexeditor/sessions/f66f9eff-ec77-48af-b6ee-62752ebae19e Co-authored-by: rzhao271 <7199958+rzhao271@users.noreply.github.com> * Migrate ESLint to v9 with flat config and update dependencies Agent-Logs-Url: https://github.com/microsoft/vscode-hexeditor/sessions/f66f9eff-ec77-48af-b6ee-62752ebae19e Co-authored-by: rzhao271 <7199958+rzhao271@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: rzhao271 <7199958+rzhao271@users.noreply.github.com>
1 parent 99269e0 commit f3cc423

9 files changed

Lines changed: 8639 additions & 8133 deletions

.eslintignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

.eslintrc.json

Lines changed: 0 additions & 37 deletions
This file was deleted.

eslint.config.mjs

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
import globals from "globals";
2+
import eslint from "@eslint/js";
3+
import tseslint from "typescript-eslint";
4+
5+
export default tseslint.config(
6+
{
7+
ignores: ["node_modules/**", "**/*.d.ts", "**/*.js"],
8+
},
9+
eslint.configs.recommended,
10+
tseslint.configs.recommended,
11+
{
12+
files: ["src/**/*.ts"],
13+
languageOptions: {
14+
globals: {
15+
...globals.node,
16+
...globals.browser,
17+
...globals.commonjs,
18+
Atomics: "readonly",
19+
SharedArrayBuffer: "readonly",
20+
},
21+
},
22+
rules: {
23+
"no-console": "off",
24+
"no-var": "warn",
25+
"no-case-declarations": "off",
26+
"@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "(^_)|(^h$)" }],
27+
"@typescript-eslint/no-explicit-any": "off",
28+
"@typescript-eslint/no-non-null-assertion": "off",
29+
"object-curly-spacing": ["error", "always"],
30+
},
31+
},
32+
);

0 commit comments

Comments
 (0)