-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy patheslint.config.js
More file actions
50 lines (49 loc) · 1.04 KB
/
eslint.config.js
File metadata and controls
50 lines (49 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import antfu from "@antfu/eslint-config";
export default antfu({
stylistic: false,
svelte: true,
rules: {
"no-console": "off",
"no-control-regex": "off",
"no-unused-vars": "off",
"antfu/no-top-level-await": "off",
"import/order": "off",
"perfectionist/sort-imports": [
"error",
{
newlinesBetween: 0,
groups: [
"side-effect",
"side-effect-style",
"builtin",
"external",
"icons",
"sveltekit",
"internal",
"type-internal",
"parent",
"type-parent",
"sibling",
"type-sibling",
"index",
"type-index",
"unknown",
],
customGroups: [
{
groupName: "icons",
elementNamePattern: ["^~icons/.+"],
},
{
groupName: "sveltekit",
elementNamePattern: ["\\$app/.+", "\\$env/.+", "\\$lib/.+"],
},
],
},
],
"unicorn/number-literal-case": ["error", { hexadecimalValue: "lowercase" }],
"unused-imports/no-unused-imports": "warn",
"unused-imports/no-unused-vars": "off",
"svelte/no-at-html-tags": "off",
},
});