@nfq/eslint-config 3.1.2 → 3.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
/* eslint-disable no-inline-comments */
|
|
2
|
+
module.exports = {
|
|
3
|
+
rules: {
|
|
4
|
+
'@typescript-eslint/adjacent-overload-signatures': 'error',
|
|
5
|
+
'@typescript-eslint/array-type': ['error', {default: 'array'}],
|
|
6
|
+
'@typescript-eslint/ban-types': 'error',
|
|
7
|
+
'@typescript-eslint/brace-style': ['error', '1tbs', {allowSingleLine: false}],
|
|
8
|
+
'@typescript-eslint/class-literal-property-style': 'error',
|
|
9
|
+
'@typescript-eslint/comma-dangle': ['error', 'never'],
|
|
10
|
+
'@typescript-eslint/comma-spacing': [
|
|
11
|
+
'error',
|
|
12
|
+
{
|
|
13
|
+
after: true,
|
|
14
|
+
before: false
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
'@typescript-eslint/consistent-generic-constructors': ['error', 'constructor'],
|
|
18
|
+
'@typescript-eslint/consistent-indexed-object-style': ['error', 'record'],
|
|
19
|
+
'@typescript-eslint/consistent-type-assertions': ['error', {assertionStyle: 'as'}],
|
|
20
|
+
'@typescript-eslint/consistent-type-definitions': 'off',
|
|
21
|
+
'@typescript-eslint/consistent-type-exports': 'error',
|
|
22
|
+
'@typescript-eslint/consistent-type-imports': [
|
|
23
|
+
'error',
|
|
24
|
+
{
|
|
25
|
+
disallowTypeAnnotations: true,
|
|
26
|
+
prefer: 'type-imports'
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
'@typescript-eslint/default-param-last': 'error',
|
|
30
|
+
'@typescript-eslint/dot-notation': ['error', {allowKeywords: true}],
|
|
31
|
+
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
32
|
+
'@typescript-eslint/explicit-member-accessibility': ['error', {accessibility: 'no-public'}],
|
|
33
|
+
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
34
|
+
'@typescript-eslint/func-call-spacing': ['error', 'never'],
|
|
35
|
+
'@typescript-eslint/indent': 'off',
|
|
36
|
+
'@typescript-eslint/init-declarations': 'off',
|
|
37
|
+
'@typescript-eslint/keyword-spacing': [
|
|
38
|
+
'error',
|
|
39
|
+
{
|
|
40
|
+
after: true,
|
|
41
|
+
before: true
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
'@typescript-eslint/lines-between-class-members': [
|
|
45
|
+
'error',
|
|
46
|
+
'always',
|
|
47
|
+
{exceptAfterSingleLine: false}
|
|
48
|
+
],
|
|
49
|
+
'@typescript-eslint/member-delimiter-style': [
|
|
50
|
+
'error',
|
|
51
|
+
{
|
|
52
|
+
multiline: {
|
|
53
|
+
delimiter: 'semi',
|
|
54
|
+
requireLast: true
|
|
55
|
+
},
|
|
56
|
+
multilineDetection: 'brackets',
|
|
57
|
+
singleline: {
|
|
58
|
+
delimiter: 'semi',
|
|
59
|
+
requireLast: false
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
],
|
|
63
|
+
'@typescript-eslint/member-ordering': [
|
|
64
|
+
'error',
|
|
65
|
+
{
|
|
66
|
+
default: {order: 'as-written'},
|
|
67
|
+
interfaces: {order: 'alphabetically-case-insensitive'},
|
|
68
|
+
typeLiterals: {order: 'alphabetically-case-insensitive'}
|
|
69
|
+
}
|
|
70
|
+
],
|
|
71
|
+
'@typescript-eslint/method-signature-style': ['error', 'method'],
|
|
72
|
+
'@typescript-eslint/no-array-constructor': 'error',
|
|
73
|
+
'@typescript-eslint/no-base-to-string': 'error',
|
|
74
|
+
'@typescript-eslint/no-confusing-non-null-assertion': 'warn',
|
|
75
|
+
'@typescript-eslint/no-confusing-void-expression': 'off',
|
|
76
|
+
'@typescript-eslint/no-dupe-class-members': 'error',
|
|
77
|
+
'@typescript-eslint/no-duplicate-enum-values': 'warn',
|
|
78
|
+
'@typescript-eslint/no-dynamic-delete': 'off',
|
|
79
|
+
'@typescript-eslint/no-empty-function': ['error', {allow: ['arrowFunctions', 'methods', 'asyncMethods']}],
|
|
80
|
+
'@typescript-eslint/no-empty-interface': 'error',
|
|
81
|
+
'@typescript-eslint/no-explicit-any': 'off',
|
|
82
|
+
'@typescript-eslint/no-extra-non-null-assertion': 'error',
|
|
83
|
+
'@typescript-eslint/no-extra-semi': 'error',
|
|
84
|
+
'@typescript-eslint/no-extraneous-class': 'off',
|
|
85
|
+
'@typescript-eslint/no-floating-promises': 'error',
|
|
86
|
+
'@typescript-eslint/no-for-in-array': 'error',
|
|
87
|
+
'@typescript-eslint/no-implied-eval': 'error',
|
|
88
|
+
'@typescript-eslint/no-inferrable-types': 'error',
|
|
89
|
+
'@typescript-eslint/no-invalid-this': 'error',
|
|
90
|
+
'@typescript-eslint/no-invalid-void-type': 'off',
|
|
91
|
+
'@typescript-eslint/no-loop-func': 'error',
|
|
92
|
+
'@typescript-eslint/no-loss-of-precision': 'error',
|
|
93
|
+
'@typescript-eslint/no-misused-new': 'error',
|
|
94
|
+
'@typescript-eslint/no-misused-promises': ['error', {checksVoidReturn: false}],
|
|
95
|
+
'@typescript-eslint/no-namespace': [
|
|
96
|
+
'error',
|
|
97
|
+
{
|
|
98
|
+
allowDeclarations: true,
|
|
99
|
+
allowDefinitionFiles: true
|
|
100
|
+
}
|
|
101
|
+
],
|
|
102
|
+
'@typescript-eslint/no-non-null-asserted-nullish-coalescing': 'error',
|
|
103
|
+
'@typescript-eslint/no-non-null-asserted-optional-chain': 'error',
|
|
104
|
+
'@typescript-eslint/no-non-null-assertion': 'off',
|
|
105
|
+
'@typescript-eslint/no-redeclare': 'error',
|
|
106
|
+
'@typescript-eslint/no-redundant-type-constituents': 'warn',
|
|
107
|
+
'@typescript-eslint/no-require-imports': 'warn',
|
|
108
|
+
'@typescript-eslint/no-shadow': 'error',
|
|
109
|
+
'@typescript-eslint/no-this-alias': ['error', {allowedNames: ['self']}],
|
|
110
|
+
'@typescript-eslint/no-throw-literal': 'error',
|
|
111
|
+
'@typescript-eslint/no-unnecessary-boolean-literal-compare': 'error',
|
|
112
|
+
'@typescript-eslint/no-unnecessary-condition': 'error',
|
|
113
|
+
'@typescript-eslint/no-unnecessary-qualifier': 'error',
|
|
114
|
+
'@typescript-eslint/no-unnecessary-type-arguments': 'warn',
|
|
115
|
+
'@typescript-eslint/no-unnecessary-type-assertion': 'warn',
|
|
116
|
+
'@typescript-eslint/no-unnecessary-type-constraint': 'error',
|
|
117
|
+
'@typescript-eslint/no-unsafe-argument': 'error',
|
|
118
|
+
'@typescript-eslint/no-unsafe-assignment': 'off',
|
|
119
|
+
'@typescript-eslint/no-unsafe-call': 'error',
|
|
120
|
+
'@typescript-eslint/no-unsafe-member-access': 'error',
|
|
121
|
+
'@typescript-eslint/no-unsafe-return': 'error',
|
|
122
|
+
'@typescript-eslint/no-unused-expressions': [
|
|
123
|
+
'error',
|
|
124
|
+
{
|
|
125
|
+
allowShortCircuit: true,
|
|
126
|
+
allowTaggedTemplates: false,
|
|
127
|
+
allowTernary: true
|
|
128
|
+
}
|
|
129
|
+
],
|
|
130
|
+
'@typescript-eslint/no-unused-vars': 'error',
|
|
131
|
+
'@typescript-eslint/no-use-before-define': [
|
|
132
|
+
'error',
|
|
133
|
+
{
|
|
134
|
+
classes: false,
|
|
135
|
+
functions: false,
|
|
136
|
+
variables: false
|
|
137
|
+
}
|
|
138
|
+
],
|
|
139
|
+
'@typescript-eslint/no-useless-constructor': 'error',
|
|
140
|
+
'@typescript-eslint/no-useless-empty-export': 'error',
|
|
141
|
+
'@typescript-eslint/no-var-requires': 'error',
|
|
142
|
+
'@typescript-eslint/non-nullable-type-assertion-style': 'error',
|
|
143
|
+
'@typescript-eslint/object-curly-spacing': ['error', 'never'],
|
|
144
|
+
'@typescript-eslint/padding-line-between-statements': [
|
|
145
|
+
'error',
|
|
146
|
+
{
|
|
147
|
+
blankLine: 'always',
|
|
148
|
+
next: '*',
|
|
149
|
+
prev: ['const', 'let', 'var']
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
blankLine: 'any',
|
|
153
|
+
next: ['const', 'let', 'var'],
|
|
154
|
+
prev: ['const', 'let', 'var']
|
|
155
|
+
}
|
|
156
|
+
],
|
|
157
|
+
'@typescript-eslint/prefer-as-const': 'error',
|
|
158
|
+
'@typescript-eslint/prefer-enum-initializers': 'off',
|
|
159
|
+
'@typescript-eslint/prefer-for-of': 'error',
|
|
160
|
+
'@typescript-eslint/prefer-function-type': 'off',
|
|
161
|
+
'@typescript-eslint/prefer-includes': 'error',
|
|
162
|
+
'@typescript-eslint/prefer-literal-enum-member': 'error',
|
|
163
|
+
'@typescript-eslint/prefer-namespace-keyword': 'error',
|
|
164
|
+
'@typescript-eslint/prefer-nullish-coalescing': 'error',
|
|
165
|
+
'@typescript-eslint/prefer-optional-chain': 'error',
|
|
166
|
+
'@typescript-eslint/prefer-readonly': 'error',
|
|
167
|
+
'@typescript-eslint/prefer-readonly-parameter-types': 'off',
|
|
168
|
+
'@typescript-eslint/prefer-reduce-type-parameter': 'error',
|
|
169
|
+
'@typescript-eslint/prefer-return-this-type': 'error',
|
|
170
|
+
'@typescript-eslint/prefer-string-starts-ends-with': 'error',
|
|
171
|
+
'@typescript-eslint/prefer-ts-expect-error': 'error',
|
|
172
|
+
'@typescript-eslint/promise-function-async': 'error',
|
|
173
|
+
'@typescript-eslint/quotes': [
|
|
174
|
+
'error',
|
|
175
|
+
'single',
|
|
176
|
+
{avoidEscape: true}
|
|
177
|
+
],
|
|
178
|
+
'@typescript-eslint/require-array-sort-compare': 'off',
|
|
179
|
+
'@typescript-eslint/require-await': 'error',
|
|
180
|
+
'@typescript-eslint/restrict-plus-operands': 'error',
|
|
181
|
+
'@typescript-eslint/restrict-template-expressions': 'error',
|
|
182
|
+
'@typescript-eslint/return-await': 'error',
|
|
183
|
+
'@typescript-eslint/semi': 'error',
|
|
184
|
+
'@typescript-eslint/sort-type-constituents': ['error', {checkIntersections: false}],
|
|
185
|
+
'@typescript-eslint/space-before-blocks': ['error', 'always'],
|
|
186
|
+
'@typescript-eslint/space-before-function-paren': [
|
|
187
|
+
'error',
|
|
188
|
+
{
|
|
189
|
+
anonymous: 'never',
|
|
190
|
+
asyncArrow: 'always',
|
|
191
|
+
named: 'never'
|
|
192
|
+
}
|
|
193
|
+
],
|
|
194
|
+
'@typescript-eslint/space-infix-ops': 'error',
|
|
195
|
+
'@typescript-eslint/strict-boolean-expressions': 'off',
|
|
196
|
+
'@typescript-eslint/switch-exhaustiveness-check': 'error',
|
|
197
|
+
'@typescript-eslint/triple-slash-reference': 'error',
|
|
198
|
+
'@typescript-eslint/type-annotation-spacing': 'error',
|
|
199
|
+
'@typescript-eslint/unified-signatures': 'error',
|
|
200
|
+
'brace-style': 'off',
|
|
201
|
+
'comma-dangle': 'off',
|
|
202
|
+
'comma-spacing': 'off',
|
|
203
|
+
'default-param-last': 'off',
|
|
204
|
+
'dot-notation': 'off',
|
|
205
|
+
'func-call-spacing': 'off',
|
|
206
|
+
'jsdoc/require-param-type': 'off',
|
|
207
|
+
'jsdoc/require-returns-type': 'off',
|
|
208
|
+
'keyword-spacing': 'off',
|
|
209
|
+
'lines-between-class-members': 'off',
|
|
210
|
+
'no-array-constructor': 'off',
|
|
211
|
+
'no-dupe-class-members': 'off',
|
|
212
|
+
'no-empty-function': 'off',
|
|
213
|
+
'no-extra-semi': 'off',
|
|
214
|
+
'no-implied-eval': 'off',
|
|
215
|
+
'no-invalid-this': 'off',
|
|
216
|
+
'no-loop-func': 'off',
|
|
217
|
+
'no-loss-of-precision': 'off',
|
|
218
|
+
'no-redeclare': 'off',
|
|
219
|
+
'no-return-await': 'off',
|
|
220
|
+
'no-shadow': 'off',
|
|
221
|
+
'no-throw-literal': 'off',
|
|
222
|
+
'no-undefined': 'off',
|
|
223
|
+
'no-unused-expressions': 'off',
|
|
224
|
+
'no-unused-vars': 'off',
|
|
225
|
+
'no-use-before-define': 'off',
|
|
226
|
+
'no-useless-constructor': 'off',
|
|
227
|
+
'object-curly-spacing': 'off',
|
|
228
|
+
'padding-line-between-statements': 'off',
|
|
229
|
+
quotes: 'off',
|
|
230
|
+
'react/default-props-match-prop-types': 'off',
|
|
231
|
+
'react/require-default-props': 'off',
|
|
232
|
+
semi: 'off',
|
|
233
|
+
'space-before-blocks': 'off',
|
|
234
|
+
'space-before-function-paren': 'off',
|
|
235
|
+
'space-infix-ops': 'off'
|
|
236
|
+
}
|
|
237
|
+
};
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
/* eslint-disable no-inline-comments */
|
|
2
|
+
module.exports = {
|
|
3
|
+
rules: {
|
|
4
|
+
'@typescript-eslint/adjacent-overload-signatures': 'error',
|
|
5
|
+
'@typescript-eslint/array-type': ['error', {default: 'array'}],
|
|
6
|
+
'@typescript-eslint/ban-types': 'error',
|
|
7
|
+
'@typescript-eslint/brace-style': ['error', '1tbs', {allowSingleLine: false}],
|
|
8
|
+
'@typescript-eslint/class-literal-property-style': 'error',
|
|
9
|
+
'@typescript-eslint/comma-dangle': ['error', 'never'],
|
|
10
|
+
'@typescript-eslint/comma-spacing': [
|
|
11
|
+
'error',
|
|
12
|
+
{
|
|
13
|
+
after: true,
|
|
14
|
+
before: false
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
'@typescript-eslint/consistent-generic-constructors': ['error', 'constructor'],
|
|
18
|
+
'@typescript-eslint/consistent-indexed-object-style': ['error', 'record'],
|
|
19
|
+
'@typescript-eslint/consistent-type-assertions': ['error', {assertionStyle: 'as'}],
|
|
20
|
+
'@typescript-eslint/consistent-type-definitions': 'off',
|
|
21
|
+
'@typescript-eslint/consistent-type-exports': 'error',
|
|
22
|
+
'@typescript-eslint/consistent-type-imports': [
|
|
23
|
+
'error',
|
|
24
|
+
{
|
|
25
|
+
disallowTypeAnnotations: true,
|
|
26
|
+
prefer: 'type-imports'
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
'@typescript-eslint/default-param-last': 'error',
|
|
30
|
+
'@typescript-eslint/dot-notation': ['error', {allowKeywords: true}],
|
|
31
|
+
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
32
|
+
'@typescript-eslint/explicit-member-accessibility': ['error', {accessibility: 'no-public'}],
|
|
33
|
+
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
34
|
+
'@typescript-eslint/func-call-spacing': ['error', 'never'],
|
|
35
|
+
'@typescript-eslint/indent': 'off',
|
|
36
|
+
'@typescript-eslint/init-declarations': 'off',
|
|
37
|
+
'@typescript-eslint/keyword-spacing': [
|
|
38
|
+
'error',
|
|
39
|
+
{
|
|
40
|
+
after: true,
|
|
41
|
+
before: true
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
'@typescript-eslint/lines-between-class-members': [
|
|
45
|
+
'error',
|
|
46
|
+
'always',
|
|
47
|
+
{exceptAfterSingleLine: false}
|
|
48
|
+
],
|
|
49
|
+
'@typescript-eslint/member-delimiter-style': [
|
|
50
|
+
'error',
|
|
51
|
+
{
|
|
52
|
+
multiline: {
|
|
53
|
+
delimiter: 'semi',
|
|
54
|
+
requireLast: true
|
|
55
|
+
},
|
|
56
|
+
multilineDetection: 'brackets',
|
|
57
|
+
singleline: {
|
|
58
|
+
delimiter: 'semi',
|
|
59
|
+
requireLast: false
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
],
|
|
63
|
+
'@typescript-eslint/member-ordering': [
|
|
64
|
+
'error',
|
|
65
|
+
{
|
|
66
|
+
default: {order: 'as-written'},
|
|
67
|
+
interfaces: {order: 'alphabetically-case-insensitive'},
|
|
68
|
+
typeLiterals: {order: 'alphabetically-case-insensitive'}
|
|
69
|
+
}
|
|
70
|
+
],
|
|
71
|
+
'@typescript-eslint/method-signature-style': ['error', 'method'],
|
|
72
|
+
'@typescript-eslint/no-array-constructor': 'error',
|
|
73
|
+
'@typescript-eslint/no-base-to-string': 'error',
|
|
74
|
+
'@typescript-eslint/no-confusing-non-null-assertion': 'warn',
|
|
75
|
+
'@typescript-eslint/no-confusing-void-expression': 'off',
|
|
76
|
+
'@typescript-eslint/no-dupe-class-members': 'error',
|
|
77
|
+
'@typescript-eslint/no-duplicate-enum-values': 'warn',
|
|
78
|
+
'@typescript-eslint/no-dynamic-delete': 'off',
|
|
79
|
+
'@typescript-eslint/no-empty-function': ['error', {allow: ['arrowFunctions', 'methods', 'asyncMethods']}],
|
|
80
|
+
'@typescript-eslint/no-empty-interface': 'error',
|
|
81
|
+
'@typescript-eslint/no-explicit-any': 'off',
|
|
82
|
+
'@typescript-eslint/no-extra-non-null-assertion': 'error',
|
|
83
|
+
'@typescript-eslint/no-extra-semi': 'error',
|
|
84
|
+
'@typescript-eslint/no-extraneous-class': 'off',
|
|
85
|
+
'@typescript-eslint/no-floating-promises': 'error',
|
|
86
|
+
'@typescript-eslint/no-for-in-array': 'error',
|
|
87
|
+
'@typescript-eslint/no-implied-eval': 'error',
|
|
88
|
+
'@typescript-eslint/no-inferrable-types': 'error',
|
|
89
|
+
'@typescript-eslint/no-invalid-this': 'error',
|
|
90
|
+
'@typescript-eslint/no-invalid-void-type': 'off',
|
|
91
|
+
'@typescript-eslint/no-loop-func': 'error',
|
|
92
|
+
'@typescript-eslint/no-loss-of-precision': 'error',
|
|
93
|
+
'@typescript-eslint/no-misused-new': 'error',
|
|
94
|
+
'@typescript-eslint/no-misused-promises': ['error', {checksVoidReturn: false}],
|
|
95
|
+
'@typescript-eslint/no-namespace': [
|
|
96
|
+
'error',
|
|
97
|
+
{
|
|
98
|
+
allowDeclarations: true,
|
|
99
|
+
allowDefinitionFiles: true
|
|
100
|
+
}
|
|
101
|
+
],
|
|
102
|
+
'@typescript-eslint/no-non-null-asserted-nullish-coalescing': 'error',
|
|
103
|
+
'@typescript-eslint/no-non-null-asserted-optional-chain': 'error',
|
|
104
|
+
'@typescript-eslint/no-non-null-assertion': 'off',
|
|
105
|
+
'@typescript-eslint/no-redeclare': 'error',
|
|
106
|
+
'@typescript-eslint/no-redundant-type-constituents': 'warn',
|
|
107
|
+
'@typescript-eslint/no-require-imports': 'warn',
|
|
108
|
+
'@typescript-eslint/no-shadow': 'error',
|
|
109
|
+
'@typescript-eslint/no-this-alias': ['error', {allowedNames: ['self']}],
|
|
110
|
+
'@typescript-eslint/no-throw-literal': 'error',
|
|
111
|
+
'@typescript-eslint/no-unnecessary-boolean-literal-compare': 'error',
|
|
112
|
+
'@typescript-eslint/no-unnecessary-condition': 'error',
|
|
113
|
+
'@typescript-eslint/no-unnecessary-qualifier': 'error',
|
|
114
|
+
'@typescript-eslint/no-unnecessary-type-arguments': 'warn',
|
|
115
|
+
'@typescript-eslint/no-unnecessary-type-assertion': 'warn',
|
|
116
|
+
'@typescript-eslint/no-unnecessary-type-constraint': 'error',
|
|
117
|
+
'@typescript-eslint/no-unsafe-argument': 'error',
|
|
118
|
+
'@typescript-eslint/no-unsafe-assignment': 'off',
|
|
119
|
+
'@typescript-eslint/no-unsafe-call': 'error',
|
|
120
|
+
'@typescript-eslint/no-unsafe-member-access': 'error',
|
|
121
|
+
'@typescript-eslint/no-unsafe-return': 'error',
|
|
122
|
+
'@typescript-eslint/no-unused-expressions': [
|
|
123
|
+
'error',
|
|
124
|
+
{
|
|
125
|
+
allowShortCircuit: true,
|
|
126
|
+
allowTaggedTemplates: false,
|
|
127
|
+
allowTernary: true
|
|
128
|
+
}
|
|
129
|
+
],
|
|
130
|
+
'@typescript-eslint/no-unused-vars': [
|
|
131
|
+
'error',
|
|
132
|
+
{
|
|
133
|
+
args: 'after-used',
|
|
134
|
+
argsIgnorePattern: '^e$',
|
|
135
|
+
caughtErrors: 'none',
|
|
136
|
+
ignoreRestSiblings: true,
|
|
137
|
+
vars: 'all'
|
|
138
|
+
}
|
|
139
|
+
],
|
|
140
|
+
'@typescript-eslint/no-use-before-define': [
|
|
141
|
+
'error',
|
|
142
|
+
{
|
|
143
|
+
classes: false,
|
|
144
|
+
functions: false,
|
|
145
|
+
variables: false
|
|
146
|
+
}
|
|
147
|
+
],
|
|
148
|
+
'@typescript-eslint/no-useless-constructor': 'error',
|
|
149
|
+
'@typescript-eslint/no-useless-empty-export': 'error',
|
|
150
|
+
'@typescript-eslint/no-var-requires': 'error',
|
|
151
|
+
'@typescript-eslint/non-nullable-type-assertion-style': 'error',
|
|
152
|
+
'@typescript-eslint/object-curly-spacing': ['error', 'never'],
|
|
153
|
+
'@typescript-eslint/padding-line-between-statements': [
|
|
154
|
+
'error',
|
|
155
|
+
{
|
|
156
|
+
blankLine: 'always',
|
|
157
|
+
next: '*',
|
|
158
|
+
prev: ['const', 'let', 'var']
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
blankLine: 'any',
|
|
162
|
+
next: ['const', 'let', 'var'],
|
|
163
|
+
prev: ['const', 'let', 'var']
|
|
164
|
+
}
|
|
165
|
+
],
|
|
166
|
+
'@typescript-eslint/prefer-as-const': 'error',
|
|
167
|
+
'@typescript-eslint/prefer-enum-initializers': 'off',
|
|
168
|
+
'@typescript-eslint/prefer-for-of': 'error',
|
|
169
|
+
'@typescript-eslint/prefer-function-type': 'off',
|
|
170
|
+
'@typescript-eslint/prefer-includes': 'error',
|
|
171
|
+
'@typescript-eslint/prefer-literal-enum-member': 'error',
|
|
172
|
+
'@typescript-eslint/prefer-namespace-keyword': 'error',
|
|
173
|
+
'@typescript-eslint/prefer-nullish-coalescing': 'error',
|
|
174
|
+
'@typescript-eslint/prefer-optional-chain': 'error',
|
|
175
|
+
'@typescript-eslint/prefer-readonly': 'error',
|
|
176
|
+
'@typescript-eslint/prefer-readonly-parameter-types': 'off',
|
|
177
|
+
'@typescript-eslint/prefer-reduce-type-parameter': 'error',
|
|
178
|
+
'@typescript-eslint/prefer-return-this-type': 'error',
|
|
179
|
+
'@typescript-eslint/prefer-string-starts-ends-with': 'error',
|
|
180
|
+
'@typescript-eslint/prefer-ts-expect-error': 'error',
|
|
181
|
+
'@typescript-eslint/promise-function-async': 'error',
|
|
182
|
+
'@typescript-eslint/quotes': [
|
|
183
|
+
'error',
|
|
184
|
+
'single',
|
|
185
|
+
{avoidEscape: true}
|
|
186
|
+
],
|
|
187
|
+
'@typescript-eslint/require-array-sort-compare': 'off',
|
|
188
|
+
'@typescript-eslint/require-await': 'error',
|
|
189
|
+
'@typescript-eslint/restrict-plus-operands': 'error',
|
|
190
|
+
'@typescript-eslint/restrict-template-expressions': 'error',
|
|
191
|
+
'@typescript-eslint/return-await': 'error',
|
|
192
|
+
'@typescript-eslint/semi': 'error',
|
|
193
|
+
'@typescript-eslint/sort-type-constituents': ['error', {checkIntersections: false}],
|
|
194
|
+
'@typescript-eslint/space-before-blocks': ['error', 'always'],
|
|
195
|
+
'@typescript-eslint/space-before-function-paren': [
|
|
196
|
+
'error',
|
|
197
|
+
{
|
|
198
|
+
anonymous: 'never',
|
|
199
|
+
asyncArrow: 'always',
|
|
200
|
+
named: 'never'
|
|
201
|
+
}
|
|
202
|
+
],
|
|
203
|
+
'@typescript-eslint/space-infix-ops': 'error',
|
|
204
|
+
'@typescript-eslint/strict-boolean-expressions': 'off',
|
|
205
|
+
'@typescript-eslint/switch-exhaustiveness-check': 'error',
|
|
206
|
+
'@typescript-eslint/triple-slash-reference': 'error',
|
|
207
|
+
'@typescript-eslint/type-annotation-spacing': 'error',
|
|
208
|
+
'@typescript-eslint/unified-signatures': 'error',
|
|
209
|
+
'brace-style': 'off',
|
|
210
|
+
'comma-dangle': 'off',
|
|
211
|
+
'comma-spacing': 'off',
|
|
212
|
+
'default-param-last': 'off',
|
|
213
|
+
'dot-notation': 'off',
|
|
214
|
+
'func-call-spacing': 'off',
|
|
215
|
+
'jsdoc/require-param-type': 'off',
|
|
216
|
+
'jsdoc/require-returns-type': 'off',
|
|
217
|
+
'keyword-spacing': 'off',
|
|
218
|
+
'lines-between-class-members': 'off',
|
|
219
|
+
'no-array-constructor': 'off',
|
|
220
|
+
'no-dupe-class-members': 'off',
|
|
221
|
+
'no-empty-function': 'off',
|
|
222
|
+
'no-extra-semi': 'off',
|
|
223
|
+
'no-implied-eval': 'off',
|
|
224
|
+
'no-invalid-this': 'off',
|
|
225
|
+
'no-loop-func': 'off',
|
|
226
|
+
'no-loss-of-precision': 'off',
|
|
227
|
+
'no-redeclare': 'off',
|
|
228
|
+
'no-return-await': 'off',
|
|
229
|
+
'no-shadow': 'off',
|
|
230
|
+
'no-throw-literal': 'off',
|
|
231
|
+
'no-undefined': 'off',
|
|
232
|
+
'no-unused-expressions': 'off',
|
|
233
|
+
'no-unused-vars': 'off',
|
|
234
|
+
'no-use-before-define': 'off',
|
|
235
|
+
'no-useless-constructor': 'off',
|
|
236
|
+
'object-curly-spacing': 'off',
|
|
237
|
+
'padding-line-between-statements': 'off',
|
|
238
|
+
quotes: 'off',
|
|
239
|
+
'react/default-props-match-prop-types': 'off',
|
|
240
|
+
'react/require-default-props': 'off',
|
|
241
|
+
semi: 'off',
|
|
242
|
+
'space-before-blocks': 'off',
|
|
243
|
+
'space-before-function-paren': 'off',
|
|
244
|
+
'space-infix-ops': 'off'
|
|
245
|
+
}
|
|
246
|
+
};
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [3.1.3](https://github.com/nfqde/eslint-config-nfq/compare/v3.1.2...v3.1.3) (2024-03-05)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **no-unused-vars:** fix typescript version of no-unused-vars ([#57](https://github.com/nfqde/eslint-config-nfq/issues/57)) ([9b509ec](https://github.com/nfqde/eslint-config-nfq/commit/9b509ec667314c39ef16c3236bde75f1d63ceba3))
|
|
11
|
+
|
|
5
12
|
### [3.1.2](https://github.com/nfqde/eslint-config-nfq/compare/v3.1.1...v3.1.2) (2023-12-17)
|
|
6
13
|
|
|
7
14
|
|
package/package.json
CHANGED
package/rules/typescript.js
CHANGED
|
@@ -127,7 +127,16 @@ module.exports = {
|
|
|
127
127
|
allowTernary: true
|
|
128
128
|
}
|
|
129
129
|
],
|
|
130
|
-
'@typescript-eslint/no-unused-vars':
|
|
130
|
+
'@typescript-eslint/no-unused-vars': [
|
|
131
|
+
'error',
|
|
132
|
+
{
|
|
133
|
+
args: 'after-used',
|
|
134
|
+
argsIgnorePattern: '^e$',
|
|
135
|
+
caughtErrors: 'none',
|
|
136
|
+
ignoreRestSiblings: true,
|
|
137
|
+
vars: 'all'
|
|
138
|
+
}
|
|
139
|
+
],
|
|
131
140
|
'@typescript-eslint/no-use-before-define': [
|
|
132
141
|
'error',
|
|
133
142
|
{
|