@eslinted/defaults 18.0.3 → 19.0.0-rc.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/index.d.ts +3 -266
- package/dist/index.d.ts.map +1 -1
- package/dist/rules/index.d.ts +3 -266
- package/dist/rules/index.d.ts.map +1 -1
- package/dist/rules/js.d.ts +2 -264
- package/dist/rules/js.d.ts.map +1 -1
- package/dist/rules/js.js +1 -5
- package/dist/rules/js.js.map +1 -1
- package/dist/rules/svelte/disable.d.ts +0 -1
- package/dist/rules/svelte/disable.d.ts.map +1 -1
- package/dist/rules/svelte/disable.js +0 -1
- package/dist/rules/svelte/disable.js.map +1 -1
- package/dist/rules/svelte/extend.d.ts +0 -1
- package/dist/rules/svelte/extend.d.ts.map +1 -1
- package/dist/rules/svelte/extend.js +0 -1
- package/dist/rules/svelte/extend.js.map +1 -1
- package/dist/rules/svelte/index.d.ts +0 -2
- package/dist/rules/svelte/index.d.ts.map +1 -1
- package/dist/rules/ts/index.d.ts +1 -0
- package/dist/rules/ts/index.d.ts.map +1 -1
- package/dist/rules/ts/ts.d.ts +1 -0
- package/dist/rules/ts/ts.d.ts.map +1 -1
- package/dist/rules/ts/ts.js +1 -0
- package/dist/rules/ts/ts.js.map +1 -1
- package/package.json +1 -1
- package/src/rules/js.ts +1 -5
- package/src/rules/json/plugin/extend.ts +7 -7
- package/src/rules/svelte/disable.ts +0 -1
- package/src/rules/svelte/extend.ts +1 -2
- package/src/rules/svelte/svelte.ts +1 -1
- package/src/rules/ts/ts.ts +1 -1
- package/src/rules/yml/extend.ts +4 -4
- package/dist/rules/js.stylistic.d.ts +0 -266
- package/dist/rules/js.stylistic.d.ts.map +0 -1
- package/dist/rules/js.stylistic.js +0 -260
- package/dist/rules/js.stylistic.js.map +0 -1
- package/src/rules/js.stylistic.ts +0 -269
|
@@ -1,269 +0,0 @@
|
|
|
1
|
-
import { State } from "./state";
|
|
2
|
-
|
|
3
|
-
// DOC: https://eslint.style/rules
|
|
4
|
-
export default {
|
|
5
|
-
rules: {
|
|
6
|
-
"stylistic/array-bracket-newline": State.WARN,
|
|
7
|
-
"stylistic/array-bracket-spacing": State.WARN,
|
|
8
|
-
"stylistic/array-element-newline": [
|
|
9
|
-
State.WARN,
|
|
10
|
-
{
|
|
11
|
-
consistent: true,
|
|
12
|
-
multiline: true,
|
|
13
|
-
minItems: 3,
|
|
14
|
-
},
|
|
15
|
-
],
|
|
16
|
-
"stylistic/arrow-parens": [
|
|
17
|
-
State.WARN,
|
|
18
|
-
"as-needed",
|
|
19
|
-
],
|
|
20
|
-
"stylistic/arrow-spacing": State.WARN,
|
|
21
|
-
"stylistic/block-spacing": State.WARN,
|
|
22
|
-
"stylistic/brace-style": [
|
|
23
|
-
State.WARN,
|
|
24
|
-
"stroustrup",
|
|
25
|
-
{
|
|
26
|
-
allowSingleLine: true,
|
|
27
|
-
},
|
|
28
|
-
],
|
|
29
|
-
"stylistic/comma-dangle": [
|
|
30
|
-
State.WARN,
|
|
31
|
-
"always-multiline",
|
|
32
|
-
],
|
|
33
|
-
"stylistic/comma-spacing": State.WARN,
|
|
34
|
-
"stylistic/comma-style": State.WARN,
|
|
35
|
-
"stylistic/computed-property-spacing": State.WARN,
|
|
36
|
-
"stylistic/curly-newline": State.WARN,
|
|
37
|
-
"stylistic/dot-location": [
|
|
38
|
-
State.WARN,
|
|
39
|
-
"property",
|
|
40
|
-
],
|
|
41
|
-
"stylistic/eol-last": State.WARN,
|
|
42
|
-
"stylistic/function-call-argument-newline": [
|
|
43
|
-
State.WARN,
|
|
44
|
-
"consistent",
|
|
45
|
-
],
|
|
46
|
-
"stylistic/function-call-spacing": State.WARN,
|
|
47
|
-
"stylistic/function-paren-newline": [
|
|
48
|
-
State.WARN,
|
|
49
|
-
"multiline-arguments",
|
|
50
|
-
] /* BUG: https://github.com/eslint-stylistic/eslint-stylistic/issues/290 */,
|
|
51
|
-
"stylistic/generator-star-spacing": State.WARN,
|
|
52
|
-
"stylistic/implicit-arrow-linebreak": State.WARN,
|
|
53
|
-
"stylistic/indent": [
|
|
54
|
-
State.WARN,
|
|
55
|
-
2,
|
|
56
|
-
{
|
|
57
|
-
assignmentOperator: 0,
|
|
58
|
-
VariableDeclarator: {
|
|
59
|
-
"var": 0,
|
|
60
|
-
let: 0,
|
|
61
|
-
"const": 0,
|
|
62
|
-
},
|
|
63
|
-
outerIIFEBody: 0,
|
|
64
|
-
offsetTernaryExpressions: true,
|
|
65
|
-
},
|
|
66
|
-
],
|
|
67
|
-
"stylistic/indent-binary-ops": [
|
|
68
|
-
State.WARN,
|
|
69
|
-
2 /* MUST be same as `stylistic/indent`[1] */,
|
|
70
|
-
],
|
|
71
|
-
"stylistic/key-spacing": State.WARN,
|
|
72
|
-
"stylistic/keyword-spacing": State.WARN,
|
|
73
|
-
// "stylistic/line-comment-position": State.OFF,
|
|
74
|
-
"stylistic/linebreak-style": State.WARN,
|
|
75
|
-
// "stylistic/lines-around-comment": State.OFF,
|
|
76
|
-
"stylistic/lines-between-class-members": [
|
|
77
|
-
State.WARN,
|
|
78
|
-
{
|
|
79
|
-
enforce: [
|
|
80
|
-
{
|
|
81
|
-
prev: "field",
|
|
82
|
-
next: "field",
|
|
83
|
-
blankLine: "never",
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
prev: "field",
|
|
87
|
-
next: "method",
|
|
88
|
-
blankLine: "always",
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
prev: "method",
|
|
92
|
-
next: "*",
|
|
93
|
-
blankLine: "always",
|
|
94
|
-
},
|
|
95
|
-
],
|
|
96
|
-
},
|
|
97
|
-
],
|
|
98
|
-
"stylistic/max-len": [
|
|
99
|
-
State.WARN,
|
|
100
|
-
{
|
|
101
|
-
code: 300,
|
|
102
|
-
ignoreComments: true,
|
|
103
|
-
ignoreTrailingComments: true,
|
|
104
|
-
ignoreUrls: true,
|
|
105
|
-
ignoreStrings: true,
|
|
106
|
-
ignoreTemplateLiterals: true,
|
|
107
|
-
ignoreRegExpLiterals: true,
|
|
108
|
-
},
|
|
109
|
-
],
|
|
110
|
-
"stylistic/max-statements-per-line": State.WARN,
|
|
111
|
-
"stylistic/member-delimiter-style": State.WARN,
|
|
112
|
-
// "stylistic/multiline-comment-style": State.OFF,
|
|
113
|
-
"stylistic/multiline-ternary": [
|
|
114
|
-
State.WARN,
|
|
115
|
-
"always-multiline",
|
|
116
|
-
],
|
|
117
|
-
// "stylistic/new-parens": State.OFF,
|
|
118
|
-
"stylistic/newline-per-chained-call": State.WARN,
|
|
119
|
-
// "stylistic/no-confusing-arrow": State.OFF,
|
|
120
|
-
"stylistic/no-extra-parens": State.WARN,
|
|
121
|
-
"stylistic/no-extra-semi": State.WARN,
|
|
122
|
-
"stylistic/no-floating-decimal": State.WARN,
|
|
123
|
-
// "stylistic/no-mixed-operators": State.OFF,
|
|
124
|
-
"stylistic/no-mixed-spaces-and-tabs": State.WARN,
|
|
125
|
-
"stylistic/no-multi-spaces": [
|
|
126
|
-
State.WARN,
|
|
127
|
-
{
|
|
128
|
-
exceptions: {
|
|
129
|
-
Property: false,
|
|
130
|
-
ImportAttributes: false,
|
|
131
|
-
},
|
|
132
|
-
},
|
|
133
|
-
],
|
|
134
|
-
"stylistic/no-multiple-empty-lines": [
|
|
135
|
-
State.WARN,
|
|
136
|
-
{
|
|
137
|
-
max: 1,
|
|
138
|
-
maxBOF: 0,
|
|
139
|
-
maxEOF: 0 /* INFO: combine with `eol-last` to ensure file still ends with a single line-break (eol character) */,
|
|
140
|
-
},
|
|
141
|
-
],
|
|
142
|
-
"stylistic/no-tabs": State.WARN,
|
|
143
|
-
"stylistic/no-trailing-spaces": State.WARN,
|
|
144
|
-
"stylistic/no-whitespace-before-property": State.WARN,
|
|
145
|
-
"stylistic/nonblock-statement-body-position": [
|
|
146
|
-
State.WARN,
|
|
147
|
-
"below",
|
|
148
|
-
],
|
|
149
|
-
"stylistic/object-curly-newline": [
|
|
150
|
-
State.WARN,
|
|
151
|
-
{
|
|
152
|
-
consistent: true,
|
|
153
|
-
multiline: true,
|
|
154
|
-
minProperties: 3,
|
|
155
|
-
},
|
|
156
|
-
],
|
|
157
|
-
"stylistic/object-curly-spacing": [
|
|
158
|
-
State.WARN,
|
|
159
|
-
"always",
|
|
160
|
-
{
|
|
161
|
-
emptyObjects: "never",
|
|
162
|
-
},
|
|
163
|
-
],
|
|
164
|
-
"stylistic/object-property-newline": State.WARN,
|
|
165
|
-
"stylistic/one-var-declaration-per-line": [
|
|
166
|
-
State.WARN,
|
|
167
|
-
"always",
|
|
168
|
-
],
|
|
169
|
-
"stylistic/operator-linebreak": [
|
|
170
|
-
State.WARN,
|
|
171
|
-
"before",
|
|
172
|
-
],
|
|
173
|
-
"stylistic/padded-blocks": [
|
|
174
|
-
State.WARN,
|
|
175
|
-
"never",
|
|
176
|
-
{
|
|
177
|
-
allowSingleLineBlocks: true,
|
|
178
|
-
},
|
|
179
|
-
],
|
|
180
|
-
// "stylistic/padding-line-between-statements": State.OFF /* BUG: when in editor, always removes too many lines and ends up crushing two lines into one statement, which then cannot be autofixed */,
|
|
181
|
-
"stylistic/quote-props": [
|
|
182
|
-
State.WARN,
|
|
183
|
-
"as-needed",
|
|
184
|
-
{
|
|
185
|
-
keywords: true,
|
|
186
|
-
},
|
|
187
|
-
],
|
|
188
|
-
"stylistic/quotes": [
|
|
189
|
-
State.WARN,
|
|
190
|
-
"double",
|
|
191
|
-
{
|
|
192
|
-
avoidEscape: true,
|
|
193
|
-
allowTemplateLiterals: "always",
|
|
194
|
-
},
|
|
195
|
-
],
|
|
196
|
-
"stylistic/rest-spread-spacing": State.WARN,
|
|
197
|
-
"stylistic/semi": State.WARN,
|
|
198
|
-
"stylistic/semi-spacing": State.WARN,
|
|
199
|
-
"stylistic/semi-style": State.WARN,
|
|
200
|
-
"stylistic/space-before-blocks": State.WARN,
|
|
201
|
-
"stylistic/space-before-function-paren": [
|
|
202
|
-
State.WARN,
|
|
203
|
-
{
|
|
204
|
-
named: "never",
|
|
205
|
-
},
|
|
206
|
-
],
|
|
207
|
-
"stylistic/space-in-parens": State.WARN,
|
|
208
|
-
"stylistic/space-infix-ops": State.WARN,
|
|
209
|
-
"stylistic/space-unary-ops": State.WARN,
|
|
210
|
-
"stylistic/spaced-comment": [
|
|
211
|
-
State.WARN,
|
|
212
|
-
"always",
|
|
213
|
-
{
|
|
214
|
-
line: {
|
|
215
|
-
exceptions: [
|
|
216
|
-
"/",
|
|
217
|
-
"-",
|
|
218
|
-
"+",
|
|
219
|
-
"=",
|
|
220
|
-
],
|
|
221
|
-
markers: [
|
|
222
|
-
"!",
|
|
223
|
-
"@",
|
|
224
|
-
"#",
|
|
225
|
-
"/",
|
|
226
|
-
"#region",
|
|
227
|
-
"#endregion",
|
|
228
|
-
"#part",
|
|
229
|
-
"/#region",
|
|
230
|
-
"/#endregion",
|
|
231
|
-
"/#part",
|
|
232
|
-
],
|
|
233
|
-
},
|
|
234
|
-
block: {
|
|
235
|
-
exceptions: ["*"],
|
|
236
|
-
markers: ["*"],
|
|
237
|
-
balanced: true,
|
|
238
|
-
},
|
|
239
|
-
},
|
|
240
|
-
],
|
|
241
|
-
"stylistic/switch-colon-spacing": State.WARN,
|
|
242
|
-
"stylistic/template-curly-spacing": State.WARN,
|
|
243
|
-
"stylistic/template-tag-spacing": State.WARN,
|
|
244
|
-
"stylistic/type-annotation-spacing": [
|
|
245
|
-
State.WARN,
|
|
246
|
-
{
|
|
247
|
-
before: true,
|
|
248
|
-
after: true,
|
|
249
|
-
overrides: {
|
|
250
|
-
colon: {
|
|
251
|
-
before: false,
|
|
252
|
-
after: true,
|
|
253
|
-
},
|
|
254
|
-
},
|
|
255
|
-
} /* BUG: non-overriden rule affects all type annotations (arrows, "as" keyword, "satisfies" keyword) except colons */,
|
|
256
|
-
],
|
|
257
|
-
"stylistic/type-generic-spacing": State.WARN,
|
|
258
|
-
"stylistic/type-named-tuple-spacing": State.WARN,
|
|
259
|
-
"stylistic/wrap-iife": [
|
|
260
|
-
State.WARN,
|
|
261
|
-
"inside",
|
|
262
|
-
{
|
|
263
|
-
functionPrototypeMethods: true,
|
|
264
|
-
},
|
|
265
|
-
],
|
|
266
|
-
"stylistic/wrap-regex": State.WARN,
|
|
267
|
-
"stylistic/yield-star-spacing": State.WARN,
|
|
268
|
-
} as const,
|
|
269
|
-
};
|