-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
154 lines (154 loc) · 3.83 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
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
{
"root": true,
"env": {
"browser": true,
"es2021": true,
"node": true
},
"settings": {
"import/internal-regex": "^(src)"
},
"extends": [
"airbnb",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"@typescript-eslint/array-type": "error",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/consistent-type-imports": [
"error",
{
"prefer": "type-imports"
}
],
"func-names": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/member-delimiter-style": [
"error",
{
"multiline": {
"delimiter": "semi",
"requireLast": true
},
"singleline": {
"delimiter": "semi",
"requireLast": false
},
"multilineDetection": "brackets"
}
],
"@typescript-eslint/object-curly-spacing": [
"error",
"always"
],
"object-curly-spacing": "off",
"arrow-body-style": "off",
"arrow-parens": "off",
"class-methods-use-this": "off",
"comma-dangle": [
"error",
"never"
],
"consistent-return": "off",
"import/prefer-default-export": "off",
"import/extensions": "off",
"import/no-default-export": "warn",
"import/no-unresolved": "off",
"import/no-extraneous-dependencies": "off",
"import/no-import-module-exports": "off",
"import/order": [
"error",
{
"alphabetize": {
"order": "asc",
"caseInsensitive": true
},
"newlines-between": "always",
"groups": [
"builtin",
"external",
"internal",
"object",
"parent",
"sibling",
"index"
]
}
],
"max-classes-per-file": "off",
"max-len": [
"error",
{
"code": 150,
"ignoreComments": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true
}
],
"no-alert": "warn",
"no-console": "off",
"no-confusing-arrow": "off",
"no-else-return": "off",
"no-multiple-empty-lines": [
"error",
{
"max": 1
}
],
"no-nested-ternary": "off",
"no-param-reassign": "off",
"no-prototype-builtins": "off",
"no-plusplus": [
"error",
{
"allowForLoopAfterthoughts": true
}
],
"no-restricted-exports": "off",
"no-restricted-syntax": "off",
"no-underscore-dangle": "off",
"no-unused-vars": "warn",
"no-use-before-define": [
"error",
{
"functions": false
}
],
"no-await-in-loop": "off",
"no-throw-literal": "off",
"object-curly-newline": "off",
"padded-blocks": "off",
"prefer-destructuring": "off",
"prefer-promise-reject-errors": "off",
"radix": "off",
"prefer-spread": "off",
"no-bitwise": "warn",
"no-undef": "off",
"no-shadow": "off",
"@typescript-eslint/no-shadow": "error",
"prettier/prettier": [
"error",
{
"endOfLine": "auto",
"printWidth": 120,
"singleQuote": true,
"tabWidth": 2,
"useTabs": false,
"trailingComma": "none",
"jsxSingleQuote": true
}
]
}
}