-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
57 lines (57 loc) · 1.29 KB
/
.eslintrc.json
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
{
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/strict-type-checked",
"plugin:@typescript-eslint/stylistic-type-checked",
"plugin:import/recommended",
"plugin:import/typescript",
"plugin:unicorn/recommended"
],
"overrides": [
{
"files": ["tests/**"],
"plugins": ["vitest"],
"extends": ["plugin:vitest/recommended"]
}
],
"plugins": ["@typescript-eslint"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": true
},
"root": true,
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts"]
},
"import/resolver": {
"typescript": {
"alwaysTryTypes": true
}
}
},
"rules": {
"import/no-default-export": "error",
"import/order": "error",
"@typescript-eslint/explicit-function-return-type": [
"error",
{ "allowExpressions": true }
],
"no-console": "error",
"unicorn/prefer-code-point": "off",
"unicorn/prevent-abbreviations": [
"error",
{
"replacements": {
"db": false,
"dir": false,
"props": false,
"fn": false,
"env": false
}
}
]
},
"reportUnusedDisableDirectives": true,
"ignorePatterns": ["dist", "coverage", "vitest.config.ts"]
}