-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.json
More file actions
111 lines (111 loc) · 2.83 KB
/
.eslintrc.json
File metadata and controls
111 lines (111 loc) · 2.83 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
{
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/recommended",
"plugin:perfectionist/recommended-alphabetical",
"plugin:perfectionist/recommended-line-length",
"plugin:perfectionist/recommended-natural",
"plugin:promise/recommended",
"plugin:regexp/recommended"
],
"globals": {
"globalThis": true
},
"ignorePatterns": ["dist", "lib-types", "lib", "tmp"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2021,
"project": "./tsconfig.json",
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "simple-import-sort"],
"rules": {
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"caughtErrors": "all",
"varsIgnorePattern": "^_"
}
],
"comma-dangle": "off",
"@typescript-eslint/comma-dangle": [
"error",
{
"arrays": "always-multiline",
"exports": "always-multiline",
"functions": "never",
"imports": "always-multiline",
"objects": "always-multiline"
}
],
"comma-spacing": "off",
"@typescript-eslint/comma-spacing": [
"error",
{
"after": true,
"before": false
}
],
"@typescript-eslint/consistent-type-exports": [
"error",
{
"fixMixedExportsWithInlineTypeSpecifier": true
}
],
"@typescript-eslint/consistent-type-imports": [
"error",
{
"disallowTypeAnnotations": false,
"fixStyle": "inline-type-imports",
"prefer": "type-imports"
}
],
"@typescript-eslint/no-duplicate-type-constituents": "error",
"@typescript-eslint/no-empty-interface": [
"error",
{
"allowSingleExtends": true
}
],
"@typescript-eslint/no-import-type-side-effects": "error",
"import/newline-after-import": [
"error",
{
"considerComments": false,
"count": 1
}
],
"import/no-anonymous-default-export": "error",
"import/no-default-export": "error",
"import/no-duplicates": [
"error",
{
"considerQueryString": true,
"prefer-inline": true
}
],
"import/no-named-default": "error",
"import/no-unresolved": "off",
"no-async-promise-executor": "off",
"no-debugger": "off",
"no-multiple-empty-lines": [
"error",
{
"max": 1,
"maxBOF": 0,
"maxEOF": 0
}
],
"perfectionist/sort-imports": "off",
"perfectionist/sort-named-exports": "off",
"perfectionist/sort-named-imports": "off",
"promise/no-multiple-resolved": "error",
"semi": "off",
"@typescript-eslint/semi": ["error", "always"],
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error"
}
}