Skip to content

Commit aed1140

Browse files
committed
remove old eslint config
1 parent d26811c commit aed1140

File tree

2 files changed

+42
-28
lines changed

2 files changed

+42
-28
lines changed

server/.eslintrc.js

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

server/eslint.config.js

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
import antfu from "@antfu/eslint-config"
2+
3+
export default antfu({
4+
ignores: ["**/*.json", "**/*.config.ts"],
5+
stylistic: false,
6+
test: { overrides: { "test/no-import-node-test": "off" } },
7+
vue: false,
8+
typescript: {
9+
tsconfigPath: "./tsconfig.json",
10+
overrides: {
11+
"no-console": "off",
12+
13+
"ts/no-use-before-define": "off",
14+
"ts/consistent-type-definitions": "off",
15+
"ts/consistent-type-imports": ["error", { fixStyle: "inline-type-imports" }],
16+
"ts/no-unsafe-argument": "off",
17+
"ts/no-unsafe-assignment": "off",
18+
19+
"node/prefer-global/process": "off",
20+
"antfu/no-top-level-await": "off",
21+
22+
"perfectionist/sort-imports": [
23+
"error",
24+
{
25+
type: "natural",
26+
internalPattern: ["^@/.+?", "^~/.+?", "^#[a-z]+/.+?"],
27+
newlinesBetween: "always",
28+
groups: [
29+
["builtin", "builtin-type"],
30+
["external", "external-type"],
31+
["internal", "internal-type"],
32+
["parent", "parent-type"],
33+
["sibling", "sibling-type"],
34+
["index", "index-type"],
35+
"object",
36+
"unknown",
37+
],
38+
},
39+
],
40+
},
41+
},
42+
})

0 commit comments

Comments
 (0)