-
Notifications
You must be signed in to change notification settings - Fork 8
/
.eslintrc
175 lines (175 loc) · 4.91 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
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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint",
"eslint-plugin-tsdoc"
],
"parserOptions": {
"project": [
"./tsconfig.eslint.json"
]
},
"extends": [
"eslint:recommended",
"plugin:node/recommended",
"plugin:import/recommended",
"plugin:import/typescript",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:prettier/recommended"
],
"rules": {
"tsdoc/syntax": "error",
"prettier/prettier": "warn",
"comma-dangle": [
"error",
"always-multiline"
],
"node/no-missing-import": "off",
"node/no-empty-function": "off",
"node/no-unsupported-features/es-syntax": "off",
"node/no-missing-require": "off",
"node/shebang": "off",
"import/order": [
"error",
{
"newlines-between": "never"
}
],
"sort-imports": [
"error",
{
"ignoreDeclarationSort": true
}
],
"@typescript-eslint/no-use-before-define": "off",
"quotes": [
"warn",
"single",
{
"avoidEscape": true
}
],
"curly": [
"error",
"multi-or-nest"
],
"max-len": [
"warn",
{
"code": 140,
"tabWidth": 2,
"ignoreStrings": true,
"ignoreTemplateLiterals": true,
"ignoreUrls": true,
"ignoreComments": true,
"ignorePattern": "^import\\s.+\\sfrom\\s.+;$"
}
],
"no-case-declarations": "warn",
"no-control-regex": "off",
"node/no-unpublished-import": "off",
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-unsafe-argument": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/restrict-template-expressions": "off",
"@typescript-eslint/no-floating-promises": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/no-unnecessary-type-assertion": "off",
"@typescript-eslint/no-redundant-type-constituents": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"varsIgnorePattern": "^_",
"argsIgnorePattern": "^_"
}
],
"@typescript-eslint/member-ordering": [
"error",
{
"default": [
// Constructors
"public-constructor",
"protected-constructor",
"private-constructor",
// Index signature
"signature",
// Fields
"protected-abstract-field",
"public-abstract-field",
"protected-static-field",
"public-static-field",
"private-static-field",
"protected-decorated-field",
"public-decorated-field",
"private-decorated-field",
"protected-instance-field",
"public-instance-field",
"private-instance-field",
// Getters
"protected-decorated-get",
"public-decorated-get",
"private-decorated-get",
"protected-static-get",
"public-static-get",
"private-static-get",
"protected-instance-get",
"public-instance-get",
"private-instance-get",
"protected-abstract-get",
"public-abstract-get",
"decorated-get",
"abstract-get",
"protected-get",
"public-get",
"private-get",
"static-get",
"instance-get",
"get",
// Setters
"protected-abstract-set",
"public-abstract-set",
"abstract-set",
"protected-decorated-set",
"public-decorated-set",
"private-decorated-set",
"protected-static-set",
"public-static-set",
"private-static-set",
"protected-instance-set",
"public-instance-set",
"private-instance-set",
"protected-set",
"public-set",
"private-set",
"decorated-set",
"static-set",
"instance-set",
"set",
// Methods
"public-static-method",
"protected-static-method",
"private-static-method",
"public-decorated-method",
"protected-decorated-method",
"private-decorated-method",
"public-abstract-method",
"protected-abstract-method",
"public-instance-method",
"protected-instance-method",
"private-instance-method"
]
}
]
}
}