@nfq/eslint-config 3.2.2 → 3.3.0
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.
- package/.history/README_20231217144518.md +99 -0
- package/.history/README_20241010130324.md +100 -0
- package/.history/README_20241010130401.md +101 -0
- package/.history/README_20241010130435.md +103 -0
- package/.history/index_20230528105125.js +43 -0
- package/.history/index_20241010125314.js +48 -0
- package/.history/package_20241010130116.json +79 -0
- package/.history/package_20241010130143.json +80 -0
- package/.history/rules/stylistic_20241010124403.js +0 -0
- package/.history/rules/stylistic_20241010130035.js +72 -0
- package/.history/rules/typescript_20241010125102.js +179 -0
- package/.history/rules/typescript_20241010125819.js +180 -0
- package/CHANGELOG.md +7 -0
- package/README.md +4 -0
- package/index.js +8 -3
- package/package.json +3 -1
- package/rules/stylistic.js +72 -0
- package/rules/typescript.js +1 -69
package/rules/typescript.js
CHANGED
|
@@ -3,16 +3,7 @@ module.exports = {
|
|
|
3
3
|
rules: {
|
|
4
4
|
'@typescript-eslint/adjacent-overload-signatures': 'error',
|
|
5
5
|
'@typescript-eslint/array-type': ['error', {default: 'array'}],
|
|
6
|
-
'@typescript-eslint/brace-style': ['error', '1tbs', {allowSingleLine: false}],
|
|
7
6
|
'@typescript-eslint/class-literal-property-style': 'error',
|
|
8
|
-
'@typescript-eslint/comma-dangle': ['error', 'never'],
|
|
9
|
-
'@typescript-eslint/comma-spacing': [
|
|
10
|
-
'error',
|
|
11
|
-
{
|
|
12
|
-
after: true,
|
|
13
|
-
before: false
|
|
14
|
-
}
|
|
15
|
-
],
|
|
16
7
|
'@typescript-eslint/consistent-generic-constructors': ['error', 'constructor'],
|
|
17
8
|
'@typescript-eslint/consistent-indexed-object-style': ['error', 'record'],
|
|
18
9
|
'@typescript-eslint/consistent-type-assertions': ['error', {assertionStyle: 'as'}],
|
|
@@ -30,35 +21,8 @@ module.exports = {
|
|
|
30
21
|
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
31
22
|
'@typescript-eslint/explicit-member-accessibility': ['error', {accessibility: 'no-public'}],
|
|
32
23
|
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
33
|
-
'@typescript-eslint/func-call-spacing': ['error', 'never'],
|
|
34
24
|
'@typescript-eslint/indent': 'off',
|
|
35
25
|
'@typescript-eslint/init-declarations': 'off',
|
|
36
|
-
'@typescript-eslint/keyword-spacing': [
|
|
37
|
-
'error',
|
|
38
|
-
{
|
|
39
|
-
after: true,
|
|
40
|
-
before: true
|
|
41
|
-
}
|
|
42
|
-
],
|
|
43
|
-
'@typescript-eslint/lines-between-class-members': [
|
|
44
|
-
'error',
|
|
45
|
-
'always',
|
|
46
|
-
{exceptAfterSingleLine: false}
|
|
47
|
-
],
|
|
48
|
-
'@typescript-eslint/member-delimiter-style': [
|
|
49
|
-
'error',
|
|
50
|
-
{
|
|
51
|
-
multiline: {
|
|
52
|
-
delimiter: 'semi',
|
|
53
|
-
requireLast: true
|
|
54
|
-
},
|
|
55
|
-
multilineDetection: 'brackets',
|
|
56
|
-
singleline: {
|
|
57
|
-
delimiter: 'semi',
|
|
58
|
-
requireLast: false
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
],
|
|
62
26
|
'@typescript-eslint/member-ordering': [
|
|
63
27
|
'error',
|
|
64
28
|
{
|
|
@@ -80,7 +44,6 @@ module.exports = {
|
|
|
80
44
|
'@typescript-eslint/no-empty-object-type': 'error',
|
|
81
45
|
'@typescript-eslint/no-explicit-any': 'off',
|
|
82
46
|
'@typescript-eslint/no-extra-non-null-assertion': 'error',
|
|
83
|
-
'@typescript-eslint/no-extra-semi': 'error',
|
|
84
47
|
'@typescript-eslint/no-extraneous-class': 'off',
|
|
85
48
|
'@typescript-eslint/no-floating-promises': 'error',
|
|
86
49
|
'@typescript-eslint/no-for-in-array': 'error',
|
|
@@ -107,7 +70,6 @@ module.exports = {
|
|
|
107
70
|
'@typescript-eslint/no-require-imports': 'warn',
|
|
108
71
|
'@typescript-eslint/no-shadow': 'error',
|
|
109
72
|
'@typescript-eslint/no-this-alias': ['error', {allowedNames: ['self']}],
|
|
110
|
-
'@typescript-eslint/no-throw-literal': 'error',
|
|
111
73
|
'@typescript-eslint/no-unnecessary-boolean-literal-compare': 'error',
|
|
112
74
|
'@typescript-eslint/no-unnecessary-condition': 'error',
|
|
113
75
|
'@typescript-eslint/no-unnecessary-qualifier': 'error',
|
|
@@ -151,20 +113,7 @@ module.exports = {
|
|
|
151
113
|
'@typescript-eslint/no-var-requires': 'error',
|
|
152
114
|
'@typescript-eslint/no-wrapper-object-types': 'error',
|
|
153
115
|
'@typescript-eslint/non-nullable-type-assertion-style': 'error',
|
|
154
|
-
'@typescript-eslint/
|
|
155
|
-
'@typescript-eslint/padding-line-between-statements': [
|
|
156
|
-
'error',
|
|
157
|
-
{
|
|
158
|
-
blankLine: 'always',
|
|
159
|
-
next: '*',
|
|
160
|
-
prev: ['const', 'let', 'var']
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
blankLine: 'any',
|
|
164
|
-
next: ['const', 'let', 'var'],
|
|
165
|
-
prev: ['const', 'let', 'var']
|
|
166
|
-
}
|
|
167
|
-
],
|
|
116
|
+
'@typescript-eslint/only-throw-error': 'error',
|
|
168
117
|
'@typescript-eslint/prefer-as-const': 'error',
|
|
169
118
|
'@typescript-eslint/prefer-enum-initializers': 'off',
|
|
170
119
|
'@typescript-eslint/prefer-for-of': 'error',
|
|
@@ -181,32 +130,15 @@ module.exports = {
|
|
|
181
130
|
'@typescript-eslint/prefer-string-starts-ends-with': 'error',
|
|
182
131
|
'@typescript-eslint/prefer-ts-expect-error': 'error',
|
|
183
132
|
'@typescript-eslint/promise-function-async': 'error',
|
|
184
|
-
'@typescript-eslint/quotes': [
|
|
185
|
-
'error',
|
|
186
|
-
'single',
|
|
187
|
-
{avoidEscape: true}
|
|
188
|
-
],
|
|
189
133
|
'@typescript-eslint/require-array-sort-compare': 'off',
|
|
190
134
|
'@typescript-eslint/require-await': 'error',
|
|
191
135
|
'@typescript-eslint/restrict-plus-operands': 'error',
|
|
192
136
|
'@typescript-eslint/restrict-template-expressions': 'error',
|
|
193
137
|
'@typescript-eslint/return-await': 'error',
|
|
194
|
-
'@typescript-eslint/semi': 'error',
|
|
195
138
|
'@typescript-eslint/sort-type-constituents': ['error', {checkIntersections: false}],
|
|
196
|
-
'@typescript-eslint/space-before-blocks': ['error', 'always'],
|
|
197
|
-
'@typescript-eslint/space-before-function-paren': [
|
|
198
|
-
'error',
|
|
199
|
-
{
|
|
200
|
-
anonymous: 'never',
|
|
201
|
-
asyncArrow: 'always',
|
|
202
|
-
named: 'never'
|
|
203
|
-
}
|
|
204
|
-
],
|
|
205
|
-
'@typescript-eslint/space-infix-ops': 'error',
|
|
206
139
|
'@typescript-eslint/strict-boolean-expressions': 'off',
|
|
207
140
|
'@typescript-eslint/switch-exhaustiveness-check': 'error',
|
|
208
141
|
'@typescript-eslint/triple-slash-reference': 'error',
|
|
209
|
-
'@typescript-eslint/type-annotation-spacing': 'error',
|
|
210
142
|
'@typescript-eslint/unified-signatures': 'error',
|
|
211
143
|
'brace-style': 'off',
|
|
212
144
|
'comma-dangle': 'off',
|