Skip to content

Commit 2dec437

Browse files
Copilotrzhao271
andauthored
chore: migrate ESLint to v10 with flat config
Agent-Logs-Url: https://github.com/microsoft/vscode-python-tools-extension-template/sessions/9dd36af0-7ec8-47fe-8260-16b5356b4e3f Co-authored-by: rzhao271 <7199958+rzhao271@users.noreply.github.com>
1 parent 1d09628 commit 2dec437

7 files changed

Lines changed: 11362 additions & 11371 deletions

File tree

.eslintrc.json

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

eslint.config.mjs

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import typescriptEslint from "@typescript-eslint/eslint-plugin";
2+
import tsParser from "@typescript-eslint/parser";
3+
4+
export default [
5+
{
6+
ignores: ["out/**", "dist/**", "**/*.d.ts"],
7+
},
8+
{
9+
files: ["src/**/*.ts"],
10+
plugins: {
11+
"@typescript-eslint": typescriptEslint,
12+
},
13+
languageOptions: {
14+
parser: tsParser,
15+
parserOptions: {
16+
ecmaVersion: 6,
17+
sourceType: "module",
18+
},
19+
},
20+
rules: {
21+
"@typescript-eslint/naming-convention": "warn",
22+
"curly": "warn",
23+
"eqeqeq": "warn",
24+
"no-throw-literal": "warn",
25+
"semi": "off",
26+
},
27+
},
28+
];

0 commit comments

Comments
 (0)