@lntvow/eslint-config 9.29.0 → 9.29.1
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.cjs +1 -1
- package/dist/index.d.ts +205 -217
- package/dist/index.mjs +1 -1
- package/package.json +7 -7
package/dist/index.d.ts
CHANGED
|
@@ -2141,483 +2141,478 @@ interface RuleOptions {
|
|
|
2141
2141
|
'strict'?: Linter.RuleEntry<Strict>
|
|
2142
2142
|
/**
|
|
2143
2143
|
* Enforce linebreaks after opening and before closing array brackets
|
|
2144
|
-
* @see https://eslint.style/rules/
|
|
2144
|
+
* @see https://eslint.style/rules/array-bracket-newline
|
|
2145
2145
|
*/
|
|
2146
2146
|
'style/array-bracket-newline'?: Linter.RuleEntry<StyleArrayBracketNewline>
|
|
2147
2147
|
/**
|
|
2148
2148
|
* Enforce consistent spacing inside array brackets
|
|
2149
|
-
* @see https://eslint.style/rules/
|
|
2149
|
+
* @see https://eslint.style/rules/array-bracket-spacing
|
|
2150
2150
|
*/
|
|
2151
2151
|
'style/array-bracket-spacing'?: Linter.RuleEntry<StyleArrayBracketSpacing>
|
|
2152
2152
|
/**
|
|
2153
2153
|
* Enforce line breaks after each array element
|
|
2154
|
-
* @see https://eslint.style/rules/
|
|
2154
|
+
* @see https://eslint.style/rules/array-element-newline
|
|
2155
2155
|
*/
|
|
2156
2156
|
'style/array-element-newline'?: Linter.RuleEntry<StyleArrayElementNewline>
|
|
2157
2157
|
/**
|
|
2158
2158
|
* Require parentheses around arrow function arguments
|
|
2159
|
-
* @see https://eslint.style/rules/
|
|
2159
|
+
* @see https://eslint.style/rules/arrow-parens
|
|
2160
2160
|
*/
|
|
2161
2161
|
'style/arrow-parens'?: Linter.RuleEntry<StyleArrowParens>
|
|
2162
2162
|
/**
|
|
2163
2163
|
* Enforce consistent spacing before and after the arrow in arrow functions
|
|
2164
|
-
* @see https://eslint.style/rules/
|
|
2164
|
+
* @see https://eslint.style/rules/arrow-spacing
|
|
2165
2165
|
*/
|
|
2166
2166
|
'style/arrow-spacing'?: Linter.RuleEntry<StyleArrowSpacing>
|
|
2167
2167
|
/**
|
|
2168
2168
|
* Disallow or enforce spaces inside of blocks after opening block and before closing block
|
|
2169
|
-
* @see https://eslint.style/rules/
|
|
2169
|
+
* @see https://eslint.style/rules/block-spacing
|
|
2170
2170
|
*/
|
|
2171
2171
|
'style/block-spacing'?: Linter.RuleEntry<StyleBlockSpacing>
|
|
2172
2172
|
/**
|
|
2173
2173
|
* Enforce consistent brace style for blocks
|
|
2174
|
-
* @see https://eslint.style/rules/
|
|
2174
|
+
* @see https://eslint.style/rules/brace-style
|
|
2175
2175
|
*/
|
|
2176
2176
|
'style/brace-style'?: Linter.RuleEntry<StyleBraceStyle>
|
|
2177
2177
|
/**
|
|
2178
2178
|
* Require or disallow trailing commas
|
|
2179
|
-
* @see https://eslint.style/rules/
|
|
2179
|
+
* @see https://eslint.style/rules/comma-dangle
|
|
2180
2180
|
*/
|
|
2181
2181
|
'style/comma-dangle'?: Linter.RuleEntry<StyleCommaDangle>
|
|
2182
2182
|
/**
|
|
2183
2183
|
* Enforce consistent spacing before and after commas
|
|
2184
|
-
* @see https://eslint.style/rules/
|
|
2184
|
+
* @see https://eslint.style/rules/comma-spacing
|
|
2185
2185
|
*/
|
|
2186
2186
|
'style/comma-spacing'?: Linter.RuleEntry<StyleCommaSpacing>
|
|
2187
2187
|
/**
|
|
2188
2188
|
* Enforce consistent comma style
|
|
2189
|
-
* @see https://eslint.style/rules/
|
|
2189
|
+
* @see https://eslint.style/rules/comma-style
|
|
2190
2190
|
*/
|
|
2191
2191
|
'style/comma-style'?: Linter.RuleEntry<StyleCommaStyle>
|
|
2192
2192
|
/**
|
|
2193
2193
|
* Enforce consistent spacing inside computed property brackets
|
|
2194
|
-
* @see https://eslint.style/rules/
|
|
2194
|
+
* @see https://eslint.style/rules/computed-property-spacing
|
|
2195
2195
|
*/
|
|
2196
2196
|
'style/computed-property-spacing'?: Linter.RuleEntry<StyleComputedPropertySpacing>
|
|
2197
2197
|
/**
|
|
2198
2198
|
* Enforce consistent line breaks after opening and before closing braces
|
|
2199
|
-
* @see https://eslint.style/rules/
|
|
2199
|
+
* @see https://eslint.style/rules/curly-newline
|
|
2200
2200
|
*/
|
|
2201
2201
|
'style/curly-newline'?: Linter.RuleEntry<StyleCurlyNewline>
|
|
2202
2202
|
/**
|
|
2203
2203
|
* Enforce consistent newlines before and after dots
|
|
2204
|
-
* @see https://eslint.style/rules/
|
|
2204
|
+
* @see https://eslint.style/rules/dot-location
|
|
2205
2205
|
*/
|
|
2206
2206
|
'style/dot-location'?: Linter.RuleEntry<StyleDotLocation>
|
|
2207
2207
|
/**
|
|
2208
2208
|
* Require or disallow newline at the end of files
|
|
2209
|
-
* @see https://eslint.style/rules/
|
|
2209
|
+
* @see https://eslint.style/rules/eol-last
|
|
2210
2210
|
*/
|
|
2211
2211
|
'style/eol-last'?: Linter.RuleEntry<StyleEolLast>
|
|
2212
|
-
/**
|
|
2213
|
-
* Require or disallow spacing between function identifiers and their invocations
|
|
2214
|
-
* @see https://eslint.style/rules/ts/function-call-spacing
|
|
2215
|
-
*/
|
|
2216
|
-
'style/func-call-spacing'?: Linter.RuleEntry<StyleFuncCallSpacing>
|
|
2217
2212
|
/**
|
|
2218
2213
|
* Enforce line breaks between arguments of a function call
|
|
2219
|
-
* @see https://eslint.style/rules/
|
|
2214
|
+
* @see https://eslint.style/rules/function-call-argument-newline
|
|
2220
2215
|
*/
|
|
2221
2216
|
'style/function-call-argument-newline'?: Linter.RuleEntry<StyleFunctionCallArgumentNewline>
|
|
2222
2217
|
/**
|
|
2223
2218
|
* Require or disallow spacing between function identifiers and their invocations
|
|
2224
|
-
* @see https://eslint.style/rules/
|
|
2219
|
+
* @see https://eslint.style/rules/function-call-spacing
|
|
2225
2220
|
*/
|
|
2226
2221
|
'style/function-call-spacing'?: Linter.RuleEntry<StyleFunctionCallSpacing>
|
|
2227
2222
|
/**
|
|
2228
2223
|
* Enforce consistent line breaks inside function parentheses
|
|
2229
|
-
* @see https://eslint.style/rules/
|
|
2224
|
+
* @see https://eslint.style/rules/function-paren-newline
|
|
2230
2225
|
*/
|
|
2231
2226
|
'style/function-paren-newline'?: Linter.RuleEntry<StyleFunctionParenNewline>
|
|
2232
2227
|
/**
|
|
2233
2228
|
* Enforce consistent spacing around `*` operators in generator functions
|
|
2234
|
-
* @see https://eslint.style/rules/
|
|
2229
|
+
* @see https://eslint.style/rules/generator-star-spacing
|
|
2235
2230
|
*/
|
|
2236
2231
|
'style/generator-star-spacing'?: Linter.RuleEntry<StyleGeneratorStarSpacing>
|
|
2237
2232
|
/**
|
|
2238
2233
|
* Enforce the location of arrow function bodies
|
|
2239
|
-
* @see https://eslint.style/rules/
|
|
2234
|
+
* @see https://eslint.style/rules/implicit-arrow-linebreak
|
|
2240
2235
|
*/
|
|
2241
2236
|
'style/implicit-arrow-linebreak'?: Linter.RuleEntry<StyleImplicitArrowLinebreak>
|
|
2242
2237
|
/**
|
|
2243
2238
|
* Enforce consistent indentation
|
|
2244
|
-
* @see https://eslint.style/rules/
|
|
2239
|
+
* @see https://eslint.style/rules/indent
|
|
2245
2240
|
*/
|
|
2246
2241
|
'style/indent'?: Linter.RuleEntry<StyleIndent>
|
|
2247
2242
|
/**
|
|
2248
2243
|
* Indentation for binary operators
|
|
2249
|
-
* @see https://eslint.style/rules/
|
|
2244
|
+
* @see https://eslint.style/rules/indent-binary-ops
|
|
2250
2245
|
*/
|
|
2251
2246
|
'style/indent-binary-ops'?: Linter.RuleEntry<StyleIndentBinaryOps>
|
|
2252
2247
|
/**
|
|
2253
2248
|
* Enforce or disallow spaces inside of curly braces in JSX attributes and expressions
|
|
2254
|
-
* @see https://eslint.style/rules/jsx
|
|
2249
|
+
* @see https://eslint.style/rules/jsx-child-element-spacing
|
|
2255
2250
|
*/
|
|
2256
2251
|
'style/jsx-child-element-spacing'?: Linter.RuleEntry<[]>
|
|
2257
2252
|
/**
|
|
2258
2253
|
* Enforce closing bracket location in JSX
|
|
2259
|
-
* @see https://eslint.style/rules/jsx
|
|
2254
|
+
* @see https://eslint.style/rules/jsx-closing-bracket-location
|
|
2260
2255
|
*/
|
|
2261
2256
|
'style/jsx-closing-bracket-location'?: Linter.RuleEntry<StyleJsxClosingBracketLocation>
|
|
2262
2257
|
/**
|
|
2263
2258
|
* Enforce closing tag location for multiline JSX
|
|
2264
|
-
* @see https://eslint.style/rules/jsx
|
|
2259
|
+
* @see https://eslint.style/rules/jsx-closing-tag-location
|
|
2265
2260
|
*/
|
|
2266
2261
|
'style/jsx-closing-tag-location'?: Linter.RuleEntry<StyleJsxClosingTagLocation>
|
|
2267
2262
|
/**
|
|
2268
2263
|
* Disallow unnecessary JSX expressions when literals alone are sufficient or enforce JSX expressions on literals in JSX children or attributes
|
|
2269
|
-
* @see https://eslint.style/rules/jsx
|
|
2264
|
+
* @see https://eslint.style/rules/jsx-curly-brace-presence
|
|
2270
2265
|
*/
|
|
2271
2266
|
'style/jsx-curly-brace-presence'?: Linter.RuleEntry<StyleJsxCurlyBracePresence>
|
|
2272
2267
|
/**
|
|
2273
2268
|
* Enforce consistent linebreaks in curly braces in JSX attributes and expressions
|
|
2274
|
-
* @see https://eslint.style/rules/jsx
|
|
2269
|
+
* @see https://eslint.style/rules/jsx-curly-newline
|
|
2275
2270
|
*/
|
|
2276
2271
|
'style/jsx-curly-newline'?: Linter.RuleEntry<StyleJsxCurlyNewline>
|
|
2277
2272
|
/**
|
|
2278
2273
|
* Enforce or disallow spaces inside of curly braces in JSX attributes and expressions
|
|
2279
|
-
* @see https://eslint.style/rules/jsx
|
|
2274
|
+
* @see https://eslint.style/rules/jsx-curly-spacing
|
|
2280
2275
|
*/
|
|
2281
2276
|
'style/jsx-curly-spacing'?: Linter.RuleEntry<StyleJsxCurlySpacing>
|
|
2282
2277
|
/**
|
|
2283
2278
|
* Enforce or disallow spaces around equal signs in JSX attributes
|
|
2284
|
-
* @see https://eslint.style/rules/jsx
|
|
2279
|
+
* @see https://eslint.style/rules/jsx-equals-spacing
|
|
2285
2280
|
*/
|
|
2286
2281
|
'style/jsx-equals-spacing'?: Linter.RuleEntry<StyleJsxEqualsSpacing>
|
|
2287
2282
|
/**
|
|
2288
2283
|
* Enforce proper position of the first property in JSX
|
|
2289
|
-
* @see https://eslint.style/rules/jsx
|
|
2284
|
+
* @see https://eslint.style/rules/jsx-first-prop-new-line
|
|
2290
2285
|
*/
|
|
2291
2286
|
'style/jsx-first-prop-new-line'?: Linter.RuleEntry<StyleJsxFirstPropNewLine>
|
|
2292
2287
|
/**
|
|
2293
2288
|
* Enforce line breaks before and after JSX elements when they are used as arguments to a function.
|
|
2294
|
-
* @see https://eslint.style/rules/jsx
|
|
2289
|
+
* @see https://eslint.style/rules/jsx-function-call-newline
|
|
2295
2290
|
*/
|
|
2296
2291
|
'style/jsx-function-call-newline'?: Linter.RuleEntry<StyleJsxFunctionCallNewline>
|
|
2297
2292
|
/**
|
|
2298
2293
|
* Enforce JSX indentation. Deprecated, use `indent` rule instead.
|
|
2299
|
-
* @see https://eslint.style/rules/jsx
|
|
2294
|
+
* @see https://eslint.style/rules/jsx-indent
|
|
2300
2295
|
* @deprecated
|
|
2301
2296
|
*/
|
|
2302
2297
|
'style/jsx-indent'?: Linter.RuleEntry<StyleJsxIndent>
|
|
2303
2298
|
/**
|
|
2304
2299
|
* Enforce props indentation in JSX
|
|
2305
|
-
* @see https://eslint.style/rules/jsx
|
|
2300
|
+
* @see https://eslint.style/rules/jsx-indent-props
|
|
2306
2301
|
*/
|
|
2307
2302
|
'style/jsx-indent-props'?: Linter.RuleEntry<StyleJsxIndentProps>
|
|
2308
2303
|
/**
|
|
2309
2304
|
* Enforce maximum of props on a single line in JSX
|
|
2310
|
-
* @see https://eslint.style/rules/jsx
|
|
2305
|
+
* @see https://eslint.style/rules/jsx-max-props-per-line
|
|
2311
2306
|
*/
|
|
2312
2307
|
'style/jsx-max-props-per-line'?: Linter.RuleEntry<StyleJsxMaxPropsPerLine>
|
|
2313
2308
|
/**
|
|
2314
2309
|
* Require or prevent a new line after jsx elements and expressions.
|
|
2315
|
-
* @see https://eslint.style/rules/jsx
|
|
2310
|
+
* @see https://eslint.style/rules/jsx-newline
|
|
2316
2311
|
*/
|
|
2317
2312
|
'style/jsx-newline'?: Linter.RuleEntry<StyleJsxNewline>
|
|
2318
2313
|
/**
|
|
2319
2314
|
* Require one JSX element per line
|
|
2320
|
-
* @see https://eslint.style/rules/jsx
|
|
2315
|
+
* @see https://eslint.style/rules/jsx-one-expression-per-line
|
|
2321
2316
|
*/
|
|
2322
2317
|
'style/jsx-one-expression-per-line'?: Linter.RuleEntry<StyleJsxOneExpressionPerLine>
|
|
2323
2318
|
/**
|
|
2324
2319
|
* Enforce PascalCase for user-defined JSX components
|
|
2325
|
-
* @see https://eslint.style/rules/jsx
|
|
2320
|
+
* @see https://eslint.style/rules/jsx-pascal-case
|
|
2326
2321
|
*/
|
|
2327
2322
|
'style/jsx-pascal-case'?: Linter.RuleEntry<StyleJsxPascalCase>
|
|
2328
2323
|
/**
|
|
2329
2324
|
* Disallow multiple spaces between inline JSX props
|
|
2330
|
-
* @see https://eslint.style/rules/jsx
|
|
2325
|
+
* @see https://eslint.style/rules/jsx-props-no-multi-spaces
|
|
2331
2326
|
*/
|
|
2332
2327
|
'style/jsx-props-no-multi-spaces'?: Linter.RuleEntry<[]>
|
|
2333
2328
|
/**
|
|
2334
2329
|
* Enforce the consistent use of either double or single quotes in JSX attributes
|
|
2335
|
-
* @see https://eslint.style/rules/
|
|
2330
|
+
* @see https://eslint.style/rules/jsx-quotes
|
|
2336
2331
|
*/
|
|
2337
2332
|
'style/jsx-quotes'?: Linter.RuleEntry<StyleJsxQuotes>
|
|
2338
2333
|
/**
|
|
2339
2334
|
* Disallow extra closing tags for components without children
|
|
2340
|
-
* @see https://eslint.style/rules/jsx
|
|
2335
|
+
* @see https://eslint.style/rules/jsx-self-closing-comp
|
|
2341
2336
|
*/
|
|
2342
2337
|
'style/jsx-self-closing-comp'?: Linter.RuleEntry<StyleJsxSelfClosingComp>
|
|
2343
2338
|
/**
|
|
2344
2339
|
* Enforce props alphabetical sorting
|
|
2345
|
-
* @see https://eslint.style/rules/jsx
|
|
2340
|
+
* @see https://eslint.style/rules/jsx-sort-props
|
|
2346
2341
|
*/
|
|
2347
2342
|
'style/jsx-sort-props'?: Linter.RuleEntry<StyleJsxSortProps>
|
|
2348
2343
|
/**
|
|
2349
2344
|
* Enforce whitespace in and around the JSX opening and closing brackets
|
|
2350
|
-
* @see https://eslint.style/rules/jsx
|
|
2345
|
+
* @see https://eslint.style/rules/jsx-tag-spacing
|
|
2351
2346
|
*/
|
|
2352
2347
|
'style/jsx-tag-spacing'?: Linter.RuleEntry<StyleJsxTagSpacing>
|
|
2353
2348
|
/**
|
|
2354
2349
|
* Disallow missing parentheses around multiline JSX
|
|
2355
|
-
* @see https://eslint.style/rules/jsx
|
|
2350
|
+
* @see https://eslint.style/rules/jsx-wrap-multilines
|
|
2356
2351
|
*/
|
|
2357
2352
|
'style/jsx-wrap-multilines'?: Linter.RuleEntry<StyleJsxWrapMultilines>
|
|
2358
2353
|
/**
|
|
2359
2354
|
* Enforce consistent spacing between property names and type annotations in types and interfaces
|
|
2360
|
-
* @see https://eslint.style/rules/
|
|
2355
|
+
* @see https://eslint.style/rules/key-spacing
|
|
2361
2356
|
*/
|
|
2362
2357
|
'style/key-spacing'?: Linter.RuleEntry<StyleKeySpacing>
|
|
2363
2358
|
/**
|
|
2364
2359
|
* Enforce consistent spacing before and after keywords
|
|
2365
|
-
* @see https://eslint.style/rules/
|
|
2360
|
+
* @see https://eslint.style/rules/keyword-spacing
|
|
2366
2361
|
*/
|
|
2367
2362
|
'style/keyword-spacing'?: Linter.RuleEntry<StyleKeywordSpacing>
|
|
2368
2363
|
/**
|
|
2369
2364
|
* Enforce position of line comments
|
|
2370
|
-
* @see https://eslint.style/rules/
|
|
2365
|
+
* @see https://eslint.style/rules/line-comment-position
|
|
2371
2366
|
*/
|
|
2372
2367
|
'style/line-comment-position'?: Linter.RuleEntry<StyleLineCommentPosition>
|
|
2373
2368
|
/**
|
|
2374
2369
|
* Enforce consistent linebreak style
|
|
2375
|
-
* @see https://eslint.style/rules/
|
|
2370
|
+
* @see https://eslint.style/rules/linebreak-style
|
|
2376
2371
|
*/
|
|
2377
2372
|
'style/linebreak-style'?: Linter.RuleEntry<StyleLinebreakStyle>
|
|
2378
2373
|
/**
|
|
2379
2374
|
* Require empty lines around comments
|
|
2380
|
-
* @see https://eslint.style/rules/
|
|
2375
|
+
* @see https://eslint.style/rules/lines-around-comment
|
|
2381
2376
|
*/
|
|
2382
2377
|
'style/lines-around-comment'?: Linter.RuleEntry<StyleLinesAroundComment>
|
|
2383
2378
|
/**
|
|
2384
2379
|
* Require or disallow an empty line between class members
|
|
2385
|
-
* @see https://eslint.style/rules/
|
|
2380
|
+
* @see https://eslint.style/rules/lines-between-class-members
|
|
2386
2381
|
*/
|
|
2387
2382
|
'style/lines-between-class-members'?: Linter.RuleEntry<StyleLinesBetweenClassMembers>
|
|
2388
2383
|
/**
|
|
2389
2384
|
* Enforce a maximum line length
|
|
2390
|
-
* @see https://eslint.style/rules/
|
|
2385
|
+
* @see https://eslint.style/rules/max-len
|
|
2391
2386
|
*/
|
|
2392
2387
|
'style/max-len'?: Linter.RuleEntry<StyleMaxLen>
|
|
2393
2388
|
/**
|
|
2394
2389
|
* Enforce a maximum number of statements allowed per line
|
|
2395
|
-
* @see https://eslint.style/rules/
|
|
2390
|
+
* @see https://eslint.style/rules/max-statements-per-line
|
|
2396
2391
|
*/
|
|
2397
2392
|
'style/max-statements-per-line'?: Linter.RuleEntry<StyleMaxStatementsPerLine>
|
|
2398
2393
|
/**
|
|
2399
2394
|
* Require a specific member delimiter style for interfaces and type literals
|
|
2400
|
-
* @see https://eslint.style/rules/
|
|
2395
|
+
* @see https://eslint.style/rules/member-delimiter-style
|
|
2401
2396
|
*/
|
|
2402
2397
|
'style/member-delimiter-style'?: Linter.RuleEntry<StyleMemberDelimiterStyle>
|
|
2403
2398
|
/**
|
|
2404
2399
|
* Enforce a particular style for multiline comments
|
|
2405
|
-
* @see https://eslint.style/rules/
|
|
2400
|
+
* @see https://eslint.style/rules/multiline-comment-style
|
|
2406
2401
|
*/
|
|
2407
2402
|
'style/multiline-comment-style'?: Linter.RuleEntry<StyleMultilineCommentStyle>
|
|
2408
2403
|
/**
|
|
2409
2404
|
* Enforce newlines between operands of ternary expressions
|
|
2410
|
-
* @see https://eslint.style/rules/
|
|
2405
|
+
* @see https://eslint.style/rules/multiline-ternary
|
|
2411
2406
|
*/
|
|
2412
2407
|
'style/multiline-ternary'?: Linter.RuleEntry<StyleMultilineTernary>
|
|
2413
2408
|
/**
|
|
2414
2409
|
* Enforce or disallow parentheses when invoking a constructor with no arguments
|
|
2415
|
-
* @see https://eslint.style/rules/
|
|
2410
|
+
* @see https://eslint.style/rules/new-parens
|
|
2416
2411
|
*/
|
|
2417
2412
|
'style/new-parens'?: Linter.RuleEntry<StyleNewParens>
|
|
2418
2413
|
/**
|
|
2419
2414
|
* Require a newline after each call in a method chain
|
|
2420
|
-
* @see https://eslint.style/rules/
|
|
2415
|
+
* @see https://eslint.style/rules/newline-per-chained-call
|
|
2421
2416
|
*/
|
|
2422
2417
|
'style/newline-per-chained-call'?: Linter.RuleEntry<StyleNewlinePerChainedCall>
|
|
2423
2418
|
/**
|
|
2424
2419
|
* Disallow arrow functions where they could be confused with comparisons
|
|
2425
|
-
* @see https://eslint.style/rules/
|
|
2420
|
+
* @see https://eslint.style/rules/no-confusing-arrow
|
|
2426
2421
|
*/
|
|
2427
2422
|
'style/no-confusing-arrow'?: Linter.RuleEntry<StyleNoConfusingArrow>
|
|
2428
2423
|
/**
|
|
2429
2424
|
* Disallow unnecessary parentheses
|
|
2430
|
-
* @see https://eslint.style/rules/
|
|
2425
|
+
* @see https://eslint.style/rules/no-extra-parens
|
|
2431
2426
|
*/
|
|
2432
2427
|
'style/no-extra-parens'?: Linter.RuleEntry<StyleNoExtraParens>
|
|
2433
2428
|
/**
|
|
2434
2429
|
* Disallow unnecessary semicolons
|
|
2435
|
-
* @see https://eslint.style/rules/
|
|
2430
|
+
* @see https://eslint.style/rules/no-extra-semi
|
|
2436
2431
|
*/
|
|
2437
2432
|
'style/no-extra-semi'?: Linter.RuleEntry<[]>
|
|
2438
2433
|
/**
|
|
2439
2434
|
* Disallow leading or trailing decimal points in numeric literals
|
|
2440
|
-
* @see https://eslint.style/rules/
|
|
2435
|
+
* @see https://eslint.style/rules/no-floating-decimal
|
|
2441
2436
|
*/
|
|
2442
2437
|
'style/no-floating-decimal'?: Linter.RuleEntry<[]>
|
|
2443
2438
|
/**
|
|
2444
2439
|
* Disallow mixed binary operators
|
|
2445
|
-
* @see https://eslint.style/rules/
|
|
2440
|
+
* @see https://eslint.style/rules/no-mixed-operators
|
|
2446
2441
|
*/
|
|
2447
2442
|
'style/no-mixed-operators'?: Linter.RuleEntry<StyleNoMixedOperators>
|
|
2448
2443
|
/**
|
|
2449
2444
|
* Disallow mixed spaces and tabs for indentation
|
|
2450
|
-
* @see https://eslint.style/rules/
|
|
2445
|
+
* @see https://eslint.style/rules/no-mixed-spaces-and-tabs
|
|
2451
2446
|
*/
|
|
2452
2447
|
'style/no-mixed-spaces-and-tabs'?: Linter.RuleEntry<StyleNoMixedSpacesAndTabs>
|
|
2453
2448
|
/**
|
|
2454
2449
|
* Disallow multiple spaces
|
|
2455
|
-
* @see https://eslint.style/rules/
|
|
2450
|
+
* @see https://eslint.style/rules/no-multi-spaces
|
|
2456
2451
|
*/
|
|
2457
2452
|
'style/no-multi-spaces'?: Linter.RuleEntry<StyleNoMultiSpaces>
|
|
2458
2453
|
/**
|
|
2459
2454
|
* Disallow multiple empty lines
|
|
2460
|
-
* @see https://eslint.style/rules/
|
|
2455
|
+
* @see https://eslint.style/rules/no-multiple-empty-lines
|
|
2461
2456
|
*/
|
|
2462
2457
|
'style/no-multiple-empty-lines'?: Linter.RuleEntry<StyleNoMultipleEmptyLines>
|
|
2463
2458
|
/**
|
|
2464
2459
|
* Disallow all tabs
|
|
2465
|
-
* @see https://eslint.style/rules/
|
|
2460
|
+
* @see https://eslint.style/rules/no-tabs
|
|
2466
2461
|
*/
|
|
2467
2462
|
'style/no-tabs'?: Linter.RuleEntry<StyleNoTabs>
|
|
2468
2463
|
/**
|
|
2469
2464
|
* Disallow trailing whitespace at the end of lines
|
|
2470
|
-
* @see https://eslint.style/rules/
|
|
2465
|
+
* @see https://eslint.style/rules/no-trailing-spaces
|
|
2471
2466
|
*/
|
|
2472
2467
|
'style/no-trailing-spaces'?: Linter.RuleEntry<StyleNoTrailingSpaces>
|
|
2473
2468
|
/**
|
|
2474
2469
|
* Disallow whitespace before properties
|
|
2475
|
-
* @see https://eslint.style/rules/
|
|
2470
|
+
* @see https://eslint.style/rules/no-whitespace-before-property
|
|
2476
2471
|
*/
|
|
2477
2472
|
'style/no-whitespace-before-property'?: Linter.RuleEntry<[]>
|
|
2478
2473
|
/**
|
|
2479
2474
|
* Enforce the location of single-line statements
|
|
2480
|
-
* @see https://eslint.style/rules/
|
|
2475
|
+
* @see https://eslint.style/rules/nonblock-statement-body-position
|
|
2481
2476
|
*/
|
|
2482
2477
|
'style/nonblock-statement-body-position'?: Linter.RuleEntry<StyleNonblockStatementBodyPosition>
|
|
2483
2478
|
/**
|
|
2484
2479
|
* Enforce consistent line breaks after opening and before closing braces
|
|
2485
|
-
* @see https://eslint.style/rules/
|
|
2480
|
+
* @see https://eslint.style/rules/object-curly-newline
|
|
2486
2481
|
*/
|
|
2487
2482
|
'style/object-curly-newline'?: Linter.RuleEntry<StyleObjectCurlyNewline>
|
|
2488
2483
|
/**
|
|
2489
2484
|
* Enforce consistent spacing inside braces
|
|
2490
|
-
* @see https://eslint.style/rules/
|
|
2485
|
+
* @see https://eslint.style/rules/object-curly-spacing
|
|
2491
2486
|
*/
|
|
2492
2487
|
'style/object-curly-spacing'?: Linter.RuleEntry<StyleObjectCurlySpacing>
|
|
2493
2488
|
/**
|
|
2494
2489
|
* Enforce placing object properties on separate lines
|
|
2495
|
-
* @see https://eslint.style/rules/
|
|
2490
|
+
* @see https://eslint.style/rules/object-property-newline
|
|
2496
2491
|
*/
|
|
2497
2492
|
'style/object-property-newline'?: Linter.RuleEntry<StyleObjectPropertyNewline>
|
|
2498
2493
|
/**
|
|
2499
2494
|
* Require or disallow newlines around variable declarations
|
|
2500
|
-
* @see https://eslint.style/rules/
|
|
2495
|
+
* @see https://eslint.style/rules/one-var-declaration-per-line
|
|
2501
2496
|
*/
|
|
2502
2497
|
'style/one-var-declaration-per-line'?: Linter.RuleEntry<StyleOneVarDeclarationPerLine>
|
|
2503
2498
|
/**
|
|
2504
2499
|
* Enforce consistent linebreak style for operators
|
|
2505
|
-
* @see https://eslint.style/rules/
|
|
2500
|
+
* @see https://eslint.style/rules/operator-linebreak
|
|
2506
2501
|
*/
|
|
2507
2502
|
'style/operator-linebreak'?: Linter.RuleEntry<StyleOperatorLinebreak>
|
|
2508
2503
|
/**
|
|
2509
2504
|
* Require or disallow padding within blocks
|
|
2510
|
-
* @see https://eslint.style/rules/
|
|
2505
|
+
* @see https://eslint.style/rules/padded-blocks
|
|
2511
2506
|
*/
|
|
2512
2507
|
'style/padded-blocks'?: Linter.RuleEntry<StylePaddedBlocks>
|
|
2513
2508
|
/**
|
|
2514
2509
|
* Require or disallow padding lines between statements
|
|
2515
|
-
* @see https://eslint.style/rules/
|
|
2510
|
+
* @see https://eslint.style/rules/padding-line-between-statements
|
|
2516
2511
|
*/
|
|
2517
2512
|
'style/padding-line-between-statements'?: Linter.RuleEntry<StylePaddingLineBetweenStatements>
|
|
2518
2513
|
/**
|
|
2519
2514
|
* Require quotes around object literal, type literal, interfaces and enums property names
|
|
2520
|
-
* @see https://eslint.style/rules/
|
|
2515
|
+
* @see https://eslint.style/rules/quote-props
|
|
2521
2516
|
*/
|
|
2522
2517
|
'style/quote-props'?: Linter.RuleEntry<StyleQuoteProps>
|
|
2523
2518
|
/**
|
|
2524
2519
|
* Enforce the consistent use of either backticks, double, or single quotes
|
|
2525
|
-
* @see https://eslint.style/rules/
|
|
2520
|
+
* @see https://eslint.style/rules/quotes
|
|
2526
2521
|
*/
|
|
2527
2522
|
'style/quotes'?: Linter.RuleEntry<StyleQuotes>
|
|
2528
2523
|
/**
|
|
2529
2524
|
* Enforce spacing between rest and spread operators and their expressions
|
|
2530
|
-
* @see https://eslint.style/rules/
|
|
2525
|
+
* @see https://eslint.style/rules/rest-spread-spacing
|
|
2531
2526
|
*/
|
|
2532
2527
|
'style/rest-spread-spacing'?: Linter.RuleEntry<StyleRestSpreadSpacing>
|
|
2533
2528
|
/**
|
|
2534
2529
|
* Require or disallow semicolons instead of ASI
|
|
2535
|
-
* @see https://eslint.style/rules/
|
|
2530
|
+
* @see https://eslint.style/rules/semi
|
|
2536
2531
|
*/
|
|
2537
2532
|
'style/semi'?: Linter.RuleEntry<StyleSemi>
|
|
2538
2533
|
/**
|
|
2539
2534
|
* Enforce consistent spacing before and after semicolons
|
|
2540
|
-
* @see https://eslint.style/rules/
|
|
2535
|
+
* @see https://eslint.style/rules/semi-spacing
|
|
2541
2536
|
*/
|
|
2542
2537
|
'style/semi-spacing'?: Linter.RuleEntry<StyleSemiSpacing>
|
|
2543
2538
|
/**
|
|
2544
2539
|
* Enforce location of semicolons
|
|
2545
|
-
* @see https://eslint.style/rules/
|
|
2540
|
+
* @see https://eslint.style/rules/semi-style
|
|
2546
2541
|
*/
|
|
2547
2542
|
'style/semi-style'?: Linter.RuleEntry<StyleSemiStyle>
|
|
2548
2543
|
/**
|
|
2549
2544
|
* Enforce consistent spacing before blocks
|
|
2550
|
-
* @see https://eslint.style/rules/
|
|
2545
|
+
* @see https://eslint.style/rules/space-before-blocks
|
|
2551
2546
|
*/
|
|
2552
2547
|
'style/space-before-blocks'?: Linter.RuleEntry<StyleSpaceBeforeBlocks>
|
|
2553
2548
|
/**
|
|
2554
2549
|
* Enforce consistent spacing before function parenthesis
|
|
2555
|
-
* @see https://eslint.style/rules/
|
|
2550
|
+
* @see https://eslint.style/rules/space-before-function-paren
|
|
2556
2551
|
*/
|
|
2557
2552
|
'style/space-before-function-paren'?: Linter.RuleEntry<StyleSpaceBeforeFunctionParen>
|
|
2558
2553
|
/**
|
|
2559
2554
|
* Enforce consistent spacing inside parentheses
|
|
2560
|
-
* @see https://eslint.style/rules/
|
|
2555
|
+
* @see https://eslint.style/rules/space-in-parens
|
|
2561
2556
|
*/
|
|
2562
2557
|
'style/space-in-parens'?: Linter.RuleEntry<StyleSpaceInParens>
|
|
2563
2558
|
/**
|
|
2564
2559
|
* Require spacing around infix operators
|
|
2565
|
-
* @see https://eslint.style/rules/
|
|
2560
|
+
* @see https://eslint.style/rules/space-infix-ops
|
|
2566
2561
|
*/
|
|
2567
2562
|
'style/space-infix-ops'?: Linter.RuleEntry<StyleSpaceInfixOps>
|
|
2568
2563
|
/**
|
|
2569
2564
|
* Enforce consistent spacing before or after unary operators
|
|
2570
|
-
* @see https://eslint.style/rules/
|
|
2565
|
+
* @see https://eslint.style/rules/space-unary-ops
|
|
2571
2566
|
*/
|
|
2572
2567
|
'style/space-unary-ops'?: Linter.RuleEntry<StyleSpaceUnaryOps>
|
|
2573
2568
|
/**
|
|
2574
2569
|
* Enforce consistent spacing after the `//` or `/*` in a comment
|
|
2575
|
-
* @see https://eslint.style/rules/
|
|
2570
|
+
* @see https://eslint.style/rules/spaced-comment
|
|
2576
2571
|
*/
|
|
2577
2572
|
'style/spaced-comment'?: Linter.RuleEntry<StyleSpacedComment>
|
|
2578
2573
|
/**
|
|
2579
2574
|
* Enforce spacing around colons of switch statements
|
|
2580
|
-
* @see https://eslint.style/rules/
|
|
2575
|
+
* @see https://eslint.style/rules/switch-colon-spacing
|
|
2581
2576
|
*/
|
|
2582
2577
|
'style/switch-colon-spacing'?: Linter.RuleEntry<StyleSwitchColonSpacing>
|
|
2583
2578
|
/**
|
|
2584
2579
|
* Require or disallow spacing around embedded expressions of template strings
|
|
2585
|
-
* @see https://eslint.style/rules/
|
|
2580
|
+
* @see https://eslint.style/rules/template-curly-spacing
|
|
2586
2581
|
*/
|
|
2587
2582
|
'style/template-curly-spacing'?: Linter.RuleEntry<StyleTemplateCurlySpacing>
|
|
2588
2583
|
/**
|
|
2589
2584
|
* Require or disallow spacing between template tags and their literals
|
|
2590
|
-
* @see https://eslint.style/rules/
|
|
2585
|
+
* @see https://eslint.style/rules/template-tag-spacing
|
|
2591
2586
|
*/
|
|
2592
2587
|
'style/template-tag-spacing'?: Linter.RuleEntry<StyleTemplateTagSpacing>
|
|
2593
2588
|
/**
|
|
2594
2589
|
* Require consistent spacing around type annotations
|
|
2595
|
-
* @see https://eslint.style/rules/
|
|
2590
|
+
* @see https://eslint.style/rules/type-annotation-spacing
|
|
2596
2591
|
*/
|
|
2597
2592
|
'style/type-annotation-spacing'?: Linter.RuleEntry<StyleTypeAnnotationSpacing>
|
|
2598
2593
|
/**
|
|
2599
2594
|
* Enforces consistent spacing inside TypeScript type generics
|
|
2600
|
-
* @see https://eslint.style/rules/
|
|
2595
|
+
* @see https://eslint.style/rules/type-generic-spacing
|
|
2601
2596
|
*/
|
|
2602
2597
|
'style/type-generic-spacing'?: Linter.RuleEntry<[]>
|
|
2603
2598
|
/**
|
|
2604
2599
|
* Expect space before the type declaration in the named tuple
|
|
2605
|
-
* @see https://eslint.style/rules/
|
|
2600
|
+
* @see https://eslint.style/rules/type-named-tuple-spacing
|
|
2606
2601
|
*/
|
|
2607
2602
|
'style/type-named-tuple-spacing'?: Linter.RuleEntry<[]>
|
|
2608
2603
|
/**
|
|
2609
2604
|
* Require parentheses around immediate `function` invocations
|
|
2610
|
-
* @see https://eslint.style/rules/
|
|
2605
|
+
* @see https://eslint.style/rules/wrap-iife
|
|
2611
2606
|
*/
|
|
2612
2607
|
'style/wrap-iife'?: Linter.RuleEntry<StyleWrapIife>
|
|
2613
2608
|
/**
|
|
2614
2609
|
* Require parenthesis around regex literals
|
|
2615
|
-
* @see https://eslint.style/rules/
|
|
2610
|
+
* @see https://eslint.style/rules/wrap-regex
|
|
2616
2611
|
*/
|
|
2617
2612
|
'style/wrap-regex'?: Linter.RuleEntry<[]>
|
|
2618
2613
|
/**
|
|
2619
2614
|
* Require or disallow spacing around the `*` in `yield*` expressions
|
|
2620
|
-
* @see https://eslint.style/rules/
|
|
2615
|
+
* @see https://eslint.style/rules/yield-star-spacing
|
|
2621
2616
|
*/
|
|
2622
2617
|
'style/yield-star-spacing'?: Linter.RuleEntry<StyleYieldStarSpacing>
|
|
2623
2618
|
/**
|
|
@@ -3792,7 +3787,7 @@ interface RuleOptions {
|
|
|
3792
3787
|
*/
|
|
3793
3788
|
'vue/jsx-uses-vars'?: Linter.RuleEntry<[]>
|
|
3794
3789
|
/**
|
|
3795
|
-
* Enforce consistent spacing between
|
|
3790
|
+
* Enforce consistent spacing between keys and values in object literal properties in `<template>`
|
|
3796
3791
|
* @see https://eslint.vuejs.org/rules/key-spacing.html
|
|
3797
3792
|
*/
|
|
3798
3793
|
'vue/key-spacing'?: Linter.RuleEntry<VueKeySpacing>
|
|
@@ -4490,7 +4485,7 @@ interface RuleOptions {
|
|
|
4490
4485
|
*/
|
|
4491
4486
|
'vue/prop-name-casing'?: Linter.RuleEntry<VuePropNameCasing>
|
|
4492
4487
|
/**
|
|
4493
|
-
* Require quotes around object literal
|
|
4488
|
+
* Require quotes around object literal property names in `<template>`
|
|
4494
4489
|
* @see https://eslint.vuejs.org/rules/quote-props.html
|
|
4495
4490
|
*/
|
|
4496
4491
|
'vue/quote-props'?: Linter.RuleEntry<VueQuoteProps>
|
|
@@ -6838,16 +6833,6 @@ type StyleCurlyNewline = []|[(("always" | "never") | {
|
|
|
6838
6833
|
minElements?: number
|
|
6839
6834
|
consistent?: boolean
|
|
6840
6835
|
})
|
|
6841
|
-
TSEnumBody?: (("always" | "never") | {
|
|
6842
|
-
multiline?: boolean
|
|
6843
|
-
minElements?: number
|
|
6844
|
-
consistent?: boolean
|
|
6845
|
-
})
|
|
6846
|
-
TSInterfaceBody?: (("always" | "never") | {
|
|
6847
|
-
multiline?: boolean
|
|
6848
|
-
minElements?: number
|
|
6849
|
-
consistent?: boolean
|
|
6850
|
-
})
|
|
6851
6836
|
TSModuleBlock?: (("always" | "never") | {
|
|
6852
6837
|
multiline?: boolean
|
|
6853
6838
|
minElements?: number
|
|
@@ -6861,14 +6846,6 @@ type StyleCurlyNewline = []|[(("always" | "never") | {
|
|
|
6861
6846
|
type StyleDotLocation = []|[("object" | "property")]
|
|
6862
6847
|
// ----- style/eol-last -----
|
|
6863
6848
|
type StyleEolLast = []|[("always" | "never" | "unix" | "windows")]
|
|
6864
|
-
// ----- style/func-call-spacing -----
|
|
6865
|
-
type StyleFuncCallSpacing = ([]|["never"] | []|["always"]|["always", {
|
|
6866
|
-
allowNewlines?: boolean
|
|
6867
|
-
optionalChain?: {
|
|
6868
|
-
before?: boolean
|
|
6869
|
-
after?: boolean
|
|
6870
|
-
}
|
|
6871
|
-
}])
|
|
6872
6849
|
// ----- style/function-call-argument-newline -----
|
|
6873
6850
|
type StyleFunctionCallArgumentNewline = []|[("always" | "never" | "consistent")]
|
|
6874
6851
|
// ----- style/function-call-spacing -----
|
|
@@ -6909,16 +6886,19 @@ type StyleIndent = []|[("tab" | number)]|[("tab" | number), {
|
|
|
6909
6886
|
var?: (number | ("first" | "off"))
|
|
6910
6887
|
let?: (number | ("first" | "off"))
|
|
6911
6888
|
const?: (number | ("first" | "off"))
|
|
6889
|
+
using?: (number | ("first" | "off"))
|
|
6912
6890
|
})
|
|
6913
6891
|
outerIIFEBody?: (number | "off")
|
|
6914
6892
|
MemberExpression?: (number | "off")
|
|
6915
6893
|
FunctionDeclaration?: {
|
|
6916
6894
|
parameters?: (number | ("first" | "off"))
|
|
6917
6895
|
body?: number
|
|
6896
|
+
returnType?: number
|
|
6918
6897
|
}
|
|
6919
6898
|
FunctionExpression?: {
|
|
6920
6899
|
parameters?: (number | ("first" | "off"))
|
|
6921
6900
|
body?: number
|
|
6901
|
+
returnType?: number
|
|
6922
6902
|
}
|
|
6923
6903
|
StaticBlock?: {
|
|
6924
6904
|
body?: number
|
|
@@ -6959,31 +6939,52 @@ type StyleJsxCurlyNewline = []|[(("consistent" | "never") | {
|
|
|
6959
6939
|
multiline?: ("consistent" | "require" | "forbid")
|
|
6960
6940
|
})]
|
|
6961
6941
|
// ----- style/jsx-curly-spacing -----
|
|
6962
|
-
type StyleJsxCurlySpacing = []|[(
|
|
6963
|
-
|
|
6964
|
-
children?: _StyleJsxCurlySpacingBasicConfigOrBoolean
|
|
6965
|
-
[k: string]: unknown | undefined
|
|
6966
|
-
}) | ("always" | "never"))]|[((_StyleJsxCurlySpacing_BasicConfig & {
|
|
6967
|
-
attributes?: _StyleJsxCurlySpacingBasicConfigOrBoolean
|
|
6968
|
-
children?: _StyleJsxCurlySpacingBasicConfigOrBoolean
|
|
6969
|
-
[k: string]: unknown | undefined
|
|
6970
|
-
}) | ("always" | "never")), {
|
|
6942
|
+
type StyleJsxCurlySpacing = []|[({
|
|
6943
|
+
when?: ("always" | "never")
|
|
6971
6944
|
allowMultiline?: boolean
|
|
6972
6945
|
spacing?: {
|
|
6973
6946
|
objectLiterals?: ("always" | "never")
|
|
6974
|
-
[k: string]: unknown | undefined
|
|
6975
6947
|
}
|
|
6976
|
-
|
|
6977
|
-
|
|
6978
|
-
|
|
6948
|
+
attributes?: ({
|
|
6949
|
+
when?: ("always" | "never")
|
|
6950
|
+
allowMultiline?: boolean
|
|
6951
|
+
spacing?: {
|
|
6952
|
+
objectLiterals?: ("always" | "never")
|
|
6953
|
+
}
|
|
6954
|
+
} | boolean)
|
|
6955
|
+
children?: ({
|
|
6956
|
+
when?: ("always" | "never")
|
|
6957
|
+
allowMultiline?: boolean
|
|
6958
|
+
spacing?: {
|
|
6959
|
+
objectLiterals?: ("always" | "never")
|
|
6960
|
+
}
|
|
6961
|
+
} | boolean)
|
|
6962
|
+
} | ("always" | "never"))]|[({
|
|
6979
6963
|
when?: ("always" | "never")
|
|
6980
6964
|
allowMultiline?: boolean
|
|
6981
6965
|
spacing?: {
|
|
6982
6966
|
objectLiterals?: ("always" | "never")
|
|
6983
|
-
[k: string]: unknown | undefined
|
|
6984
6967
|
}
|
|
6985
|
-
|
|
6986
|
-
|
|
6968
|
+
attributes?: ({
|
|
6969
|
+
when?: ("always" | "never")
|
|
6970
|
+
allowMultiline?: boolean
|
|
6971
|
+
spacing?: {
|
|
6972
|
+
objectLiterals?: ("always" | "never")
|
|
6973
|
+
}
|
|
6974
|
+
} | boolean)
|
|
6975
|
+
children?: ({
|
|
6976
|
+
when?: ("always" | "never")
|
|
6977
|
+
allowMultiline?: boolean
|
|
6978
|
+
spacing?: {
|
|
6979
|
+
objectLiterals?: ("always" | "never")
|
|
6980
|
+
}
|
|
6981
|
+
} | boolean)
|
|
6982
|
+
} | ("always" | "never")), {
|
|
6983
|
+
allowMultiline?: boolean
|
|
6984
|
+
spacing?: {
|
|
6985
|
+
objectLiterals?: ("always" | "never")
|
|
6986
|
+
}
|
|
6987
|
+
}]
|
|
6987
6988
|
// ----- style/jsx-equals-spacing -----
|
|
6988
6989
|
type StyleJsxEqualsSpacing = []|[("always" | "never")]
|
|
6989
6990
|
// ----- style/jsx-first-prop-new-line -----
|
|
@@ -6999,14 +7000,12 @@ type StyleJsxIndent = []|[("tab" | number)]|[("tab" | number), {
|
|
|
6999
7000
|
type StyleJsxIndentProps = []|[(("tab" | "first") | number | {
|
|
7000
7001
|
indentMode?: (("tab" | "first") | number)
|
|
7001
7002
|
ignoreTernaryOperator?: boolean
|
|
7002
|
-
[k: string]: unknown | undefined
|
|
7003
7003
|
})]
|
|
7004
7004
|
// ----- style/jsx-max-props-per-line -----
|
|
7005
7005
|
type StyleJsxMaxPropsPerLine = []|[({
|
|
7006
7006
|
maximum?: {
|
|
7007
7007
|
single?: number
|
|
7008
7008
|
multi?: number
|
|
7009
|
-
[k: string]: unknown | undefined
|
|
7010
7009
|
}
|
|
7011
7010
|
} | {
|
|
7012
7011
|
maximum?: number
|
|
@@ -7043,7 +7042,8 @@ type StyleJsxSortProps = []|[{
|
|
|
7043
7042
|
multiline?: ("ignore" | "first" | "last")
|
|
7044
7043
|
ignoreCase?: boolean
|
|
7045
7044
|
noSortAlphabetically?: boolean
|
|
7046
|
-
reservedFirst?: (
|
|
7045
|
+
reservedFirst?: (string[] | boolean)
|
|
7046
|
+
reservedLast?: string[]
|
|
7047
7047
|
locale?: string
|
|
7048
7048
|
}]
|
|
7049
7049
|
// ----- style/jsx-tag-spacing -----
|
|
@@ -7120,18 +7120,6 @@ type StyleKeywordSpacing = []|[{
|
|
|
7120
7120
|
before?: boolean
|
|
7121
7121
|
after?: boolean
|
|
7122
7122
|
}
|
|
7123
|
-
as?: {
|
|
7124
|
-
before?: boolean
|
|
7125
|
-
after?: boolean
|
|
7126
|
-
}
|
|
7127
|
-
async?: {
|
|
7128
|
-
before?: boolean
|
|
7129
|
-
after?: boolean
|
|
7130
|
-
}
|
|
7131
|
-
await?: {
|
|
7132
|
-
before?: boolean
|
|
7133
|
-
after?: boolean
|
|
7134
|
-
}
|
|
7135
7123
|
boolean?: {
|
|
7136
7124
|
before?: boolean
|
|
7137
7125
|
after?: boolean
|
|
@@ -7224,18 +7212,10 @@ type StyleKeywordSpacing = []|[{
|
|
|
7224
7212
|
before?: boolean
|
|
7225
7213
|
after?: boolean
|
|
7226
7214
|
}
|
|
7227
|
-
from?: {
|
|
7228
|
-
before?: boolean
|
|
7229
|
-
after?: boolean
|
|
7230
|
-
}
|
|
7231
7215
|
function?: {
|
|
7232
7216
|
before?: boolean
|
|
7233
7217
|
after?: boolean
|
|
7234
7218
|
}
|
|
7235
|
-
get?: {
|
|
7236
|
-
before?: boolean
|
|
7237
|
-
after?: boolean
|
|
7238
|
-
}
|
|
7239
7219
|
goto?: {
|
|
7240
7220
|
before?: boolean
|
|
7241
7221
|
after?: boolean
|
|
@@ -7268,10 +7248,6 @@ type StyleKeywordSpacing = []|[{
|
|
|
7268
7248
|
before?: boolean
|
|
7269
7249
|
after?: boolean
|
|
7270
7250
|
}
|
|
7271
|
-
let?: {
|
|
7272
|
-
before?: boolean
|
|
7273
|
-
after?: boolean
|
|
7274
|
-
}
|
|
7275
7251
|
long?: {
|
|
7276
7252
|
before?: boolean
|
|
7277
7253
|
after?: boolean
|
|
@@ -7288,10 +7264,6 @@ type StyleKeywordSpacing = []|[{
|
|
|
7288
7264
|
before?: boolean
|
|
7289
7265
|
after?: boolean
|
|
7290
7266
|
}
|
|
7291
|
-
of?: {
|
|
7292
|
-
before?: boolean
|
|
7293
|
-
after?: boolean
|
|
7294
|
-
}
|
|
7295
7267
|
package?: {
|
|
7296
7268
|
before?: boolean
|
|
7297
7269
|
after?: boolean
|
|
@@ -7312,14 +7284,6 @@ type StyleKeywordSpacing = []|[{
|
|
|
7312
7284
|
before?: boolean
|
|
7313
7285
|
after?: boolean
|
|
7314
7286
|
}
|
|
7315
|
-
satisfies?: {
|
|
7316
|
-
before?: boolean
|
|
7317
|
-
after?: boolean
|
|
7318
|
-
}
|
|
7319
|
-
set?: {
|
|
7320
|
-
before?: boolean
|
|
7321
|
-
after?: boolean
|
|
7322
|
-
}
|
|
7323
7287
|
short?: {
|
|
7324
7288
|
before?: boolean
|
|
7325
7289
|
after?: boolean
|
|
@@ -7388,6 +7352,50 @@ type StyleKeywordSpacing = []|[{
|
|
|
7388
7352
|
before?: boolean
|
|
7389
7353
|
after?: boolean
|
|
7390
7354
|
}
|
|
7355
|
+
accessor?: {
|
|
7356
|
+
before?: boolean
|
|
7357
|
+
after?: boolean
|
|
7358
|
+
}
|
|
7359
|
+
as?: {
|
|
7360
|
+
before?: boolean
|
|
7361
|
+
after?: boolean
|
|
7362
|
+
}
|
|
7363
|
+
async?: {
|
|
7364
|
+
before?: boolean
|
|
7365
|
+
after?: boolean
|
|
7366
|
+
}
|
|
7367
|
+
await?: {
|
|
7368
|
+
before?: boolean
|
|
7369
|
+
after?: boolean
|
|
7370
|
+
}
|
|
7371
|
+
from?: {
|
|
7372
|
+
before?: boolean
|
|
7373
|
+
after?: boolean
|
|
7374
|
+
}
|
|
7375
|
+
get?: {
|
|
7376
|
+
before?: boolean
|
|
7377
|
+
after?: boolean
|
|
7378
|
+
}
|
|
7379
|
+
let?: {
|
|
7380
|
+
before?: boolean
|
|
7381
|
+
after?: boolean
|
|
7382
|
+
}
|
|
7383
|
+
of?: {
|
|
7384
|
+
before?: boolean
|
|
7385
|
+
after?: boolean
|
|
7386
|
+
}
|
|
7387
|
+
satisfies?: {
|
|
7388
|
+
before?: boolean
|
|
7389
|
+
after?: boolean
|
|
7390
|
+
}
|
|
7391
|
+
set?: {
|
|
7392
|
+
before?: boolean
|
|
7393
|
+
after?: boolean
|
|
7394
|
+
}
|
|
7395
|
+
using?: {
|
|
7396
|
+
before?: boolean
|
|
7397
|
+
after?: boolean
|
|
7398
|
+
}
|
|
7391
7399
|
yield?: {
|
|
7392
7400
|
before?: boolean
|
|
7393
7401
|
after?: boolean
|
|
@@ -7562,11 +7570,11 @@ interface _StyleMemberDelimiterStyle_DelimiterConfig {
|
|
|
7562
7570
|
// ----- style/multiline-comment-style -----
|
|
7563
7571
|
type StyleMultilineCommentStyle = ([]|[("starred-block" | "bare-block")] | []|["separate-lines"]|["separate-lines", {
|
|
7564
7572
|
checkJSDoc?: boolean
|
|
7573
|
+
checkExclamation?: boolean
|
|
7565
7574
|
}])
|
|
7566
7575
|
// ----- style/multiline-ternary -----
|
|
7567
7576
|
type StyleMultilineTernary = []|[("always" | "always-multiline" | "never")]|[("always" | "always-multiline" | "never"), {
|
|
7568
7577
|
ignoreJSX?: boolean
|
|
7569
|
-
[k: string]: unknown | undefined
|
|
7570
7578
|
}]
|
|
7571
7579
|
// ----- style/new-parens -----
|
|
7572
7580
|
type StyleNewParens = []|[("always" | "never")]
|
|
@@ -7592,6 +7600,11 @@ type StyleNoExtraParens = ([]|["functions"] | []|["all"]|["all", {
|
|
|
7592
7600
|
enforceForFunctionPrototypeMethods?: boolean
|
|
7593
7601
|
allowParensAfterCommentPattern?: string
|
|
7594
7602
|
nestedConditionalExpressions?: boolean
|
|
7603
|
+
allowNodesInSpreadElement?: {
|
|
7604
|
+
ConditionalExpression?: boolean
|
|
7605
|
+
LogicalExpression?: boolean
|
|
7606
|
+
AwaitExpression?: boolean
|
|
7607
|
+
}
|
|
7595
7608
|
}])
|
|
7596
7609
|
// ----- style/no-mixed-operators -----
|
|
7597
7610
|
type StyleNoMixedOperators = []|[{
|
|
@@ -7669,6 +7682,11 @@ type StyleObjectCurlyNewline = []|[((("always" | "never") | {
|
|
|
7669
7682
|
minProperties?: number
|
|
7670
7683
|
consistent?: boolean
|
|
7671
7684
|
})
|
|
7685
|
+
TSEnumBody?: (("always" | "never") | {
|
|
7686
|
+
multiline?: boolean
|
|
7687
|
+
minProperties?: number
|
|
7688
|
+
consistent?: boolean
|
|
7689
|
+
})
|
|
7672
7690
|
})]
|
|
7673
7691
|
// ----- style/object-curly-spacing -----
|
|
7674
7692
|
type StyleObjectCurlySpacing = []|[("always" | "never")]|[("always" | "never"), {
|
|
@@ -7678,7 +7696,6 @@ type StyleObjectCurlySpacing = []|[("always" | "never")]|[("always" | "never"),
|
|
|
7678
7696
|
// ----- style/object-property-newline -----
|
|
7679
7697
|
type StyleObjectPropertyNewline = []|[{
|
|
7680
7698
|
allowAllPropertiesOnSameLine?: boolean
|
|
7681
|
-
allowMultiplePropertiesPerLine?: boolean
|
|
7682
7699
|
}]
|
|
7683
7700
|
// ----- style/one-var-declaration-per-line -----
|
|
7684
7701
|
type StyleOneVarDeclarationPerLine = []|[("always" | "initializations")]
|
|
@@ -7702,11 +7719,12 @@ type StylePaddedBlocks = []|[(("always" | "never" | "start" | "end") | {
|
|
|
7702
7719
|
}]
|
|
7703
7720
|
// ----- style/padding-line-between-statements -----
|
|
7704
7721
|
type _StylePaddingLineBetweenStatementsPaddingType = ("any" | "never" | "always")
|
|
7705
|
-
type
|
|
7722
|
+
type _StylePaddingLineBetweenStatementsStatementOption = (_StylePaddingLineBetweenStatementsStatementType | [_StylePaddingLineBetweenStatementsStatementType, ...(_StylePaddingLineBetweenStatementsStatementType)[]])
|
|
7723
|
+
type _StylePaddingLineBetweenStatementsStatementType = ("*" | "exports" | "require" | "directive" | "iife" | "block" | "empty" | "function" | "ts-method" | "break" | "case" | "class" | "continue" | "debugger" | "default" | "do" | "for" | "if" | "import" | "return" | "switch" | "throw" | "try" | "while" | "with" | "cjs-export" | "cjs-import" | "enum" | "interface" | "type" | "function-overload" | "block-like" | "singleline-block-like" | "multiline-block-like" | "expression" | "singleline-expression" | "multiline-expression" | "export" | "singleline-export" | "multiline-export" | "var" | "singleline-var" | "multiline-var" | "let" | "singleline-let" | "multiline-let" | "const" | "singleline-const" | "multiline-const" | "using" | "singleline-using" | "multiline-using")
|
|
7706
7724
|
type StylePaddingLineBetweenStatements = {
|
|
7707
7725
|
blankLine: _StylePaddingLineBetweenStatementsPaddingType
|
|
7708
|
-
prev:
|
|
7709
|
-
next:
|
|
7726
|
+
prev: _StylePaddingLineBetweenStatementsStatementOption
|
|
7727
|
+
next: _StylePaddingLineBetweenStatementsStatementOption
|
|
7710
7728
|
}[]
|
|
7711
7729
|
// ----- style/quote-props -----
|
|
7712
7730
|
type StyleQuoteProps = ([]|[("always" | "as-needed" | "consistent" | "consistent-as-needed")] | []|[("always" | "as-needed" | "consistent" | "consistent-as-needed")]|[("always" | "as-needed" | "consistent" | "consistent-as-needed"), {
|
|
@@ -7717,7 +7735,7 @@ type StyleQuoteProps = ([]|[("always" | "as-needed" | "consistent" | "consistent
|
|
|
7717
7735
|
// ----- style/quotes -----
|
|
7718
7736
|
type StyleQuotes = []|[("single" | "double" | "backtick")]|[("single" | "double" | "backtick"), ("avoid-escape" | {
|
|
7719
7737
|
avoidEscape?: boolean
|
|
7720
|
-
allowTemplateLiterals?: boolean
|
|
7738
|
+
allowTemplateLiterals?: (boolean | ("never" | "avoidEscape" | "always"))
|
|
7721
7739
|
ignoreStringLiterals?: boolean
|
|
7722
7740
|
})]
|
|
7723
7741
|
// ----- style/rest-spread-spacing -----
|
|
@@ -7741,12 +7759,14 @@ type StyleSpaceBeforeBlocks = []|[(("always" | "never") | {
|
|
|
7741
7759
|
keywords?: ("always" | "never" | "off")
|
|
7742
7760
|
functions?: ("always" | "never" | "off")
|
|
7743
7761
|
classes?: ("always" | "never" | "off")
|
|
7762
|
+
modules?: ("always" | "never" | "off")
|
|
7744
7763
|
})]
|
|
7745
7764
|
// ----- style/space-before-function-paren -----
|
|
7746
7765
|
type StyleSpaceBeforeFunctionParen = []|[(("always" | "never") | {
|
|
7747
7766
|
anonymous?: ("always" | "never" | "ignore")
|
|
7748
7767
|
named?: ("always" | "never" | "ignore")
|
|
7749
7768
|
asyncArrow?: ("always" | "never" | "ignore")
|
|
7769
|
+
catch?: ("always" | "never" | "ignore")
|
|
7750
7770
|
})]
|
|
7751
7771
|
// ----- style/space-in-parens -----
|
|
7752
7772
|
type StyleSpaceInParens = []|[("always" | "never")]|[("always" | "never"), {
|
|
@@ -7755,6 +7775,7 @@ type StyleSpaceInParens = []|[("always" | "never")]|[("always" | "never"), {
|
|
|
7755
7775
|
// ----- style/space-infix-ops -----
|
|
7756
7776
|
type StyleSpaceInfixOps = []|[{
|
|
7757
7777
|
int32Hint?: boolean
|
|
7778
|
+
ignoreTypes?: boolean
|
|
7758
7779
|
}]
|
|
7759
7780
|
// ----- style/space-unary-ops -----
|
|
7760
7781
|
type StyleSpaceUnaryOps = []|[{
|
|
@@ -9108,7 +9129,6 @@ type VueArrayElementNewline = []|[(_VueArrayElementNewlineBasicConfig | {
|
|
|
9108
9129
|
ArrayPattern?: _VueArrayElementNewlineBasicConfig
|
|
9109
9130
|
})]
|
|
9110
9131
|
type _VueArrayElementNewlineBasicConfig = (("always" | "never" | "consistent") | {
|
|
9111
|
-
consistent?: boolean
|
|
9112
9132
|
multiline?: boolean
|
|
9113
9133
|
minItems?: (number | null)
|
|
9114
9134
|
})
|
|
@@ -9177,14 +9197,9 @@ type VueCommaDangle = []|[(_VueCommaDangleValue | {
|
|
|
9177
9197
|
imports?: _VueCommaDangleValueWithIgnore
|
|
9178
9198
|
exports?: _VueCommaDangleValueWithIgnore
|
|
9179
9199
|
functions?: _VueCommaDangleValueWithIgnore
|
|
9180
|
-
importAttributes?: _VueCommaDangleValueWithIgnore
|
|
9181
|
-
dynamicImports?: _VueCommaDangleValueWithIgnore
|
|
9182
|
-
enums?: _VueCommaDangleValueWithIgnore
|
|
9183
|
-
generics?: _VueCommaDangleValueWithIgnore
|
|
9184
|
-
tuples?: _VueCommaDangleValueWithIgnore
|
|
9185
9200
|
})]
|
|
9186
9201
|
type _VueCommaDangleValue = ("always-multiline" | "always" | "never" | "only-multiline")
|
|
9187
|
-
type _VueCommaDangleValueWithIgnore = ("always-multiline" | "always" | "
|
|
9202
|
+
type _VueCommaDangleValueWithIgnore = ("always-multiline" | "always" | "ignore" | "never" | "only-multiline")
|
|
9188
9203
|
// ----- vue/comma-spacing -----
|
|
9189
9204
|
type VueCommaSpacing = []|[{
|
|
9190
9205
|
before?: boolean
|
|
@@ -9255,10 +9270,6 @@ type VueFirstAttributeLinebreak = []|[{
|
|
|
9255
9270
|
// ----- vue/func-call-spacing -----
|
|
9256
9271
|
type VueFuncCallSpacing = ([]|["never"] | []|["always"]|["always", {
|
|
9257
9272
|
allowNewlines?: boolean
|
|
9258
|
-
optionalChain?: {
|
|
9259
|
-
before?: boolean
|
|
9260
|
-
after?: boolean
|
|
9261
|
-
}
|
|
9262
9273
|
}])
|
|
9263
9274
|
// ----- vue/html-button-has-type -----
|
|
9264
9275
|
type VueHtmlButtonHasType = []|[{
|
|
@@ -9340,7 +9351,6 @@ type VueKeySpacing = []|[({
|
|
|
9340
9351
|
mode?: ("strict" | "minimum")
|
|
9341
9352
|
beforeColon?: boolean
|
|
9342
9353
|
afterColon?: boolean
|
|
9343
|
-
ignoredNodes?: ("ObjectExpression" | "ObjectPattern" | "ImportDeclaration" | "ExportNamedDeclaration" | "ExportAllDeclaration" | "TSTypeLiteral" | "TSInterfaceBody" | "ClassBody")[]
|
|
9344
9354
|
} | {
|
|
9345
9355
|
singleLine?: {
|
|
9346
9356
|
mode?: ("strict" | "minimum")
|
|
@@ -9577,10 +9587,6 @@ type VueKeywordSpacing = []|[{
|
|
|
9577
9587
|
before?: boolean
|
|
9578
9588
|
after?: boolean
|
|
9579
9589
|
}
|
|
9580
|
-
satisfies?: {
|
|
9581
|
-
before?: boolean
|
|
9582
|
-
after?: boolean
|
|
9583
|
-
}
|
|
9584
9590
|
set?: {
|
|
9585
9591
|
before?: boolean
|
|
9586
9592
|
after?: boolean
|
|
@@ -9657,10 +9663,6 @@ type VueKeywordSpacing = []|[{
|
|
|
9657
9663
|
before?: boolean
|
|
9658
9664
|
after?: boolean
|
|
9659
9665
|
}
|
|
9660
|
-
type?: {
|
|
9661
|
-
before?: boolean
|
|
9662
|
-
after?: boolean
|
|
9663
|
-
}
|
|
9664
9666
|
}
|
|
9665
9667
|
}]
|
|
9666
9668
|
// ----- vue/match-component-file-name -----
|
|
@@ -9789,10 +9791,7 @@ type VueMultilineHtmlElementContentNewline = []|[{
|
|
|
9789
9791
|
allowEmptyLines?: boolean
|
|
9790
9792
|
}]
|
|
9791
9793
|
// ----- vue/multiline-ternary -----
|
|
9792
|
-
type VueMultilineTernary = []|[("always" | "always-multiline" | "never")]
|
|
9793
|
-
ignoreJSX?: boolean
|
|
9794
|
-
[k: string]: unknown | undefined
|
|
9795
|
-
}]
|
|
9794
|
+
type VueMultilineTernary = []|[("always" | "always-multiline" | "never")]
|
|
9796
9795
|
// ----- vue/mustache-interpolation-spacing -----
|
|
9797
9796
|
type VueMustacheInterpolationSpacing = []|[("always" | "never")]
|
|
9798
9797
|
// ----- vue/new-line-between-multi-line-property -----
|
|
@@ -9867,7 +9866,6 @@ type VueNoExtraParens = ([]|["functions"] | []|["all"]|["all", {
|
|
|
9867
9866
|
enforceForNewInMemberExpressions?: boolean
|
|
9868
9867
|
enforceForFunctionPrototypeMethods?: boolean
|
|
9869
9868
|
allowParensAfterCommentPattern?: string
|
|
9870
|
-
nestedConditionalExpressions?: boolean
|
|
9871
9869
|
}])
|
|
9872
9870
|
// ----- vue/no-implicit-coercion -----
|
|
9873
9871
|
type VueNoImplicitCoercion = []|[{
|
|
@@ -10118,16 +10116,6 @@ type VueObjectCurlyNewline = []|[((("always" | "never") | {
|
|
|
10118
10116
|
minProperties?: number
|
|
10119
10117
|
consistent?: boolean
|
|
10120
10118
|
})
|
|
10121
|
-
TSTypeLiteral?: (("always" | "never") | {
|
|
10122
|
-
multiline?: boolean
|
|
10123
|
-
minProperties?: number
|
|
10124
|
-
consistent?: boolean
|
|
10125
|
-
})
|
|
10126
|
-
TSInterfaceBody?: (("always" | "never") | {
|
|
10127
|
-
multiline?: boolean
|
|
10128
|
-
minProperties?: number
|
|
10129
|
-
consistent?: boolean
|
|
10130
|
-
})
|
|
10131
10119
|
})]
|
|
10132
10120
|
// ----- vue/object-curly-spacing -----
|
|
10133
10121
|
type VueObjectCurlySpacing = []|[("always" | "never")]|[("always" | "never"), {
|
|
@@ -10149,7 +10137,7 @@ type VueObjectShorthand = ([]|[("always" | "methods" | "properties" | "never" |
|
|
|
10149
10137
|
avoidExplicitReturnArrows?: boolean
|
|
10150
10138
|
}])
|
|
10151
10139
|
// ----- vue/operator-linebreak -----
|
|
10152
|
-
type VueOperatorLinebreak = []|[(
|
|
10140
|
+
type VueOperatorLinebreak = []|[("after" | "before" | "none" | null)]|[("after" | "before" | "none" | null), {
|
|
10153
10141
|
overrides?: {
|
|
10154
10142
|
[k: string]: ("after" | "before" | "none" | "ignore") | undefined
|
|
10155
10143
|
}
|