Skip to content

Commit 9c6a107

Browse files
committed
Update deps
1 parent 3e4c4d6 commit 9c6a107

File tree

7 files changed

+6356
-3091
lines changed

7 files changed

+6356
-3091
lines changed

.eslintrc.json

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

.github/workflows/pr-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
- develop
99

1010
env:
11-
NODE_VERSION: 16
11+
NODE_VERSION: 21
1212

1313
jobs:
1414
lint:

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- uses: actions/checkout@v5
1919
- uses: actions/setup-node@v3
2020
with:
21-
node-version: 16
21+
node-version: 21
2222
- run: npm ci
2323
- name: Publish to Visual Studio Marketplace
2424
id: publishToVSM

.vscode/tasks.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"regexp": "^Type-checking in progress|[Cc]ompiled (?:.*?successfully|with .*?(?:error|warning))"
6262
},
6363
"endsPattern": {
64-
"regexp": "^Found \\d+ (?:error|warning)|^No errors found"
64+
"regexp": "^Found \\d+ (?:error|warning)|^No typescript errors found"
6565
}
6666
}
6767
},

eslint.config.mjs

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
import { defineConfig } from "eslint/config";
2+
import typescriptEslint from "@typescript-eslint/eslint-plugin";
3+
import globals from "globals";
4+
import tsParser from "@typescript-eslint/parser";
5+
import path from "node:path";
6+
import { fileURLToPath } from "node:url";
7+
import js from "@eslint/js";
8+
import { FlatCompat } from "@eslint/eslintrc";
9+
10+
const __filename = fileURLToPath(import.meta.url);
11+
const __dirname = path.dirname(__filename);
12+
const compat = new FlatCompat({
13+
baseDirectory: __dirname,
14+
recommendedConfig: js.configs.recommended,
15+
allConfig: js.configs.all
16+
});
17+
18+
export default defineConfig([{
19+
extends: compat.extends("eslint:recommended", "plugin:@typescript-eslint/recommended"),
20+
21+
plugins: {
22+
"@typescript-eslint": typescriptEslint,
23+
},
24+
25+
languageOptions: {
26+
globals: {
27+
...globals.browser,
28+
...globals.node,
29+
},
30+
31+
parser: tsParser,
32+
ecmaVersion: "latest",
33+
sourceType: "module",
34+
},
35+
36+
rules: {
37+
"no-duplicate-imports": "error",
38+
"no-self-compare": "error",
39+
"no-unused-private-class-members": "warn",
40+
eqeqeq: "warn",
41+
"no-shadow": "warn",
42+
"prefer-regex-literals": "warn",
43+
"require-await": "warn",
44+
camelcase: "error",
45+
"no-invalid-regexp": "off",
46+
"@typescript-eslint/no-var-requires": "warn",
47+
"no-param-reassign": "warn",
48+
"@typescript-eslint/no-namespace": "off",
49+
"@typescript-eslint/ban-ts-comment": "off",
50+
"@typescript-eslint/no-unused-vars": "off",
51+
},
52+
}]);

0 commit comments

Comments
 (0)