Skip to content

Commit af83125

Browse files
committed
update to eslint v10
1 parent fb4a22b commit af83125

4 files changed

Lines changed: 866 additions & 1138 deletions

File tree

eslint.config.mjs

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import eslint from "@eslint/js";
2+
import { defineConfig } from "eslint/config";
23
import tseslint from "typescript-eslint";
34

4-
export default tseslint.config(
5+
export default defineConfig(
56
eslint.configs.recommended,
6-
...tseslint.configs.stylisticTypeChecked,
7-
...tseslint.configs.strictTypeChecked,
7+
tseslint.configs.strictTypeChecked,
8+
tseslint.configs.stylisticTypeChecked,
89
{
910
rules: {
1011
"no-shadow": "off",
@@ -23,11 +24,16 @@ export default tseslint.config(
2324
languageOptions: {
2425
parserOptions: {
2526
projectService: true,
26-
tsconfigRootDir: import.meta.dirname,
2727
},
2828
},
2929
},
3030
{
31-
ignores: ["**/*.js", "**/*.mjs", "vitest.config.mts", "worker-configuration.d.ts"],
31+
ignores: [
32+
"**/*.js",
33+
"**/*.mjs",
34+
"vitest.config.mts",
35+
"worker-configuration.d.ts",
36+
"test/**/*.ts", // TODO
37+
],
3238
},
3339
);

0 commit comments

Comments
 (0)