Skip to content

Commit 8597709

Browse files
authored
feat: migrate ESLint to flat config (#201)
1 parent fca5aae commit 8597709

File tree

10 files changed

+1011
-4245
lines changed

10 files changed

+1011
-4245
lines changed

backend/eslint.config.mjs

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
import baseConfig, { baseIgnores } from "../eslint-base.config.mjs";
2+
import globals from "globals";
3+
import tsParser from "@typescript-eslint/parser";
4+
5+
export default [
6+
...baseConfig,
7+
{
8+
ignores: [
9+
...baseIgnores,
10+
"**/*.config.*",
11+
"**/prisma/**",
12+
],
13+
},
14+
{
15+
languageOptions: {
16+
globals: {
17+
...globals.node,
18+
},
19+
20+
parser: tsParser,
21+
ecmaVersion: "latest",
22+
sourceType: "module",
23+
24+
parserOptions: {
25+
project: ["./tsconfig.json"],
26+
},
27+
},
28+
},
29+
];
30+

0 commit comments

Comments
 (0)