Skip to content

Commit c6e23f9

Browse files
authored
Upgrade to eslint v9 (#588)
Who knew lint could be so complicated
1 parent 2c64d41 commit c6e23f9

File tree

5 files changed

+1253
-1143
lines changed

5 files changed

+1253
-1143
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
.idea
44
*.log
55
*.sqlite3
6+
*.tsbuildinfo
67
/.cache
78
/db
89
/dbmate

typescript/.eslintrc.yml

-15
This file was deleted.

typescript/eslint.config.mjs

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import foxglove from "@foxglove/eslint-plugin";
2+
import tseslint from "typescript-eslint";
3+
4+
export default tseslint.config(
5+
{
6+
ignores: ["**/dist"],
7+
},
8+
...foxglove.configs.base,
9+
...foxglove.configs.typescript.map((config) => ({
10+
...config,
11+
files: ["**/*.ts"],
12+
})),
13+
{
14+
files: ["**/*.ts"],
15+
languageOptions: {
16+
parserOptions: {
17+
project: "tsconfig.eslint.json",
18+
},
19+
},
20+
},
21+
);

0 commit comments

Comments
 (0)