@eslinted/defaults 12.9.0 → 12.11.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/dist/ignores/global.js +0 -2
- package/dist/ignores/global.js.map +1 -1
- package/dist/index.d.ts +170 -1435
- package/dist/index.d.ts.map +1 -1
- package/dist/rules/index.d.ts +159 -817
- package/dist/rules/index.d.ts.map +1 -1
- package/dist/rules/scopes/css/enable.d.ts +2 -7
- package/dist/rules/scopes/css/enable.d.ts.map +1 -1
- package/dist/rules/scopes/css/enable.js +3 -19
- package/dist/rules/scopes/css/enable.js.map +1 -1
- package/dist/rules/scopes/css/index.d.ts +2 -7
- package/dist/rules/scopes/css/index.d.ts.map +1 -1
- package/dist/rules/scopes/enable.d.ts +35 -186
- package/dist/rules/scopes/enable.d.ts.map +1 -1
- package/dist/rules/scopes/enable.js +68 -329
- package/dist/rules/scopes/enable.js.map +1 -1
- package/dist/rules/scopes/enable.style.d.ts +42 -250
- package/dist/rules/scopes/enable.style.d.ts.map +1 -1
- package/dist/rules/scopes/enable.style.js +45 -388
- package/dist/rules/scopes/enable.style.js.map +1 -1
- package/dist/rules/scopes/html/index.d.ts +5 -18
- package/dist/rules/scopes/html/index.d.ts.map +1 -1
- package/dist/rules/scopes/html/plugin/index.d.ts +5 -18
- package/dist/rules/scopes/html/plugin/index.d.ts.map +1 -1
- package/dist/rules/scopes/html/plugin/index.js +7 -63
- package/dist/rules/scopes/html/plugin/index.js.map +1 -1
- package/dist/rules/scopes/index.d.ts +77 -436
- package/dist/rules/scopes/index.d.ts.map +1 -1
- package/dist/rules/scopes/json/enable.js +2 -7
- package/dist/rules/scopes/json/enable.js.map +1 -1
- package/dist/rules/scopes/json/index.d.ts +7 -20
- package/dist/rules/scopes/json/index.d.ts.map +1 -1
- package/dist/rules/scopes/json/plugin/extension.d.ts +7 -20
- package/dist/rules/scopes/json/plugin/extension.d.ts.map +1 -1
- package/dist/rules/scopes/json/plugin/extension.js +9 -48
- package/dist/rules/scopes/json/plugin/extension.js.map +1 -1
- package/dist/rules/scopes/json/plugin/index.js +2 -9
- package/dist/rules/scopes/json/plugin/index.js.map +1 -1
- package/dist/rules/scopes/jsonc/plugin/index.js +1 -2
- package/dist/rules/scopes/jsonc/plugin/index.js.map +1 -1
- package/dist/rules/scopes/jsoncc/plugin/index.js +1 -2
- package/dist/rules/scopes/jsoncc/plugin/index.js.map +1 -1
- package/dist/rules/scopes/mocha/chai/expect.js +1 -5
- package/dist/rules/scopes/mocha/chai/expect.js.map +1 -1
- package/dist/rules/scopes/mocha/chai/index.d.ts +0 -2
- package/dist/rules/scopes/mocha/chai/index.d.ts.map +1 -1
- package/dist/rules/scopes/mocha/chai/index.js +1 -4
- package/dist/rules/scopes/mocha/chai/index.js.map +1 -1
- package/dist/rules/scopes/mocha/disable.js +2 -3
- package/dist/rules/scopes/mocha/disable.js.map +1 -1
- package/dist/rules/scopes/mocha/enable.d.ts +3 -10
- package/dist/rules/scopes/mocha/enable.d.ts.map +1 -1
- package/dist/rules/scopes/mocha/enable.js +4 -31
- package/dist/rules/scopes/mocha/enable.js.map +1 -1
- package/dist/rules/scopes/mocha/index.d.ts +3 -12
- package/dist/rules/scopes/mocha/index.d.ts.map +1 -1
- package/dist/rules/scopes/svelte/disable.js +6 -9
- package/dist/rules/scopes/svelte/disable.js.map +1 -1
- package/dist/rules/scopes/svelte/enable.d.ts +19 -91
- package/dist/rules/scopes/svelte/enable.d.ts.map +1 -1
- package/dist/rules/scopes/svelte/enable.js +23 -179
- package/dist/rules/scopes/svelte/enable.js.map +1 -1
- package/dist/rules/scopes/svelte/extension/disable.js +2 -3
- package/dist/rules/scopes/svelte/extension/disable.js.map +1 -1
- package/dist/rules/scopes/svelte/extension/index.d.ts +2 -7
- package/dist/rules/scopes/svelte/extension/index.d.ts.map +1 -1
- package/dist/rules/scopes/svelte/extension/index.js +3 -13
- package/dist/rules/scopes/svelte/extension/index.js.map +1 -1
- package/dist/rules/scopes/svelte/index.d.ts +21 -98
- package/dist/rules/scopes/svelte/index.d.ts.map +1 -1
- package/dist/rules/scopes/ts/disable.js +4 -5
- package/dist/rules/scopes/ts/disable.js.map +1 -1
- package/dist/rules/scopes/ts/enable.d.ts +31 -163
- package/dist/rules/scopes/ts/enable.d.ts.map +1 -1
- package/dist/rules/scopes/ts/enable.js +34 -408
- package/dist/rules/scopes/ts/enable.js.map +1 -1
- package/dist/rules/scopes/ts/extension/disable.js +1 -18
- package/dist/rules/scopes/ts/extension/disable.js.map +1 -1
- package/dist/rules/scopes/ts/extension/index.d.ts +1 -20
- package/dist/rules/scopes/ts/extension/index.d.ts.map +1 -1
- package/dist/rules/scopes/ts/extension/index.js +2 -46
- package/dist/rules/scopes/ts/extension/index.js.map +1 -1
- package/dist/rules/scopes/ts/index.d.ts +32 -183
- package/dist/rules/scopes/ts/index.d.ts.map +1 -1
- package/dist/rules/scopes/yml/index.d.ts +12 -43
- package/dist/rules/scopes/yml/index.d.ts.map +1 -1
- package/dist/rules/scopes/yml/plugin/extension.d.ts +5 -22
- package/dist/rules/scopes/yml/plugin/extension.d.ts.map +1 -1
- package/dist/rules/scopes/yml/plugin/extension.js +9 -41
- package/dist/rules/scopes/yml/plugin/extension.js.map +1 -1
- package/dist/rules/scopes/yml/plugin/index.d.ts +7 -21
- package/dist/rules/scopes/yml/plugin/index.d.ts.map +1 -1
- package/dist/rules/scopes/yml/plugin/index.js +9 -64
- package/dist/rules/scopes/yml/plugin/index.js.map +1 -1
- package/dist/settings/registry/manifests/css.js +1 -3
- package/dist/settings/registry/manifests/css.js.map +1 -1
- package/dist/settings/registry/manifests/html.js +1 -2
- package/dist/settings/registry/manifests/html.js.map +1 -1
- package/dist/settings/registry/manifests/js.js +2 -6
- package/dist/settings/registry/manifests/js.js.map +1 -1
- package/dist/settings/registry/manifests/json.js +2 -2
- package/dist/settings/registry/manifests/json.js.map +1 -1
- package/dist/settings/registry/manifests/jsonc.js +2 -6
- package/dist/settings/registry/manifests/jsonc.js.map +1 -1
- package/dist/settings/registry/manifests/jsoncc.js +2 -6
- package/dist/settings/registry/manifests/jsoncc.js.map +1 -1
- package/dist/settings/registry/manifests/mocha.js +2 -6
- package/dist/settings/registry/manifests/mocha.js.map +1 -1
- package/dist/settings/registry/manifests/ts.js +7 -20
- package/dist/settings/registry/manifests/ts.js.map +1 -1
- package/dist/settings/registry/manifests/yml.js +1 -4
- package/dist/settings/registry/manifests/yml.js.map +1 -1
- package/package.json +1 -1
- package/src/rules/scopes/css/enable.ts +2 -13
- package/src/rules/scopes/enable.style.ts +67 -391
- package/src/rules/scopes/enable.ts +132 -318
- package/src/rules/scopes/html/plugin/index.ts +18 -40
- package/src/rules/scopes/json/plugin/extension.ts +9 -47
- package/src/rules/scopes/mocha/chai/index.ts +0 -2
- package/src/rules/scopes/mocha/enable.ts +3 -19
- package/src/rules/scopes/svelte/disable.ts +1 -1
- package/src/rules/scopes/svelte/enable.ts +22 -157
- package/src/rules/scopes/svelte/extension/index.ts +1 -11
- package/src/rules/scopes/ts/enable.ts +34 -424
- package/src/rules/scopes/ts/extension/index.ts +2 -27
- package/src/rules/scopes/yml/plugin/extension.ts +4 -37
- package/src/rules/scopes/yml/plugin/index.ts +8 -58
- package/tsconfig.json +2 -2
|
@@ -1,57 +1,23 @@
|
|
|
1
|
-
import { ID,
|
|
1
|
+
import { ID, WARN, ON, always_multiline, always, as_needed, before, below, consistent, double, inside, never, wildcard, } from "../_strings/index.js";
|
|
2
2
|
export const EnableStyle = {
|
|
3
3
|
id: ID.Enable.Style,
|
|
4
4
|
rules: {
|
|
5
|
-
|
|
6
|
-
"@stylistic/array-bracket-
|
|
7
|
-
ON,
|
|
8
|
-
{
|
|
9
|
-
multiline: true,
|
|
10
|
-
minItems: null,
|
|
11
|
-
},
|
|
12
|
-
],
|
|
13
|
-
"@stylistic/array-bracket-spacing": [
|
|
14
|
-
ON,
|
|
15
|
-
never,
|
|
16
|
-
{
|
|
17
|
-
singleValue: false,
|
|
18
|
-
objectsInArrays: false,
|
|
19
|
-
arraysInArrays: false,
|
|
20
|
-
},
|
|
21
|
-
],
|
|
5
|
+
"@stylistic/array-bracket-newline": ON,
|
|
6
|
+
"@stylistic/array-bracket-spacing": ON,
|
|
22
7
|
"@stylistic/array-element-newline": [
|
|
23
8
|
ON,
|
|
24
9
|
{
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
minItems: 3,
|
|
29
|
-
},
|
|
30
|
-
ArrayPattern: {
|
|
31
|
-
consistent: true,
|
|
32
|
-
multiline: true,
|
|
33
|
-
minItems: 3,
|
|
34
|
-
},
|
|
10
|
+
consistent: true,
|
|
11
|
+
multiline: true,
|
|
12
|
+
minItems: 3,
|
|
35
13
|
},
|
|
36
14
|
],
|
|
37
15
|
"@stylistic/arrow-parens": [
|
|
38
16
|
ON,
|
|
39
17
|
as_needed,
|
|
40
|
-
{
|
|
41
|
-
requireForBlockBody: false,
|
|
42
|
-
},
|
|
43
|
-
],
|
|
44
|
-
"@stylistic/arrow-spacing": [
|
|
45
|
-
ON,
|
|
46
|
-
{
|
|
47
|
-
before: true,
|
|
48
|
-
after: true,
|
|
49
|
-
},
|
|
50
|
-
],
|
|
51
|
-
"@stylistic/block-spacing": [
|
|
52
|
-
ON,
|
|
53
|
-
always,
|
|
54
18
|
],
|
|
19
|
+
"@stylistic/arrow-spacing": ON,
|
|
20
|
+
"@stylistic/block-spacing": ON,
|
|
55
21
|
"@stylistic/brace-style": [
|
|
56
22
|
ON,
|
|
57
23
|
"stroustrup",
|
|
@@ -63,161 +29,45 @@ export const EnableStyle = {
|
|
|
63
29
|
ON,
|
|
64
30
|
always_multiline,
|
|
65
31
|
],
|
|
66
|
-
"@stylistic/comma-spacing":
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
after: true,
|
|
71
|
-
},
|
|
72
|
-
],
|
|
73
|
-
"@stylistic/comma-style": [
|
|
74
|
-
ON,
|
|
75
|
-
last,
|
|
76
|
-
{
|
|
77
|
-
exceptions: {
|
|
78
|
-
ArrayExpression: false /* ignores comma style in array literals */,
|
|
79
|
-
ArrayPattern: false /* ignores comma style in array patterns of destructuring */,
|
|
80
|
-
ArrowFunctionExpression: false /* ignores comma style in the parameters of arrow function expressions */,
|
|
81
|
-
CallExpression: false /* ignores comma style in the arguments of function calls */,
|
|
82
|
-
FunctionDeclaration: false /* ignores comma style in the parameters of function declarations */,
|
|
83
|
-
FunctionExpression: false /* ignores comma style in the parameters of function expressions */,
|
|
84
|
-
ImportDeclaration: false /* ignores comma style in the specifiers / import attributes of import declarations */,
|
|
85
|
-
ObjectExpression: false /* ignores comma style in object literals */,
|
|
86
|
-
ObjectPattern: false /* ignores comma style in object patterns of destructuring */,
|
|
87
|
-
VariableDeclaration: false /* ignores comma style in variable declarations */,
|
|
88
|
-
NewExpression: false /* ignores comma style in the parameters of constructor expressions */,
|
|
89
|
-
ExportAllDeclaration: false /* ignores comma style in the import attributes of export all declarations */,
|
|
90
|
-
ExportNamedDeclaration: false /* ignores comma style in the specifiers / import attributes of export named declarations */,
|
|
91
|
-
ImportExpression: false /* ignores comma style in the arguments of import expressions */,
|
|
92
|
-
SequenceExpression: false /* ignores comma style in sequence expressions */,
|
|
93
|
-
ClassDeclaration: false /* ignores comma style in the TypeScript implements of class declarations */,
|
|
94
|
-
ClassExpression: false /* ignores comma style in the TypeScript implements of class declarations */,
|
|
95
|
-
TSDeclareFunction: false /* ignores comma style in the parameters of TypeScript declare functions */,
|
|
96
|
-
TSFunctionType: false /* ignores comma style in the parameters of TypeScript function types */,
|
|
97
|
-
TSConstructorType: false /* ignores comma style in the parameters of TypeScript constructor types */,
|
|
98
|
-
TSEmptyBodyFunctionExpression: false /* ignores comma style in the parameters of TypeScript empty body function expressions */,
|
|
99
|
-
TSMethodSignature: false /* ignores comma style in the parameters of TypeScript method signatures */,
|
|
100
|
-
TSCallSignatureDeclaration: false /* ignores comma style in the parameters of TypeScript call signature declarations */,
|
|
101
|
-
TSConstructSignatureDeclaration: false /* ignores comma style in the parameters of TypeScript construct signature declarations */,
|
|
102
|
-
TSEnumBody: false /* ignores comma style in the members of TypeScript enums */,
|
|
103
|
-
TSTypeLiteral: false /* ignores comma style in the members of TypeScript type literals */,
|
|
104
|
-
TSInterfaceBody: false /* ignores comma style in the members of TypeScript interfaces */,
|
|
105
|
-
TSIndexSignature: false /* ignores comma style in the key parameters of TypeScript index signatures */,
|
|
106
|
-
TSInterfaceDeclaration: false /* ignores comma style in the extend classes of TypeScript interfaces */,
|
|
107
|
-
TSTupleType: false /* ignores comma style in the elements of TypeScript tuple types */,
|
|
108
|
-
TSTypeParameterDeclaration: false /* ignores comma style in the type parameters of TypeScript type parameter declarations */,
|
|
109
|
-
TSTypeParameterInstantiation: false /* ignores comma style in the type arguments of TypeScript type parameter instantiations */,
|
|
110
|
-
},
|
|
111
|
-
},
|
|
112
|
-
],
|
|
113
|
-
"@stylistic/computed-property-spacing": [
|
|
114
|
-
ON,
|
|
115
|
-
never,
|
|
116
|
-
{
|
|
117
|
-
enforceForClassMembers: true,
|
|
118
|
-
},
|
|
119
|
-
],
|
|
120
|
-
"@stylistic/curly-newline": [
|
|
121
|
-
ON,
|
|
122
|
-
{
|
|
123
|
-
// multiline: false,
|
|
124
|
-
// minElements: 2 /* when consistent:true, this errors if there are linebreaks with elements < minElements */,
|
|
125
|
-
consistent: true /* @default */,
|
|
126
|
-
},
|
|
127
|
-
],
|
|
32
|
+
"@stylistic/comma-spacing": ON,
|
|
33
|
+
"@stylistic/comma-style": ON,
|
|
34
|
+
"@stylistic/computed-property-spacing": ON,
|
|
35
|
+
"@stylistic/curly-newline": ON,
|
|
128
36
|
"@stylistic/dot-location": [
|
|
129
37
|
ON,
|
|
130
38
|
"property",
|
|
131
39
|
],
|
|
132
|
-
"@stylistic/eol-last":
|
|
133
|
-
ON,
|
|
134
|
-
always,
|
|
135
|
-
],
|
|
40
|
+
"@stylistic/eol-last": ON,
|
|
136
41
|
"@stylistic/function-call-argument-newline": [
|
|
137
42
|
ON,
|
|
138
43
|
consistent,
|
|
139
44
|
],
|
|
140
|
-
"@stylistic/function-call-spacing":
|
|
141
|
-
ON,
|
|
142
|
-
never,
|
|
143
|
-
],
|
|
45
|
+
"@stylistic/function-call-spacing": ON,
|
|
144
46
|
"@stylistic/function-paren-newline": [
|
|
145
47
|
ON,
|
|
146
48
|
"multiline-arguments",
|
|
147
|
-
] /* BUG: https://github.com/eslint-stylistic/eslint-stylistic/issues/290 */,
|
|
148
|
-
"@stylistic/generator-star-spacing": [
|
|
149
|
-
ON,
|
|
150
|
-
{
|
|
151
|
-
before: true,
|
|
152
|
-
after: false,
|
|
153
|
-
},
|
|
154
|
-
],
|
|
155
|
-
"@stylistic/implicit-arrow-linebreak": [
|
|
156
|
-
ON,
|
|
157
|
-
beside,
|
|
158
49
|
],
|
|
50
|
+
"@stylistic/generator-star-spacing": ON,
|
|
51
|
+
"@stylistic/implicit-arrow-linebreak": ON,
|
|
159
52
|
"@stylistic/indent": [
|
|
160
53
|
ON,
|
|
161
54
|
2,
|
|
162
55
|
{
|
|
163
|
-
ignoredNodes: [],
|
|
164
|
-
SwitchCase: 1,
|
|
165
56
|
VariableDeclarator: {
|
|
166
57
|
"var": 0,
|
|
167
58
|
let: 0,
|
|
168
59
|
"const": 0,
|
|
169
60
|
},
|
|
170
61
|
outerIIFEBody: 0,
|
|
171
|
-
MemberExpression: 1,
|
|
172
|
-
FunctionDeclaration: {
|
|
173
|
-
parameters: 1,
|
|
174
|
-
body: 1,
|
|
175
|
-
returnType: 1,
|
|
176
|
-
},
|
|
177
|
-
FunctionExpression: {
|
|
178
|
-
parameters: 1,
|
|
179
|
-
body: 1,
|
|
180
|
-
returnType: 1,
|
|
181
|
-
},
|
|
182
|
-
StaticBlock: {
|
|
183
|
-
body: 1,
|
|
184
|
-
},
|
|
185
|
-
CallExpression: {
|
|
186
|
-
arguments: 1,
|
|
187
|
-
},
|
|
188
|
-
ArrayExpression: 1,
|
|
189
|
-
ObjectExpression: 1,
|
|
190
|
-
ImportDeclaration: 1,
|
|
191
|
-
flatTernaryExpressions: false,
|
|
192
62
|
offsetTernaryExpressions: true,
|
|
193
|
-
offsetTernaryExpressionsOffsetCallExpressions: true,
|
|
194
|
-
ignoreComments: false,
|
|
195
|
-
tabLength: 2 /* @default: 4 */,
|
|
196
63
|
},
|
|
197
64
|
],
|
|
198
65
|
"@stylistic/indent-binary-ops": [
|
|
199
66
|
ON,
|
|
200
67
|
2,
|
|
201
68
|
],
|
|
202
|
-
"@stylistic/key-spacing":
|
|
203
|
-
|
|
204
|
-
{
|
|
205
|
-
beforeColon: false,
|
|
206
|
-
afterColon: true,
|
|
207
|
-
mode: strict,
|
|
208
|
-
ignoredNodes: [],
|
|
209
|
-
},
|
|
210
|
-
],
|
|
211
|
-
"@stylistic/keyword-spacing": [
|
|
212
|
-
ON,
|
|
213
|
-
{
|
|
214
|
-
before: true,
|
|
215
|
-
after: true,
|
|
216
|
-
overrides: {},
|
|
217
|
-
},
|
|
218
|
-
],
|
|
219
|
-
// "@stylistic/line-comment-position": OFF,
|
|
220
|
-
// "@stylistic/lines-around-comment": OFF,
|
|
69
|
+
"@stylistic/key-spacing": ON,
|
|
70
|
+
"@stylistic/keyword-spacing": ON,
|
|
221
71
|
"@stylistic/lines-between-class-members": [
|
|
222
72
|
ON,
|
|
223
73
|
{
|
|
@@ -239,16 +89,11 @@ export const EnableStyle = {
|
|
|
239
89
|
},
|
|
240
90
|
],
|
|
241
91
|
},
|
|
242
|
-
{
|
|
243
|
-
exceptAfterSingleLine: false,
|
|
244
|
-
exceptAfterOverload: true /* TS-only */,
|
|
245
|
-
},
|
|
246
92
|
],
|
|
247
93
|
"@stylistic/max-len": [
|
|
248
94
|
ON,
|
|
249
95
|
{
|
|
250
96
|
code: 300,
|
|
251
|
-
tabWidth: 2,
|
|
252
97
|
ignoreComments: true,
|
|
253
98
|
ignoreTrailingComments: true,
|
|
254
99
|
ignoreUrls: true,
|
|
@@ -257,77 +102,24 @@ export const EnableStyle = {
|
|
|
257
102
|
ignoreRegExpLiterals: true,
|
|
258
103
|
},
|
|
259
104
|
],
|
|
260
|
-
"@stylistic/max-statements-per-line":
|
|
261
|
-
|
|
262
|
-
{
|
|
263
|
-
max: 1,
|
|
264
|
-
},
|
|
265
|
-
],
|
|
266
|
-
"@stylistic/member-delimiter-style": [
|
|
267
|
-
ON,
|
|
268
|
-
{
|
|
269
|
-
multiline: {
|
|
270
|
-
delimiter: "semi",
|
|
271
|
-
requireLast: true,
|
|
272
|
-
},
|
|
273
|
-
singleline: {
|
|
274
|
-
delimiter: "semi",
|
|
275
|
-
requireLast: false,
|
|
276
|
-
},
|
|
277
|
-
multilineDetection: "brackets",
|
|
278
|
-
},
|
|
279
|
-
],
|
|
280
|
-
// "@stylistic/multiline-comment-style": OFF,
|
|
105
|
+
"@stylistic/max-statements-per-line": ON,
|
|
106
|
+
"@stylistic/member-delimiter-style": ON,
|
|
281
107
|
"@stylistic/multiline-ternary": [
|
|
282
108
|
ON,
|
|
283
109
|
always_multiline,
|
|
284
110
|
],
|
|
285
|
-
"@stylistic/
|
|
286
|
-
|
|
287
|
-
never,
|
|
288
|
-
],
|
|
289
|
-
"@stylistic/newline-per-chained-call": [
|
|
290
|
-
ON,
|
|
291
|
-
{
|
|
292
|
-
ignoreChainWithDepth: 2,
|
|
293
|
-
},
|
|
294
|
-
],
|
|
295
|
-
// "@stylistic/no-confusing-arrow": OFF,
|
|
296
|
-
"@stylistic/no-extra-parens": [
|
|
297
|
-
ON,
|
|
298
|
-
all,
|
|
299
|
-
{
|
|
300
|
-
conditionalAssign: true,
|
|
301
|
-
returnAssign: true,
|
|
302
|
-
nestedBinaryExpressions: true,
|
|
303
|
-
ternaryOperandBinaryExpressions: true,
|
|
304
|
-
// ignoreJSX: "none" /* all | multi-line | single-line | @default: none */,
|
|
305
|
-
enforceForArrowConditionals: true,
|
|
306
|
-
enforceForSequenceExpressions: true,
|
|
307
|
-
enforceForNewInMemberExpressions: true,
|
|
308
|
-
enforceForFunctionPrototypeMethods: true,
|
|
309
|
-
// allowParensAfterCommentPattern: "" /* regex */,
|
|
310
|
-
nestedConditionalExpressions: true,
|
|
311
|
-
allowNodesInSpreadElement: {
|
|
312
|
-
ConditionalExpression: false,
|
|
313
|
-
LogicalExpression: false,
|
|
314
|
-
AwaitExpression: false,
|
|
315
|
-
} /* @default: all true */,
|
|
316
|
-
},
|
|
317
|
-
],
|
|
111
|
+
"@stylistic/newline-per-chained-call": ON,
|
|
112
|
+
"@stylistic/no-extra-parens": ON,
|
|
318
113
|
"@stylistic/no-extra-semi": ON,
|
|
319
114
|
"@stylistic/no-floating-decimal": ON,
|
|
320
|
-
// "@stylistic/no-mixed-operators": OFF,
|
|
321
115
|
"@stylistic/no-mixed-spaces-and-tabs": ON,
|
|
322
116
|
"@stylistic/no-multi-spaces": [
|
|
323
117
|
ON,
|
|
324
118
|
{
|
|
325
|
-
ignoreEOLComments: false /* @OVERRIDE */,
|
|
326
119
|
exceptions: {
|
|
327
|
-
Property: false
|
|
328
|
-
ImportAttributes: false
|
|
120
|
+
Property: false,
|
|
121
|
+
ImportAttributes: false,
|
|
329
122
|
},
|
|
330
|
-
includeTabs: true /* @OVERRIDE */,
|
|
331
123
|
},
|
|
332
124
|
],
|
|
333
125
|
"@stylistic/no-multiple-empty-lines": [
|
|
@@ -335,77 +127,27 @@ export const EnableStyle = {
|
|
|
335
127
|
{
|
|
336
128
|
max: 1,
|
|
337
129
|
maxBOF: 0,
|
|
338
|
-
maxEOF: 0
|
|
339
|
-
},
|
|
340
|
-
],
|
|
341
|
-
"@stylistic/no-tabs": [
|
|
342
|
-
ON,
|
|
343
|
-
{
|
|
344
|
-
allowIndentationTabs: false,
|
|
345
|
-
},
|
|
346
|
-
],
|
|
347
|
-
"@stylistic/no-trailing-spaces": [
|
|
348
|
-
ON,
|
|
349
|
-
{
|
|
350
|
-
skipBlankLines: false,
|
|
351
|
-
ignoreComments: false,
|
|
130
|
+
maxEOF: 0,
|
|
352
131
|
},
|
|
353
132
|
],
|
|
133
|
+
"@stylistic/no-tabs": ON,
|
|
134
|
+
"@stylistic/no-trailing-spaces": ON,
|
|
354
135
|
"@stylistic/no-whitespace-before-property": ON,
|
|
355
136
|
"@stylistic/nonblock-statement-body-position": [
|
|
356
137
|
ON,
|
|
357
138
|
below,
|
|
358
|
-
{
|
|
359
|
-
overrides: {} /* if | else | while | do | for */,
|
|
360
|
-
},
|
|
361
139
|
],
|
|
362
140
|
"@stylistic/object-curly-newline": [
|
|
363
141
|
ON,
|
|
364
142
|
{
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
minProperties: 3,
|
|
369
|
-
},
|
|
370
|
-
ObjectPattern: {
|
|
371
|
-
consistent: true,
|
|
372
|
-
multiline: true,
|
|
373
|
-
minProperties: 3,
|
|
374
|
-
},
|
|
375
|
-
ImportDeclaration: {
|
|
376
|
-
consistent: true,
|
|
377
|
-
multiline: true,
|
|
378
|
-
minProperties: 3,
|
|
379
|
-
},
|
|
380
|
-
ExportDeclaration: {
|
|
381
|
-
consistent: true,
|
|
382
|
-
multiline: true,
|
|
383
|
-
minProperties: 3,
|
|
384
|
-
},
|
|
385
|
-
TSTypeLiteral: {
|
|
386
|
-
consistent: true,
|
|
387
|
-
multiline: true,
|
|
388
|
-
minProperties: 3,
|
|
389
|
-
},
|
|
390
|
-
TSInterfaceBody: {
|
|
391
|
-
consistent: true,
|
|
392
|
-
multiline: true,
|
|
393
|
-
minProperties: 3,
|
|
394
|
-
},
|
|
395
|
-
TSEnumBody: {
|
|
396
|
-
consistent: true,
|
|
397
|
-
multiline: true,
|
|
398
|
-
minProperties: 3,
|
|
399
|
-
},
|
|
143
|
+
consistent: true,
|
|
144
|
+
multiline: true,
|
|
145
|
+
minProperties: 3,
|
|
400
146
|
},
|
|
401
147
|
],
|
|
402
148
|
"@stylistic/object-curly-spacing": [
|
|
403
149
|
ON,
|
|
404
150
|
always,
|
|
405
|
-
{
|
|
406
|
-
arraysInObjects: true,
|
|
407
|
-
objectsInObjects: true,
|
|
408
|
-
},
|
|
409
151
|
],
|
|
410
152
|
"@stylistic/object-property-newline": ON,
|
|
411
153
|
"@stylistic/one-var-declaration-per-line": [
|
|
@@ -415,20 +157,16 @@ export const EnableStyle = {
|
|
|
415
157
|
"@stylistic/operator-linebreak": [
|
|
416
158
|
ON,
|
|
417
159
|
before,
|
|
418
|
-
{
|
|
419
|
-
overrides: {} /* e.g., = | ? | : | @default: { "?": "before", ":": "before" } */,
|
|
420
|
-
},
|
|
421
160
|
],
|
|
422
161
|
"@stylistic/padded-blocks": [
|
|
423
162
|
ON,
|
|
424
|
-
never
|
|
163
|
+
never,
|
|
425
164
|
{
|
|
426
165
|
allowSingleLineBlocks: true,
|
|
427
166
|
},
|
|
428
167
|
],
|
|
429
168
|
"@stylistic/padding-line-between-statements": [
|
|
430
169
|
WARN,
|
|
431
|
-
// #region *<
|
|
432
170
|
{
|
|
433
171
|
blankLine: never,
|
|
434
172
|
prev: [
|
|
@@ -448,7 +186,6 @@ export const EnableStyle = {
|
|
|
448
186
|
"empty",
|
|
449
187
|
"enum",
|
|
450
188
|
"export",
|
|
451
|
-
// "expression" /* aren't most of these expressions? */,
|
|
452
189
|
"for",
|
|
453
190
|
"function-overload",
|
|
454
191
|
"function",
|
|
@@ -460,7 +197,6 @@ export const EnableStyle = {
|
|
|
460
197
|
"multiline-block-like",
|
|
461
198
|
"multiline-const",
|
|
462
199
|
"multiline-export",
|
|
463
|
-
// "multiline-expression" /* aren't most of these expressions? */,
|
|
464
200
|
"multiline-let",
|
|
465
201
|
"multiline-var",
|
|
466
202
|
"return",
|
|
@@ -479,8 +215,6 @@ export const EnableStyle = {
|
|
|
479
215
|
],
|
|
480
216
|
next: wildcard,
|
|
481
217
|
},
|
|
482
|
-
// #endregion
|
|
483
|
-
// #region < Block >
|
|
484
218
|
{
|
|
485
219
|
blankLine: always,
|
|
486
220
|
prev: [
|
|
@@ -529,8 +263,6 @@ export const EnableStyle = {
|
|
|
529
263
|
"with",
|
|
530
264
|
],
|
|
531
265
|
},
|
|
532
|
-
// #endregion
|
|
533
|
-
// #region Declaration >
|
|
534
266
|
{
|
|
535
267
|
blankLine: never,
|
|
536
268
|
prev: "interface",
|
|
@@ -548,8 +280,6 @@ export const EnableStyle = {
|
|
|
548
280
|
"function",
|
|
549
281
|
],
|
|
550
282
|
},
|
|
551
|
-
// #endregion
|
|
552
|
-
// #region < =[]
|
|
553
283
|
{
|
|
554
284
|
blankLine: always,
|
|
555
285
|
prev: [
|
|
@@ -571,8 +301,6 @@ export const EnableStyle = {
|
|
|
571
301
|
"iife",
|
|
572
302
|
],
|
|
573
303
|
},
|
|
574
|
-
// #endregion
|
|
575
|
-
// #region Import[] >
|
|
576
304
|
{
|
|
577
305
|
blankLine: always,
|
|
578
306
|
prev: [
|
|
@@ -592,8 +320,6 @@ export const EnableStyle = {
|
|
|
592
320
|
"import",
|
|
593
321
|
],
|
|
594
322
|
},
|
|
595
|
-
// #endregion
|
|
596
|
-
// #region < Export[] >
|
|
597
323
|
{
|
|
598
324
|
blankLine: always,
|
|
599
325
|
prev: [
|
|
@@ -629,8 +355,6 @@ export const EnableStyle = {
|
|
|
629
355
|
"singleline-export",
|
|
630
356
|
],
|
|
631
357
|
},
|
|
632
|
-
// #endregion
|
|
633
|
-
// #region < Return >
|
|
634
358
|
{
|
|
635
359
|
blankLine: always,
|
|
636
360
|
prev: [
|
|
@@ -651,15 +375,12 @@ export const EnableStyle = {
|
|
|
651
375
|
"throw",
|
|
652
376
|
],
|
|
653
377
|
},
|
|
654
|
-
// #endregion
|
|
655
378
|
],
|
|
656
379
|
"@stylistic/quote-props": [
|
|
657
380
|
ON,
|
|
658
381
|
as_needed,
|
|
659
382
|
{
|
|
660
383
|
keywords: true,
|
|
661
|
-
unnecessary: true,
|
|
662
|
-
numbers: false,
|
|
663
384
|
},
|
|
664
385
|
],
|
|
665
386
|
"@stylistic/quotes": [
|
|
@@ -667,69 +388,23 @@ export const EnableStyle = {
|
|
|
667
388
|
double,
|
|
668
389
|
{
|
|
669
390
|
avoidEscape: true,
|
|
670
|
-
allowTemplateLiterals: always
|
|
671
|
-
ignoreStringLiterals: false,
|
|
672
|
-
},
|
|
673
|
-
],
|
|
674
|
-
"@stylistic/rest-spread-spacing": [
|
|
675
|
-
ON,
|
|
676
|
-
never,
|
|
677
|
-
],
|
|
678
|
-
"@stylistic/semi": [
|
|
679
|
-
ON,
|
|
680
|
-
always,
|
|
681
|
-
{
|
|
682
|
-
omitLastInOneLineBlock: false,
|
|
683
|
-
omitLastInOneLineClassBody: false,
|
|
684
|
-
},
|
|
685
|
-
],
|
|
686
|
-
"@stylistic/semi-spacing": [
|
|
687
|
-
ON,
|
|
688
|
-
{
|
|
689
|
-
before: false,
|
|
690
|
-
after: true,
|
|
691
|
-
},
|
|
692
|
-
],
|
|
693
|
-
"@stylistic/semi-style": [
|
|
694
|
-
ON,
|
|
695
|
-
last,
|
|
696
|
-
],
|
|
697
|
-
"@stylistic/space-before-blocks": [
|
|
698
|
-
ON,
|
|
699
|
-
{
|
|
700
|
-
functions: always,
|
|
701
|
-
keywords: always,
|
|
702
|
-
classes: always,
|
|
391
|
+
allowTemplateLiterals: always,
|
|
703
392
|
},
|
|
704
393
|
],
|
|
394
|
+
"@stylistic/rest-spread-spacing": ON,
|
|
395
|
+
"@stylistic/semi": ON,
|
|
396
|
+
"@stylistic/semi-spacing": ON,
|
|
397
|
+
"@stylistic/semi-style": ON,
|
|
398
|
+
"@stylistic/space-before-blocks": ON,
|
|
705
399
|
"@stylistic/space-before-function-paren": [
|
|
706
400
|
ON,
|
|
707
401
|
{
|
|
708
|
-
anonymous: always,
|
|
709
402
|
named: never,
|
|
710
|
-
asyncArrow: always,
|
|
711
|
-
"catch": always,
|
|
712
|
-
},
|
|
713
|
-
],
|
|
714
|
-
"@stylistic/space-in-parens": [
|
|
715
|
-
ON,
|
|
716
|
-
never,
|
|
717
|
-
],
|
|
718
|
-
"@stylistic/space-infix-ops": [
|
|
719
|
-
ON,
|
|
720
|
-
{
|
|
721
|
-
int32Hint: true,
|
|
722
|
-
ignoreTypes: false,
|
|
723
|
-
},
|
|
724
|
-
],
|
|
725
|
-
"@stylistic/space-unary-ops": [
|
|
726
|
-
ON,
|
|
727
|
-
{
|
|
728
|
-
words: true,
|
|
729
|
-
nonwords: false,
|
|
730
|
-
overrides: {},
|
|
731
403
|
},
|
|
732
404
|
],
|
|
405
|
+
"@stylistic/space-in-parens": ON,
|
|
406
|
+
"@stylistic/space-infix-ops": ON,
|
|
407
|
+
"@stylistic/space-unary-ops": ON,
|
|
733
408
|
"@stylistic/spaced-comment": [
|
|
734
409
|
ON,
|
|
735
410
|
always,
|
|
@@ -761,21 +436,9 @@ export const EnableStyle = {
|
|
|
761
436
|
},
|
|
762
437
|
},
|
|
763
438
|
],
|
|
764
|
-
"@stylistic/switch-colon-spacing":
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
after: true,
|
|
768
|
-
before: false,
|
|
769
|
-
},
|
|
770
|
-
],
|
|
771
|
-
"@stylistic/template-curly-spacing": [
|
|
772
|
-
ON,
|
|
773
|
-
never,
|
|
774
|
-
],
|
|
775
|
-
"@stylistic/template-tag-spacing": [
|
|
776
|
-
ON,
|
|
777
|
-
never,
|
|
778
|
-
],
|
|
439
|
+
"@stylistic/switch-colon-spacing": ON,
|
|
440
|
+
"@stylistic/template-curly-spacing": ON,
|
|
441
|
+
"@stylistic/template-tag-spacing": ON,
|
|
779
442
|
"@stylistic/type-annotation-spacing": [
|
|
780
443
|
ON,
|
|
781
444
|
{
|
|
@@ -787,7 +450,7 @@ export const EnableStyle = {
|
|
|
787
450
|
after: true,
|
|
788
451
|
},
|
|
789
452
|
},
|
|
790
|
-
}
|
|
453
|
+
},
|
|
791
454
|
],
|
|
792
455
|
"@stylistic/type-generic-spacing": ON,
|
|
793
456
|
"@stylistic/type-named-tuple-spacing": ON,
|
|
@@ -799,13 +462,7 @@ export const EnableStyle = {
|
|
|
799
462
|
},
|
|
800
463
|
],
|
|
801
464
|
"@stylistic/wrap-regex": ON,
|
|
802
|
-
"@stylistic/yield-star-spacing":
|
|
803
|
-
ON,
|
|
804
|
-
{
|
|
805
|
-
before: false,
|
|
806
|
-
after: true,
|
|
807
|
-
},
|
|
808
|
-
],
|
|
465
|
+
"@stylistic/yield-star-spacing": ON,
|
|
809
466
|
},
|
|
810
467
|
};
|
|
811
468
|
//# sourceMappingURL=enable.style.js.map
|