-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
59 lines (59 loc) · 1.51 KB
/
.eslintrc
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
51
52
53
54
55
56
57
58
59
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "unicorn", "import"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:unicorn/recommended",
"prettier"
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"rules": {
"@typescript-eslint/consistent-type-imports": "error",
"import/consistent-type-specifier-style": ["error", "prefer-top-level"],
"import/no-duplicates": "error",
"import/first": "error",
"import/order": [
"error",
{
"newlines-between": "always",
"groups": [
"type",
"builtin",
"external",
"internal",
"parent",
"sibling",
"index",
"object"
],
"alphabetize": { "order": "asc", "caseInsensitive": true }
}
],
"import/newline-after-import": ["error", { "count": 1 }],
"unicorn/no-useless-undefined": ["error", { "checkArguments": false }],
"unicorn/text-encoding-identifier-case": "off",
"unicorn/filename-case": "off",
"unicorn/numeric-separators-style": "off",
"unicorn/prevent-abbreviations": "off",
"unicorn/no-array-reduce": "off",
"@typescript-eslint/no-explicit-any": "off"
},
"overrides": [
{
"files": ["test/**"],
"plugins": ["vitest"],
"extends": ["plugin:vitest/recommended"],
"rules": {
"vitest/consistent-test-it": ["error", { "fn": "test" }],
"vitest/no-standalone-expect": "error",
"vitest/no-test-return-statement": "error",
"vitest/prefer-lowercase-title": "error"
}
}
]
}