@luxass/eslint-config 5.0.0 → 5.1.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.d.ts +268 -197
- package/dist/index.js +1 -1
- package/package.json +24 -24
package/dist/index.d.ts
CHANGED
|
@@ -1827,6 +1827,11 @@ interface RuleOptions {
|
|
|
1827
1827
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/heading-increment.md
|
|
1828
1828
|
*/
|
|
1829
1829
|
'markdown/heading-increment'?: Linter.RuleEntry<[]>;
|
|
1830
|
+
/**
|
|
1831
|
+
* Disallow bare URLs
|
|
1832
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-bare-urls.md
|
|
1833
|
+
*/
|
|
1834
|
+
'markdown/no-bare-urls'?: Linter.RuleEntry<[]>;
|
|
1830
1835
|
/**
|
|
1831
1836
|
* Disallow duplicate definitions
|
|
1832
1837
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-duplicate-definitions.md
|
|
@@ -1836,12 +1841,12 @@ interface RuleOptions {
|
|
|
1836
1841
|
* Disallow duplicate headings in the same document
|
|
1837
1842
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-duplicate-headings.md
|
|
1838
1843
|
*/
|
|
1839
|
-
'markdown/no-duplicate-headings'?: Linter.RuleEntry<
|
|
1844
|
+
'markdown/no-duplicate-headings'?: Linter.RuleEntry<MarkdownNoDuplicateHeadings>;
|
|
1840
1845
|
/**
|
|
1841
1846
|
* Disallow empty definitions
|
|
1842
1847
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-empty-definitions.md
|
|
1843
1848
|
*/
|
|
1844
|
-
'markdown/no-empty-definitions'?: Linter.RuleEntry<
|
|
1849
|
+
'markdown/no-empty-definitions'?: Linter.RuleEntry<MarkdownNoEmptyDefinitions>;
|
|
1845
1850
|
/**
|
|
1846
1851
|
* Disallow empty images
|
|
1847
1852
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-empty-images.md
|
|
@@ -1872,11 +1877,26 @@ interface RuleOptions {
|
|
|
1872
1877
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-missing-label-refs.md
|
|
1873
1878
|
*/
|
|
1874
1879
|
'markdown/no-missing-label-refs'?: Linter.RuleEntry<[]>;
|
|
1880
|
+
/**
|
|
1881
|
+
* Disallow link fragments that do not reference valid headings
|
|
1882
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-missing-link-fragments.md
|
|
1883
|
+
*/
|
|
1884
|
+
'markdown/no-missing-link-fragments'?: Linter.RuleEntry<MarkdownNoMissingLinkFragments>;
|
|
1875
1885
|
/**
|
|
1876
1886
|
* Disallow multiple H1 headings in the same document
|
|
1877
1887
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-multiple-h1.md
|
|
1878
1888
|
*/
|
|
1879
1889
|
'markdown/no-multiple-h1'?: Linter.RuleEntry<MarkdownNoMultipleH1>;
|
|
1890
|
+
/**
|
|
1891
|
+
* Disallow reversed link and image syntax
|
|
1892
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-reversed-media-syntax.md
|
|
1893
|
+
*/
|
|
1894
|
+
'markdown/no-reversed-media-syntax'?: Linter.RuleEntry<[]>;
|
|
1895
|
+
/**
|
|
1896
|
+
* Disallow unused definitions
|
|
1897
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-unused-definitions.md
|
|
1898
|
+
*/
|
|
1899
|
+
'markdown/no-unused-definitions'?: Linter.RuleEntry<MarkdownNoUnusedDefinitions>;
|
|
1880
1900
|
/**
|
|
1881
1901
|
* Require alternative text for images
|
|
1882
1902
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/require-alt-text.md
|
|
@@ -2049,7 +2069,7 @@ interface RuleOptions {
|
|
|
2049
2069
|
*/
|
|
2050
2070
|
'no-console'?: Linter.RuleEntry<NoConsole>;
|
|
2051
2071
|
/**
|
|
2052
|
-
* Disallow reassigning `const` variables
|
|
2072
|
+
* Disallow reassigning `const`, `using`, and `await using` variables
|
|
2053
2073
|
* @see https://eslint.org/docs/latest/rules/no-const-assign
|
|
2054
2074
|
*/
|
|
2055
2075
|
'no-const-assign'?: Linter.RuleEntry<[]>;
|
|
@@ -4262,483 +4282,478 @@ interface RuleOptions {
|
|
|
4262
4282
|
'strict'?: Linter.RuleEntry<Strict>;
|
|
4263
4283
|
/**
|
|
4264
4284
|
* Enforce linebreaks after opening and before closing array brackets
|
|
4265
|
-
* @see https://eslint.style/rules/
|
|
4285
|
+
* @see https://eslint.style/rules/array-bracket-newline
|
|
4266
4286
|
*/
|
|
4267
4287
|
'style/array-bracket-newline'?: Linter.RuleEntry<StyleArrayBracketNewline>;
|
|
4268
4288
|
/**
|
|
4269
4289
|
* Enforce consistent spacing inside array brackets
|
|
4270
|
-
* @see https://eslint.style/rules/
|
|
4290
|
+
* @see https://eslint.style/rules/array-bracket-spacing
|
|
4271
4291
|
*/
|
|
4272
4292
|
'style/array-bracket-spacing'?: Linter.RuleEntry<StyleArrayBracketSpacing>;
|
|
4273
4293
|
/**
|
|
4274
4294
|
* Enforce line breaks after each array element
|
|
4275
|
-
* @see https://eslint.style/rules/
|
|
4295
|
+
* @see https://eslint.style/rules/array-element-newline
|
|
4276
4296
|
*/
|
|
4277
4297
|
'style/array-element-newline'?: Linter.RuleEntry<StyleArrayElementNewline>;
|
|
4278
4298
|
/**
|
|
4279
4299
|
* Require parentheses around arrow function arguments
|
|
4280
|
-
* @see https://eslint.style/rules/
|
|
4300
|
+
* @see https://eslint.style/rules/arrow-parens
|
|
4281
4301
|
*/
|
|
4282
4302
|
'style/arrow-parens'?: Linter.RuleEntry<StyleArrowParens>;
|
|
4283
4303
|
/**
|
|
4284
4304
|
* Enforce consistent spacing before and after the arrow in arrow functions
|
|
4285
|
-
* @see https://eslint.style/rules/
|
|
4305
|
+
* @see https://eslint.style/rules/arrow-spacing
|
|
4286
4306
|
*/
|
|
4287
4307
|
'style/arrow-spacing'?: Linter.RuleEntry<StyleArrowSpacing>;
|
|
4288
4308
|
/**
|
|
4289
4309
|
* Disallow or enforce spaces inside of blocks after opening block and before closing block
|
|
4290
|
-
* @see https://eslint.style/rules/
|
|
4310
|
+
* @see https://eslint.style/rules/block-spacing
|
|
4291
4311
|
*/
|
|
4292
4312
|
'style/block-spacing'?: Linter.RuleEntry<StyleBlockSpacing>;
|
|
4293
4313
|
/**
|
|
4294
4314
|
* Enforce consistent brace style for blocks
|
|
4295
|
-
* @see https://eslint.style/rules/
|
|
4315
|
+
* @see https://eslint.style/rules/brace-style
|
|
4296
4316
|
*/
|
|
4297
4317
|
'style/brace-style'?: Linter.RuleEntry<StyleBraceStyle>;
|
|
4298
4318
|
/**
|
|
4299
4319
|
* Require or disallow trailing commas
|
|
4300
|
-
* @see https://eslint.style/rules/
|
|
4320
|
+
* @see https://eslint.style/rules/comma-dangle
|
|
4301
4321
|
*/
|
|
4302
4322
|
'style/comma-dangle'?: Linter.RuleEntry<StyleCommaDangle>;
|
|
4303
4323
|
/**
|
|
4304
4324
|
* Enforce consistent spacing before and after commas
|
|
4305
|
-
* @see https://eslint.style/rules/
|
|
4325
|
+
* @see https://eslint.style/rules/comma-spacing
|
|
4306
4326
|
*/
|
|
4307
4327
|
'style/comma-spacing'?: Linter.RuleEntry<StyleCommaSpacing>;
|
|
4308
4328
|
/**
|
|
4309
4329
|
* Enforce consistent comma style
|
|
4310
|
-
* @see https://eslint.style/rules/
|
|
4330
|
+
* @see https://eslint.style/rules/comma-style
|
|
4311
4331
|
*/
|
|
4312
4332
|
'style/comma-style'?: Linter.RuleEntry<StyleCommaStyle>;
|
|
4313
4333
|
/**
|
|
4314
4334
|
* Enforce consistent spacing inside computed property brackets
|
|
4315
|
-
* @see https://eslint.style/rules/
|
|
4335
|
+
* @see https://eslint.style/rules/computed-property-spacing
|
|
4316
4336
|
*/
|
|
4317
4337
|
'style/computed-property-spacing'?: Linter.RuleEntry<StyleComputedPropertySpacing>;
|
|
4318
4338
|
/**
|
|
4319
4339
|
* Enforce consistent line breaks after opening and before closing braces
|
|
4320
|
-
* @see https://eslint.style/rules/
|
|
4340
|
+
* @see https://eslint.style/rules/curly-newline
|
|
4321
4341
|
*/
|
|
4322
4342
|
'style/curly-newline'?: Linter.RuleEntry<StyleCurlyNewline>;
|
|
4323
4343
|
/**
|
|
4324
4344
|
* Enforce consistent newlines before and after dots
|
|
4325
|
-
* @see https://eslint.style/rules/
|
|
4345
|
+
* @see https://eslint.style/rules/dot-location
|
|
4326
4346
|
*/
|
|
4327
4347
|
'style/dot-location'?: Linter.RuleEntry<StyleDotLocation>;
|
|
4328
4348
|
/**
|
|
4329
4349
|
* Require or disallow newline at the end of files
|
|
4330
|
-
* @see https://eslint.style/rules/
|
|
4350
|
+
* @see https://eslint.style/rules/eol-last
|
|
4331
4351
|
*/
|
|
4332
4352
|
'style/eol-last'?: Linter.RuleEntry<StyleEolLast>;
|
|
4333
|
-
/**
|
|
4334
|
-
* Require or disallow spacing between function identifiers and their invocations
|
|
4335
|
-
* @see https://eslint.style/rules/ts/function-call-spacing
|
|
4336
|
-
*/
|
|
4337
|
-
'style/func-call-spacing'?: Linter.RuleEntry<StyleFuncCallSpacing>;
|
|
4338
4353
|
/**
|
|
4339
4354
|
* Enforce line breaks between arguments of a function call
|
|
4340
|
-
* @see https://eslint.style/rules/
|
|
4355
|
+
* @see https://eslint.style/rules/function-call-argument-newline
|
|
4341
4356
|
*/
|
|
4342
4357
|
'style/function-call-argument-newline'?: Linter.RuleEntry<StyleFunctionCallArgumentNewline>;
|
|
4343
4358
|
/**
|
|
4344
4359
|
* Require or disallow spacing between function identifiers and their invocations
|
|
4345
|
-
* @see https://eslint.style/rules/
|
|
4360
|
+
* @see https://eslint.style/rules/function-call-spacing
|
|
4346
4361
|
*/
|
|
4347
4362
|
'style/function-call-spacing'?: Linter.RuleEntry<StyleFunctionCallSpacing>;
|
|
4348
4363
|
/**
|
|
4349
4364
|
* Enforce consistent line breaks inside function parentheses
|
|
4350
|
-
* @see https://eslint.style/rules/
|
|
4365
|
+
* @see https://eslint.style/rules/function-paren-newline
|
|
4351
4366
|
*/
|
|
4352
4367
|
'style/function-paren-newline'?: Linter.RuleEntry<StyleFunctionParenNewline>;
|
|
4353
4368
|
/**
|
|
4354
4369
|
* Enforce consistent spacing around `*` operators in generator functions
|
|
4355
|
-
* @see https://eslint.style/rules/
|
|
4370
|
+
* @see https://eslint.style/rules/generator-star-spacing
|
|
4356
4371
|
*/
|
|
4357
4372
|
'style/generator-star-spacing'?: Linter.RuleEntry<StyleGeneratorStarSpacing>;
|
|
4358
4373
|
/**
|
|
4359
4374
|
* Enforce the location of arrow function bodies
|
|
4360
|
-
* @see https://eslint.style/rules/
|
|
4375
|
+
* @see https://eslint.style/rules/implicit-arrow-linebreak
|
|
4361
4376
|
*/
|
|
4362
4377
|
'style/implicit-arrow-linebreak'?: Linter.RuleEntry<StyleImplicitArrowLinebreak>;
|
|
4363
4378
|
/**
|
|
4364
4379
|
* Enforce consistent indentation
|
|
4365
|
-
* @see https://eslint.style/rules/
|
|
4380
|
+
* @see https://eslint.style/rules/indent
|
|
4366
4381
|
*/
|
|
4367
4382
|
'style/indent'?: Linter.RuleEntry<StyleIndent>;
|
|
4368
4383
|
/**
|
|
4369
4384
|
* Indentation for binary operators
|
|
4370
|
-
* @see https://eslint.style/rules/
|
|
4385
|
+
* @see https://eslint.style/rules/indent-binary-ops
|
|
4371
4386
|
*/
|
|
4372
4387
|
'style/indent-binary-ops'?: Linter.RuleEntry<StyleIndentBinaryOps>;
|
|
4373
4388
|
/**
|
|
4374
4389
|
* Enforce or disallow spaces inside of curly braces in JSX attributes and expressions
|
|
4375
|
-
* @see https://eslint.style/rules/jsx
|
|
4390
|
+
* @see https://eslint.style/rules/jsx-child-element-spacing
|
|
4376
4391
|
*/
|
|
4377
4392
|
'style/jsx-child-element-spacing'?: Linter.RuleEntry<[]>;
|
|
4378
4393
|
/**
|
|
4379
4394
|
* Enforce closing bracket location in JSX
|
|
4380
|
-
* @see https://eslint.style/rules/jsx
|
|
4395
|
+
* @see https://eslint.style/rules/jsx-closing-bracket-location
|
|
4381
4396
|
*/
|
|
4382
4397
|
'style/jsx-closing-bracket-location'?: Linter.RuleEntry<StyleJsxClosingBracketLocation>;
|
|
4383
4398
|
/**
|
|
4384
4399
|
* Enforce closing tag location for multiline JSX
|
|
4385
|
-
* @see https://eslint.style/rules/jsx
|
|
4400
|
+
* @see https://eslint.style/rules/jsx-closing-tag-location
|
|
4386
4401
|
*/
|
|
4387
4402
|
'style/jsx-closing-tag-location'?: Linter.RuleEntry<StyleJsxClosingTagLocation>;
|
|
4388
4403
|
/**
|
|
4389
4404
|
* Disallow unnecessary JSX expressions when literals alone are sufficient or enforce JSX expressions on literals in JSX children or attributes
|
|
4390
|
-
* @see https://eslint.style/rules/jsx
|
|
4405
|
+
* @see https://eslint.style/rules/jsx-curly-brace-presence
|
|
4391
4406
|
*/
|
|
4392
4407
|
'style/jsx-curly-brace-presence'?: Linter.RuleEntry<StyleJsxCurlyBracePresence>;
|
|
4393
4408
|
/**
|
|
4394
4409
|
* Enforce consistent linebreaks in curly braces in JSX attributes and expressions
|
|
4395
|
-
* @see https://eslint.style/rules/jsx
|
|
4410
|
+
* @see https://eslint.style/rules/jsx-curly-newline
|
|
4396
4411
|
*/
|
|
4397
4412
|
'style/jsx-curly-newline'?: Linter.RuleEntry<StyleJsxCurlyNewline>;
|
|
4398
4413
|
/**
|
|
4399
4414
|
* Enforce or disallow spaces inside of curly braces in JSX attributes and expressions
|
|
4400
|
-
* @see https://eslint.style/rules/jsx
|
|
4415
|
+
* @see https://eslint.style/rules/jsx-curly-spacing
|
|
4401
4416
|
*/
|
|
4402
4417
|
'style/jsx-curly-spacing'?: Linter.RuleEntry<StyleJsxCurlySpacing>;
|
|
4403
4418
|
/**
|
|
4404
4419
|
* Enforce or disallow spaces around equal signs in JSX attributes
|
|
4405
|
-
* @see https://eslint.style/rules/jsx
|
|
4420
|
+
* @see https://eslint.style/rules/jsx-equals-spacing
|
|
4406
4421
|
*/
|
|
4407
4422
|
'style/jsx-equals-spacing'?: Linter.RuleEntry<StyleJsxEqualsSpacing>;
|
|
4408
4423
|
/**
|
|
4409
4424
|
* Enforce proper position of the first property in JSX
|
|
4410
|
-
* @see https://eslint.style/rules/jsx
|
|
4425
|
+
* @see https://eslint.style/rules/jsx-first-prop-new-line
|
|
4411
4426
|
*/
|
|
4412
4427
|
'style/jsx-first-prop-new-line'?: Linter.RuleEntry<StyleJsxFirstPropNewLine>;
|
|
4413
4428
|
/**
|
|
4414
4429
|
* Enforce line breaks before and after JSX elements when they are used as arguments to a function.
|
|
4415
|
-
* @see https://eslint.style/rules/jsx
|
|
4430
|
+
* @see https://eslint.style/rules/jsx-function-call-newline
|
|
4416
4431
|
*/
|
|
4417
4432
|
'style/jsx-function-call-newline'?: Linter.RuleEntry<StyleJsxFunctionCallNewline>;
|
|
4418
4433
|
/**
|
|
4419
4434
|
* Enforce JSX indentation. Deprecated, use `indent` rule instead.
|
|
4420
|
-
* @see https://eslint.style/rules/jsx
|
|
4435
|
+
* @see https://eslint.style/rules/jsx-indent
|
|
4421
4436
|
* @deprecated
|
|
4422
4437
|
*/
|
|
4423
4438
|
'style/jsx-indent'?: Linter.RuleEntry<StyleJsxIndent>;
|
|
4424
4439
|
/**
|
|
4425
4440
|
* Enforce props indentation in JSX
|
|
4426
|
-
* @see https://eslint.style/rules/jsx
|
|
4441
|
+
* @see https://eslint.style/rules/jsx-indent-props
|
|
4427
4442
|
*/
|
|
4428
4443
|
'style/jsx-indent-props'?: Linter.RuleEntry<StyleJsxIndentProps>;
|
|
4429
4444
|
/**
|
|
4430
4445
|
* Enforce maximum of props on a single line in JSX
|
|
4431
|
-
* @see https://eslint.style/rules/jsx
|
|
4446
|
+
* @see https://eslint.style/rules/jsx-max-props-per-line
|
|
4432
4447
|
*/
|
|
4433
4448
|
'style/jsx-max-props-per-line'?: Linter.RuleEntry<StyleJsxMaxPropsPerLine>;
|
|
4434
4449
|
/**
|
|
4435
4450
|
* Require or prevent a new line after jsx elements and expressions.
|
|
4436
|
-
* @see https://eslint.style/rules/jsx
|
|
4451
|
+
* @see https://eslint.style/rules/jsx-newline
|
|
4437
4452
|
*/
|
|
4438
4453
|
'style/jsx-newline'?: Linter.RuleEntry<StyleJsxNewline>;
|
|
4439
4454
|
/**
|
|
4440
4455
|
* Require one JSX element per line
|
|
4441
|
-
* @see https://eslint.style/rules/jsx
|
|
4456
|
+
* @see https://eslint.style/rules/jsx-one-expression-per-line
|
|
4442
4457
|
*/
|
|
4443
4458
|
'style/jsx-one-expression-per-line'?: Linter.RuleEntry<StyleJsxOneExpressionPerLine>;
|
|
4444
4459
|
/**
|
|
4445
4460
|
* Enforce PascalCase for user-defined JSX components
|
|
4446
|
-
* @see https://eslint.style/rules/jsx
|
|
4461
|
+
* @see https://eslint.style/rules/jsx-pascal-case
|
|
4447
4462
|
*/
|
|
4448
4463
|
'style/jsx-pascal-case'?: Linter.RuleEntry<StyleJsxPascalCase>;
|
|
4449
4464
|
/**
|
|
4450
4465
|
* Disallow multiple spaces between inline JSX props
|
|
4451
|
-
* @see https://eslint.style/rules/jsx
|
|
4466
|
+
* @see https://eslint.style/rules/jsx-props-no-multi-spaces
|
|
4452
4467
|
*/
|
|
4453
4468
|
'style/jsx-props-no-multi-spaces'?: Linter.RuleEntry<[]>;
|
|
4454
4469
|
/**
|
|
4455
4470
|
* Enforce the consistent use of either double or single quotes in JSX attributes
|
|
4456
|
-
* @see https://eslint.style/rules/
|
|
4471
|
+
* @see https://eslint.style/rules/jsx-quotes
|
|
4457
4472
|
*/
|
|
4458
4473
|
'style/jsx-quotes'?: Linter.RuleEntry<StyleJsxQuotes>;
|
|
4459
4474
|
/**
|
|
4460
4475
|
* Disallow extra closing tags for components without children
|
|
4461
|
-
* @see https://eslint.style/rules/jsx
|
|
4476
|
+
* @see https://eslint.style/rules/jsx-self-closing-comp
|
|
4462
4477
|
*/
|
|
4463
4478
|
'style/jsx-self-closing-comp'?: Linter.RuleEntry<StyleJsxSelfClosingComp>;
|
|
4464
4479
|
/**
|
|
4465
4480
|
* Enforce props alphabetical sorting
|
|
4466
|
-
* @see https://eslint.style/rules/jsx
|
|
4481
|
+
* @see https://eslint.style/rules/jsx-sort-props
|
|
4467
4482
|
*/
|
|
4468
4483
|
'style/jsx-sort-props'?: Linter.RuleEntry<StyleJsxSortProps>;
|
|
4469
4484
|
/**
|
|
4470
4485
|
* Enforce whitespace in and around the JSX opening and closing brackets
|
|
4471
|
-
* @see https://eslint.style/rules/jsx
|
|
4486
|
+
* @see https://eslint.style/rules/jsx-tag-spacing
|
|
4472
4487
|
*/
|
|
4473
4488
|
'style/jsx-tag-spacing'?: Linter.RuleEntry<StyleJsxTagSpacing>;
|
|
4474
4489
|
/**
|
|
4475
4490
|
* Disallow missing parentheses around multiline JSX
|
|
4476
|
-
* @see https://eslint.style/rules/jsx
|
|
4491
|
+
* @see https://eslint.style/rules/jsx-wrap-multilines
|
|
4477
4492
|
*/
|
|
4478
4493
|
'style/jsx-wrap-multilines'?: Linter.RuleEntry<StyleJsxWrapMultilines>;
|
|
4479
4494
|
/**
|
|
4480
4495
|
* Enforce consistent spacing between property names and type annotations in types and interfaces
|
|
4481
|
-
* @see https://eslint.style/rules/
|
|
4496
|
+
* @see https://eslint.style/rules/key-spacing
|
|
4482
4497
|
*/
|
|
4483
4498
|
'style/key-spacing'?: Linter.RuleEntry<StyleKeySpacing>;
|
|
4484
4499
|
/**
|
|
4485
4500
|
* Enforce consistent spacing before and after keywords
|
|
4486
|
-
* @see https://eslint.style/rules/
|
|
4501
|
+
* @see https://eslint.style/rules/keyword-spacing
|
|
4487
4502
|
*/
|
|
4488
4503
|
'style/keyword-spacing'?: Linter.RuleEntry<StyleKeywordSpacing>;
|
|
4489
4504
|
/**
|
|
4490
4505
|
* Enforce position of line comments
|
|
4491
|
-
* @see https://eslint.style/rules/
|
|
4506
|
+
* @see https://eslint.style/rules/line-comment-position
|
|
4492
4507
|
*/
|
|
4493
4508
|
'style/line-comment-position'?: Linter.RuleEntry<StyleLineCommentPosition>;
|
|
4494
4509
|
/**
|
|
4495
4510
|
* Enforce consistent linebreak style
|
|
4496
|
-
* @see https://eslint.style/rules/
|
|
4511
|
+
* @see https://eslint.style/rules/linebreak-style
|
|
4497
4512
|
*/
|
|
4498
4513
|
'style/linebreak-style'?: Linter.RuleEntry<StyleLinebreakStyle>;
|
|
4499
4514
|
/**
|
|
4500
4515
|
* Require empty lines around comments
|
|
4501
|
-
* @see https://eslint.style/rules/
|
|
4516
|
+
* @see https://eslint.style/rules/lines-around-comment
|
|
4502
4517
|
*/
|
|
4503
4518
|
'style/lines-around-comment'?: Linter.RuleEntry<StyleLinesAroundComment>;
|
|
4504
4519
|
/**
|
|
4505
4520
|
* Require or disallow an empty line between class members
|
|
4506
|
-
* @see https://eslint.style/rules/
|
|
4521
|
+
* @see https://eslint.style/rules/lines-between-class-members
|
|
4507
4522
|
*/
|
|
4508
4523
|
'style/lines-between-class-members'?: Linter.RuleEntry<StyleLinesBetweenClassMembers>;
|
|
4509
4524
|
/**
|
|
4510
4525
|
* Enforce a maximum line length
|
|
4511
|
-
* @see https://eslint.style/rules/
|
|
4526
|
+
* @see https://eslint.style/rules/max-len
|
|
4512
4527
|
*/
|
|
4513
4528
|
'style/max-len'?: Linter.RuleEntry<StyleMaxLen>;
|
|
4514
4529
|
/**
|
|
4515
4530
|
* Enforce a maximum number of statements allowed per line
|
|
4516
|
-
* @see https://eslint.style/rules/
|
|
4531
|
+
* @see https://eslint.style/rules/max-statements-per-line
|
|
4517
4532
|
*/
|
|
4518
4533
|
'style/max-statements-per-line'?: Linter.RuleEntry<StyleMaxStatementsPerLine>;
|
|
4519
4534
|
/**
|
|
4520
4535
|
* Require a specific member delimiter style for interfaces and type literals
|
|
4521
|
-
* @see https://eslint.style/rules/
|
|
4536
|
+
* @see https://eslint.style/rules/member-delimiter-style
|
|
4522
4537
|
*/
|
|
4523
4538
|
'style/member-delimiter-style'?: Linter.RuleEntry<StyleMemberDelimiterStyle>;
|
|
4524
4539
|
/**
|
|
4525
4540
|
* Enforce a particular style for multiline comments
|
|
4526
|
-
* @see https://eslint.style/rules/
|
|
4541
|
+
* @see https://eslint.style/rules/multiline-comment-style
|
|
4527
4542
|
*/
|
|
4528
4543
|
'style/multiline-comment-style'?: Linter.RuleEntry<StyleMultilineCommentStyle>;
|
|
4529
4544
|
/**
|
|
4530
4545
|
* Enforce newlines between operands of ternary expressions
|
|
4531
|
-
* @see https://eslint.style/rules/
|
|
4546
|
+
* @see https://eslint.style/rules/multiline-ternary
|
|
4532
4547
|
*/
|
|
4533
4548
|
'style/multiline-ternary'?: Linter.RuleEntry<StyleMultilineTernary>;
|
|
4534
4549
|
/**
|
|
4535
4550
|
* Enforce or disallow parentheses when invoking a constructor with no arguments
|
|
4536
|
-
* @see https://eslint.style/rules/
|
|
4551
|
+
* @see https://eslint.style/rules/new-parens
|
|
4537
4552
|
*/
|
|
4538
4553
|
'style/new-parens'?: Linter.RuleEntry<StyleNewParens>;
|
|
4539
4554
|
/**
|
|
4540
4555
|
* Require a newline after each call in a method chain
|
|
4541
|
-
* @see https://eslint.style/rules/
|
|
4556
|
+
* @see https://eslint.style/rules/newline-per-chained-call
|
|
4542
4557
|
*/
|
|
4543
4558
|
'style/newline-per-chained-call'?: Linter.RuleEntry<StyleNewlinePerChainedCall>;
|
|
4544
4559
|
/**
|
|
4545
4560
|
* Disallow arrow functions where they could be confused with comparisons
|
|
4546
|
-
* @see https://eslint.style/rules/
|
|
4561
|
+
* @see https://eslint.style/rules/no-confusing-arrow
|
|
4547
4562
|
*/
|
|
4548
4563
|
'style/no-confusing-arrow'?: Linter.RuleEntry<StyleNoConfusingArrow>;
|
|
4549
4564
|
/**
|
|
4550
4565
|
* Disallow unnecessary parentheses
|
|
4551
|
-
* @see https://eslint.style/rules/
|
|
4566
|
+
* @see https://eslint.style/rules/no-extra-parens
|
|
4552
4567
|
*/
|
|
4553
4568
|
'style/no-extra-parens'?: Linter.RuleEntry<StyleNoExtraParens>;
|
|
4554
4569
|
/**
|
|
4555
4570
|
* Disallow unnecessary semicolons
|
|
4556
|
-
* @see https://eslint.style/rules/
|
|
4571
|
+
* @see https://eslint.style/rules/no-extra-semi
|
|
4557
4572
|
*/
|
|
4558
4573
|
'style/no-extra-semi'?: Linter.RuleEntry<[]>;
|
|
4559
4574
|
/**
|
|
4560
4575
|
* Disallow leading or trailing decimal points in numeric literals
|
|
4561
|
-
* @see https://eslint.style/rules/
|
|
4576
|
+
* @see https://eslint.style/rules/no-floating-decimal
|
|
4562
4577
|
*/
|
|
4563
4578
|
'style/no-floating-decimal'?: Linter.RuleEntry<[]>;
|
|
4564
4579
|
/**
|
|
4565
4580
|
* Disallow mixed binary operators
|
|
4566
|
-
* @see https://eslint.style/rules/
|
|
4581
|
+
* @see https://eslint.style/rules/no-mixed-operators
|
|
4567
4582
|
*/
|
|
4568
4583
|
'style/no-mixed-operators'?: Linter.RuleEntry<StyleNoMixedOperators>;
|
|
4569
4584
|
/**
|
|
4570
4585
|
* Disallow mixed spaces and tabs for indentation
|
|
4571
|
-
* @see https://eslint.style/rules/
|
|
4586
|
+
* @see https://eslint.style/rules/no-mixed-spaces-and-tabs
|
|
4572
4587
|
*/
|
|
4573
4588
|
'style/no-mixed-spaces-and-tabs'?: Linter.RuleEntry<StyleNoMixedSpacesAndTabs>;
|
|
4574
4589
|
/**
|
|
4575
4590
|
* Disallow multiple spaces
|
|
4576
|
-
* @see https://eslint.style/rules/
|
|
4591
|
+
* @see https://eslint.style/rules/no-multi-spaces
|
|
4577
4592
|
*/
|
|
4578
4593
|
'style/no-multi-spaces'?: Linter.RuleEntry<StyleNoMultiSpaces>;
|
|
4579
4594
|
/**
|
|
4580
4595
|
* Disallow multiple empty lines
|
|
4581
|
-
* @see https://eslint.style/rules/
|
|
4596
|
+
* @see https://eslint.style/rules/no-multiple-empty-lines
|
|
4582
4597
|
*/
|
|
4583
4598
|
'style/no-multiple-empty-lines'?: Linter.RuleEntry<StyleNoMultipleEmptyLines>;
|
|
4584
4599
|
/**
|
|
4585
4600
|
* Disallow all tabs
|
|
4586
|
-
* @see https://eslint.style/rules/
|
|
4601
|
+
* @see https://eslint.style/rules/no-tabs
|
|
4587
4602
|
*/
|
|
4588
4603
|
'style/no-tabs'?: Linter.RuleEntry<StyleNoTabs>;
|
|
4589
4604
|
/**
|
|
4590
4605
|
* Disallow trailing whitespace at the end of lines
|
|
4591
|
-
* @see https://eslint.style/rules/
|
|
4606
|
+
* @see https://eslint.style/rules/no-trailing-spaces
|
|
4592
4607
|
*/
|
|
4593
4608
|
'style/no-trailing-spaces'?: Linter.RuleEntry<StyleNoTrailingSpaces>;
|
|
4594
4609
|
/**
|
|
4595
4610
|
* Disallow whitespace before properties
|
|
4596
|
-
* @see https://eslint.style/rules/
|
|
4611
|
+
* @see https://eslint.style/rules/no-whitespace-before-property
|
|
4597
4612
|
*/
|
|
4598
4613
|
'style/no-whitespace-before-property'?: Linter.RuleEntry<[]>;
|
|
4599
4614
|
/**
|
|
4600
4615
|
* Enforce the location of single-line statements
|
|
4601
|
-
* @see https://eslint.style/rules/
|
|
4616
|
+
* @see https://eslint.style/rules/nonblock-statement-body-position
|
|
4602
4617
|
*/
|
|
4603
4618
|
'style/nonblock-statement-body-position'?: Linter.RuleEntry<StyleNonblockStatementBodyPosition>;
|
|
4604
4619
|
/**
|
|
4605
4620
|
* Enforce consistent line breaks after opening and before closing braces
|
|
4606
|
-
* @see https://eslint.style/rules/
|
|
4621
|
+
* @see https://eslint.style/rules/object-curly-newline
|
|
4607
4622
|
*/
|
|
4608
4623
|
'style/object-curly-newline'?: Linter.RuleEntry<StyleObjectCurlyNewline>;
|
|
4609
4624
|
/**
|
|
4610
4625
|
* Enforce consistent spacing inside braces
|
|
4611
|
-
* @see https://eslint.style/rules/
|
|
4626
|
+
* @see https://eslint.style/rules/object-curly-spacing
|
|
4612
4627
|
*/
|
|
4613
4628
|
'style/object-curly-spacing'?: Linter.RuleEntry<StyleObjectCurlySpacing>;
|
|
4614
4629
|
/**
|
|
4615
4630
|
* Enforce placing object properties on separate lines
|
|
4616
|
-
* @see https://eslint.style/rules/
|
|
4631
|
+
* @see https://eslint.style/rules/object-property-newline
|
|
4617
4632
|
*/
|
|
4618
4633
|
'style/object-property-newline'?: Linter.RuleEntry<StyleObjectPropertyNewline>;
|
|
4619
4634
|
/**
|
|
4620
4635
|
* Require or disallow newlines around variable declarations
|
|
4621
|
-
* @see https://eslint.style/rules/
|
|
4636
|
+
* @see https://eslint.style/rules/one-var-declaration-per-line
|
|
4622
4637
|
*/
|
|
4623
4638
|
'style/one-var-declaration-per-line'?: Linter.RuleEntry<StyleOneVarDeclarationPerLine>;
|
|
4624
4639
|
/**
|
|
4625
4640
|
* Enforce consistent linebreak style for operators
|
|
4626
|
-
* @see https://eslint.style/rules/
|
|
4641
|
+
* @see https://eslint.style/rules/operator-linebreak
|
|
4627
4642
|
*/
|
|
4628
4643
|
'style/operator-linebreak'?: Linter.RuleEntry<StyleOperatorLinebreak>;
|
|
4629
4644
|
/**
|
|
4630
4645
|
* Require or disallow padding within blocks
|
|
4631
|
-
* @see https://eslint.style/rules/
|
|
4646
|
+
* @see https://eslint.style/rules/padded-blocks
|
|
4632
4647
|
*/
|
|
4633
4648
|
'style/padded-blocks'?: Linter.RuleEntry<StylePaddedBlocks>;
|
|
4634
4649
|
/**
|
|
4635
4650
|
* Require or disallow padding lines between statements
|
|
4636
|
-
* @see https://eslint.style/rules/
|
|
4651
|
+
* @see https://eslint.style/rules/padding-line-between-statements
|
|
4637
4652
|
*/
|
|
4638
4653
|
'style/padding-line-between-statements'?: Linter.RuleEntry<StylePaddingLineBetweenStatements>;
|
|
4639
4654
|
/**
|
|
4640
4655
|
* Require quotes around object literal, type literal, interfaces and enums property names
|
|
4641
|
-
* @see https://eslint.style/rules/
|
|
4656
|
+
* @see https://eslint.style/rules/quote-props
|
|
4642
4657
|
*/
|
|
4643
4658
|
'style/quote-props'?: Linter.RuleEntry<StyleQuoteProps>;
|
|
4644
4659
|
/**
|
|
4645
4660
|
* Enforce the consistent use of either backticks, double, or single quotes
|
|
4646
|
-
* @see https://eslint.style/rules/
|
|
4661
|
+
* @see https://eslint.style/rules/quotes
|
|
4647
4662
|
*/
|
|
4648
4663
|
'style/quotes'?: Linter.RuleEntry<StyleQuotes>;
|
|
4649
4664
|
/**
|
|
4650
4665
|
* Enforce spacing between rest and spread operators and their expressions
|
|
4651
|
-
* @see https://eslint.style/rules/
|
|
4666
|
+
* @see https://eslint.style/rules/rest-spread-spacing
|
|
4652
4667
|
*/
|
|
4653
4668
|
'style/rest-spread-spacing'?: Linter.RuleEntry<StyleRestSpreadSpacing>;
|
|
4654
4669
|
/**
|
|
4655
4670
|
* Require or disallow semicolons instead of ASI
|
|
4656
|
-
* @see https://eslint.style/rules/
|
|
4671
|
+
* @see https://eslint.style/rules/semi
|
|
4657
4672
|
*/
|
|
4658
4673
|
'style/semi'?: Linter.RuleEntry<StyleSemi>;
|
|
4659
4674
|
/**
|
|
4660
4675
|
* Enforce consistent spacing before and after semicolons
|
|
4661
|
-
* @see https://eslint.style/rules/
|
|
4676
|
+
* @see https://eslint.style/rules/semi-spacing
|
|
4662
4677
|
*/
|
|
4663
4678
|
'style/semi-spacing'?: Linter.RuleEntry<StyleSemiSpacing>;
|
|
4664
4679
|
/**
|
|
4665
4680
|
* Enforce location of semicolons
|
|
4666
|
-
* @see https://eslint.style/rules/
|
|
4681
|
+
* @see https://eslint.style/rules/semi-style
|
|
4667
4682
|
*/
|
|
4668
4683
|
'style/semi-style'?: Linter.RuleEntry<StyleSemiStyle>;
|
|
4669
4684
|
/**
|
|
4670
4685
|
* Enforce consistent spacing before blocks
|
|
4671
|
-
* @see https://eslint.style/rules/
|
|
4686
|
+
* @see https://eslint.style/rules/space-before-blocks
|
|
4672
4687
|
*/
|
|
4673
4688
|
'style/space-before-blocks'?: Linter.RuleEntry<StyleSpaceBeforeBlocks>;
|
|
4674
4689
|
/**
|
|
4675
4690
|
* Enforce consistent spacing before function parenthesis
|
|
4676
|
-
* @see https://eslint.style/rules/
|
|
4691
|
+
* @see https://eslint.style/rules/space-before-function-paren
|
|
4677
4692
|
*/
|
|
4678
4693
|
'style/space-before-function-paren'?: Linter.RuleEntry<StyleSpaceBeforeFunctionParen>;
|
|
4679
4694
|
/**
|
|
4680
4695
|
* Enforce consistent spacing inside parentheses
|
|
4681
|
-
* @see https://eslint.style/rules/
|
|
4696
|
+
* @see https://eslint.style/rules/space-in-parens
|
|
4682
4697
|
*/
|
|
4683
4698
|
'style/space-in-parens'?: Linter.RuleEntry<StyleSpaceInParens>;
|
|
4684
4699
|
/**
|
|
4685
4700
|
* Require spacing around infix operators
|
|
4686
|
-
* @see https://eslint.style/rules/
|
|
4701
|
+
* @see https://eslint.style/rules/space-infix-ops
|
|
4687
4702
|
*/
|
|
4688
4703
|
'style/space-infix-ops'?: Linter.RuleEntry<StyleSpaceInfixOps>;
|
|
4689
4704
|
/**
|
|
4690
4705
|
* Enforce consistent spacing before or after unary operators
|
|
4691
|
-
* @see https://eslint.style/rules/
|
|
4706
|
+
* @see https://eslint.style/rules/space-unary-ops
|
|
4692
4707
|
*/
|
|
4693
4708
|
'style/space-unary-ops'?: Linter.RuleEntry<StyleSpaceUnaryOps>;
|
|
4694
4709
|
/**
|
|
4695
4710
|
* Enforce consistent spacing after the `//` or `/*` in a comment
|
|
4696
|
-
* @see https://eslint.style/rules/
|
|
4711
|
+
* @see https://eslint.style/rules/spaced-comment
|
|
4697
4712
|
*/
|
|
4698
4713
|
'style/spaced-comment'?: Linter.RuleEntry<StyleSpacedComment>;
|
|
4699
4714
|
/**
|
|
4700
4715
|
* Enforce spacing around colons of switch statements
|
|
4701
|
-
* @see https://eslint.style/rules/
|
|
4716
|
+
* @see https://eslint.style/rules/switch-colon-spacing
|
|
4702
4717
|
*/
|
|
4703
4718
|
'style/switch-colon-spacing'?: Linter.RuleEntry<StyleSwitchColonSpacing>;
|
|
4704
4719
|
/**
|
|
4705
4720
|
* Require or disallow spacing around embedded expressions of template strings
|
|
4706
|
-
* @see https://eslint.style/rules/
|
|
4721
|
+
* @see https://eslint.style/rules/template-curly-spacing
|
|
4707
4722
|
*/
|
|
4708
4723
|
'style/template-curly-spacing'?: Linter.RuleEntry<StyleTemplateCurlySpacing>;
|
|
4709
4724
|
/**
|
|
4710
4725
|
* Require or disallow spacing between template tags and their literals
|
|
4711
|
-
* @see https://eslint.style/rules/
|
|
4726
|
+
* @see https://eslint.style/rules/template-tag-spacing
|
|
4712
4727
|
*/
|
|
4713
4728
|
'style/template-tag-spacing'?: Linter.RuleEntry<StyleTemplateTagSpacing>;
|
|
4714
4729
|
/**
|
|
4715
4730
|
* Require consistent spacing around type annotations
|
|
4716
|
-
* @see https://eslint.style/rules/
|
|
4731
|
+
* @see https://eslint.style/rules/type-annotation-spacing
|
|
4717
4732
|
*/
|
|
4718
4733
|
'style/type-annotation-spacing'?: Linter.RuleEntry<StyleTypeAnnotationSpacing>;
|
|
4719
4734
|
/**
|
|
4720
4735
|
* Enforces consistent spacing inside TypeScript type generics
|
|
4721
|
-
* @see https://eslint.style/rules/
|
|
4736
|
+
* @see https://eslint.style/rules/type-generic-spacing
|
|
4722
4737
|
*/
|
|
4723
4738
|
'style/type-generic-spacing'?: Linter.RuleEntry<[]>;
|
|
4724
4739
|
/**
|
|
4725
4740
|
* Expect space before the type declaration in the named tuple
|
|
4726
|
-
* @see https://eslint.style/rules/
|
|
4741
|
+
* @see https://eslint.style/rules/type-named-tuple-spacing
|
|
4727
4742
|
*/
|
|
4728
4743
|
'style/type-named-tuple-spacing'?: Linter.RuleEntry<[]>;
|
|
4729
4744
|
/**
|
|
4730
4745
|
* Require parentheses around immediate `function` invocations
|
|
4731
|
-
* @see https://eslint.style/rules/
|
|
4746
|
+
* @see https://eslint.style/rules/wrap-iife
|
|
4732
4747
|
*/
|
|
4733
4748
|
'style/wrap-iife'?: Linter.RuleEntry<StyleWrapIife>;
|
|
4734
4749
|
/**
|
|
4735
4750
|
* Require parenthesis around regex literals
|
|
4736
|
-
* @see https://eslint.style/rules/
|
|
4751
|
+
* @see https://eslint.style/rules/wrap-regex
|
|
4737
4752
|
*/
|
|
4738
4753
|
'style/wrap-regex'?: Linter.RuleEntry<[]>;
|
|
4739
4754
|
/**
|
|
4740
4755
|
* Require or disallow spacing around the `*` in `yield*` expressions
|
|
4741
|
-
* @see https://eslint.style/rules/
|
|
4756
|
+
* @see https://eslint.style/rules/yield-star-spacing
|
|
4742
4757
|
*/
|
|
4743
4758
|
'style/yield-star-spacing'?: Linter.RuleEntry<StyleYieldStarSpacing>;
|
|
4744
4759
|
/**
|
|
@@ -4814,6 +4829,11 @@ interface RuleOptions {
|
|
|
4814
4829
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/consistent-test-it.md
|
|
4815
4830
|
*/
|
|
4816
4831
|
'test/consistent-test-it'?: Linter.RuleEntry<TestConsistentTestIt>;
|
|
4832
|
+
/**
|
|
4833
|
+
* enforce using vitest or vi but not both
|
|
4834
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/consistent-vitest-vi.md
|
|
4835
|
+
*/
|
|
4836
|
+
'test/consistent-vitest-vi'?: Linter.RuleEntry<TestConsistentVitestVi>;
|
|
4817
4837
|
/**
|
|
4818
4838
|
* enforce having expectation in test body
|
|
4819
4839
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/expect-expect.md
|
|
@@ -4890,6 +4910,11 @@ interface RuleOptions {
|
|
|
4890
4910
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-import-node-test.md
|
|
4891
4911
|
*/
|
|
4892
4912
|
'test/no-import-node-test'?: Linter.RuleEntry<[]>;
|
|
4913
|
+
/**
|
|
4914
|
+
* disallow importing Vitest globals
|
|
4915
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-importing-vitest-globals.md
|
|
4916
|
+
*/
|
|
4917
|
+
'test/no-importing-vitest-globals'?: Linter.RuleEntry<[]>;
|
|
4893
4918
|
/**
|
|
4894
4919
|
* disallow string interpolation in snapshots
|
|
4895
4920
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-interpolation-in-snapshots.md
|
|
@@ -4921,7 +4946,7 @@ interface RuleOptions {
|
|
|
4921
4946
|
*/
|
|
4922
4947
|
'test/no-standalone-expect'?: Linter.RuleEntry<TestNoStandaloneExpect>;
|
|
4923
4948
|
/**
|
|
4924
|
-
*
|
|
4949
|
+
* disallow using the `f` and `x` prefixes in favour of `.only` and `.skip`
|
|
4925
4950
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-test-prefixes.md
|
|
4926
4951
|
*/
|
|
4927
4952
|
'test/no-test-prefixes'?: Linter.RuleEntry<[]>;
|
|
@@ -4970,6 +4995,16 @@ interface RuleOptions {
|
|
|
4970
4995
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-test-blocks.md
|
|
4971
4996
|
*/
|
|
4972
4997
|
'test/padding-around-test-blocks'?: Linter.RuleEntry<[]>;
|
|
4998
|
+
/**
|
|
4999
|
+
* enforce using `toBeCalledOnce()` or `toHaveBeenCalledOnce()`
|
|
5000
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-called-once.md
|
|
5001
|
+
*/
|
|
5002
|
+
'test/prefer-called-once'?: Linter.RuleEntry<[]>;
|
|
5003
|
+
/**
|
|
5004
|
+
* enforce using `toBeCalledTimes(1)` or `toHaveBeenCalledTimes(1)`
|
|
5005
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-called-times.md
|
|
5006
|
+
*/
|
|
5007
|
+
'test/prefer-called-times'?: Linter.RuleEntry<[]>;
|
|
4973
5008
|
/**
|
|
4974
5009
|
* enforce using `toBeCalledWith()` or `toHaveBeenCalledWith()`
|
|
4975
5010
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-called-with.md
|
|
@@ -5015,6 +5050,11 @@ interface RuleOptions {
|
|
|
5015
5050
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-hooks-on-top.md
|
|
5016
5051
|
*/
|
|
5017
5052
|
'test/prefer-hooks-on-top'?: Linter.RuleEntry<[]>;
|
|
5053
|
+
/**
|
|
5054
|
+
* enforce importing Vitest globals
|
|
5055
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-importing-vitest-globals.md
|
|
5056
|
+
*/
|
|
5057
|
+
'test/prefer-importing-vitest-globals'?: Linter.RuleEntry<[]>;
|
|
5018
5058
|
/**
|
|
5019
5059
|
* enforce lowercase titles
|
|
5020
5060
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-lowercase-title.md
|
|
@@ -5130,6 +5170,11 @@ interface RuleOptions {
|
|
|
5130
5170
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/valid-title.md
|
|
5131
5171
|
*/
|
|
5132
5172
|
'test/valid-title'?: Linter.RuleEntry<TestValidTitle>;
|
|
5173
|
+
/**
|
|
5174
|
+
* disallow `.todo` usage
|
|
5175
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/warn-todo.md
|
|
5176
|
+
*/
|
|
5177
|
+
'test/warn-todo'?: Linter.RuleEntry<[]>;
|
|
5133
5178
|
/**
|
|
5134
5179
|
* enforce linebreaks after opening and before closing array brackets
|
|
5135
5180
|
* @see https://ota-meshi.github.io/eslint-plugin-toml/rules/array-bracket-newline.html
|
|
@@ -7227,7 +7272,7 @@ interface RuleOptions {
|
|
|
7227
7272
|
*/
|
|
7228
7273
|
'vue/no-restricted-custom-event'?: Linter.RuleEntry<VueNoRestrictedCustomEvent>;
|
|
7229
7274
|
/**
|
|
7230
|
-
* disallow specific
|
|
7275
|
+
* disallow specific elements
|
|
7231
7276
|
* @see https://eslint.vuejs.org/rules/no-restricted-html-elements.html
|
|
7232
7277
|
*/
|
|
7233
7278
|
'vue/no-restricted-html-elements'?: Linter.RuleEntry<VueNoRestrictedHtmlElements>;
|
|
@@ -8509,6 +8554,7 @@ type JsdocLinesBeforeBlock = [] | [{
|
|
|
8509
8554
|
checkBlockStarts?: boolean;
|
|
8510
8555
|
excludedTags?: string[];
|
|
8511
8556
|
ignoreSameLine?: boolean;
|
|
8557
|
+
ignoreSingleLines?: boolean;
|
|
8512
8558
|
lines?: number;
|
|
8513
8559
|
}];
|
|
8514
8560
|
// ----- jsdoc/match-description -----
|
|
@@ -8552,6 +8598,7 @@ type JsdocMultilineBlocks = [] | [{
|
|
|
8552
8598
|
noMultilineBlocks?: boolean;
|
|
8553
8599
|
noSingleLineBlocks?: boolean;
|
|
8554
8600
|
noZeroLineText?: boolean;
|
|
8601
|
+
requireSingleLineUnderCount?: number;
|
|
8555
8602
|
singleLineTags?: string[];
|
|
8556
8603
|
}];
|
|
8557
8604
|
// ----- jsdoc/no-bad-blocks -----
|
|
@@ -9509,14 +9556,34 @@ type MarkdownNoDuplicateDefinitions = [] | [{
|
|
|
9509
9556
|
allowDefinitions?: string[];
|
|
9510
9557
|
allowFootnoteDefinitions?: string[];
|
|
9511
9558
|
}];
|
|
9559
|
+
// ----- markdown/no-duplicate-headings -----
|
|
9560
|
+
type MarkdownNoDuplicateHeadings = [] | [{
|
|
9561
|
+
checkSiblingsOnly?: boolean;
|
|
9562
|
+
}];
|
|
9563
|
+
// ----- markdown/no-empty-definitions -----
|
|
9564
|
+
type MarkdownNoEmptyDefinitions = [] | [{
|
|
9565
|
+
allowDefinitions?: string[];
|
|
9566
|
+
allowFootnoteDefinitions?: string[];
|
|
9567
|
+
checkFootnoteDefinitions?: boolean;
|
|
9568
|
+
}];
|
|
9512
9569
|
// ----- markdown/no-html -----
|
|
9513
9570
|
type MarkdownNoHtml = [] | [{
|
|
9514
9571
|
allowed?: string[];
|
|
9515
9572
|
}];
|
|
9573
|
+
// ----- markdown/no-missing-link-fragments -----
|
|
9574
|
+
type MarkdownNoMissingLinkFragments = [] | [{
|
|
9575
|
+
ignoreCase?: boolean;
|
|
9576
|
+
allowPattern?: string;
|
|
9577
|
+
}];
|
|
9516
9578
|
// ----- markdown/no-multiple-h1 -----
|
|
9517
9579
|
type MarkdownNoMultipleH1 = [] | [{
|
|
9518
9580
|
frontmatterTitle?: string;
|
|
9519
9581
|
}];
|
|
9582
|
+
// ----- markdown/no-unused-definitions -----
|
|
9583
|
+
type MarkdownNoUnusedDefinitions = [] | [{
|
|
9584
|
+
allowDefinitions?: string[];
|
|
9585
|
+
allowFootnoteDefinitions?: string[];
|
|
9586
|
+
}];
|
|
9520
9587
|
// ----- max-classes-per-file -----
|
|
9521
9588
|
type MaxClassesPerFile = [] | [(number | {
|
|
9522
9589
|
ignoreExpressions?: boolean;
|
|
@@ -9680,6 +9747,7 @@ type NoConstantCondition = [] | [{
|
|
|
9680
9747
|
// ----- no-duplicate-imports -----
|
|
9681
9748
|
type NoDuplicateImports = [] | [{
|
|
9682
9749
|
includeExports?: boolean;
|
|
9750
|
+
allowSeparateTypeImports?: boolean;
|
|
9683
9751
|
}];
|
|
9684
9752
|
// ----- no-else-return -----
|
|
9685
9753
|
type NoElseReturn = [] | [{
|
|
@@ -10406,7 +10474,7 @@ type PerfectionistSortArrayIncludes = {
|
|
|
10406
10474
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10407
10475
|
groupKind?: ("mixed" | "literals-first" | "spreads-first");
|
|
10408
10476
|
customGroups?: ({
|
|
10409
|
-
newlinesInside?: ("always" | "never");
|
|
10477
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10410
10478
|
fallbackSort?: {
|
|
10411
10479
|
order?: ("asc" | "desc");
|
|
10412
10480
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10425,7 +10493,7 @@ type PerfectionistSortArrayIncludes = {
|
|
|
10425
10493
|
} | string));
|
|
10426
10494
|
}[];
|
|
10427
10495
|
} | {
|
|
10428
|
-
newlinesInside?: ("always" | "never");
|
|
10496
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10429
10497
|
fallbackSort?: {
|
|
10430
10498
|
order?: ("asc" | "desc");
|
|
10431
10499
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10474,9 +10542,9 @@ type PerfectionistSortArrayIncludes = {
|
|
|
10474
10542
|
} | string)));
|
|
10475
10543
|
});
|
|
10476
10544
|
partitionByNewLine?: boolean;
|
|
10477
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10545
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10478
10546
|
groups?: (string | string[] | {
|
|
10479
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10547
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10480
10548
|
commentAbove?: string;
|
|
10481
10549
|
})[];
|
|
10482
10550
|
}[];
|
|
@@ -10493,7 +10561,7 @@ type PerfectionistSortClasses = [] | [{
|
|
|
10493
10561
|
order?: ("asc" | "desc");
|
|
10494
10562
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10495
10563
|
customGroups?: ({
|
|
10496
|
-
newlinesInside?: ("always" | "never");
|
|
10564
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10497
10565
|
fallbackSort?: {
|
|
10498
10566
|
order?: ("asc" | "desc");
|
|
10499
10567
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10527,7 +10595,7 @@ type PerfectionistSortClasses = [] | [{
|
|
|
10527
10595
|
} | string));
|
|
10528
10596
|
}[];
|
|
10529
10597
|
} | {
|
|
10530
|
-
newlinesInside?: ("always" | "never");
|
|
10598
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10531
10599
|
fallbackSort?: {
|
|
10532
10600
|
order?: ("asc" | "desc");
|
|
10533
10601
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10589,9 +10657,9 @@ type PerfectionistSortClasses = [] | [{
|
|
|
10589
10657
|
} | string)));
|
|
10590
10658
|
});
|
|
10591
10659
|
partitionByNewLine?: boolean;
|
|
10592
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10660
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10593
10661
|
groups?: (string | string[] | {
|
|
10594
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10662
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10595
10663
|
commentAbove?: string;
|
|
10596
10664
|
})[];
|
|
10597
10665
|
}];
|
|
@@ -10638,7 +10706,7 @@ type PerfectionistSortDecorators = [] | [{
|
|
|
10638
10706
|
[k: string]: (string | string[]) | undefined;
|
|
10639
10707
|
};
|
|
10640
10708
|
groups?: (string | string[] | {
|
|
10641
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10709
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10642
10710
|
commentAbove?: string;
|
|
10643
10711
|
})[];
|
|
10644
10712
|
}];
|
|
@@ -10657,7 +10725,7 @@ type PerfectionistSortEnums = [] | [{
|
|
|
10657
10725
|
customGroups?: ({
|
|
10658
10726
|
[k: string]: (string | string[]) | undefined;
|
|
10659
10727
|
} | ({
|
|
10660
|
-
newlinesInside?: ("always" | "never");
|
|
10728
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10661
10729
|
fallbackSort?: {
|
|
10662
10730
|
order?: ("asc" | "desc");
|
|
10663
10731
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10682,7 +10750,7 @@ type PerfectionistSortEnums = [] | [{
|
|
|
10682
10750
|
} | string));
|
|
10683
10751
|
}[];
|
|
10684
10752
|
} | {
|
|
10685
|
-
newlinesInside?: ("always" | "never");
|
|
10753
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10686
10754
|
fallbackSort?: {
|
|
10687
10755
|
order?: ("asc" | "desc");
|
|
10688
10756
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10730,9 +10798,9 @@ type PerfectionistSortEnums = [] | [{
|
|
|
10730
10798
|
} | string)));
|
|
10731
10799
|
});
|
|
10732
10800
|
partitionByNewLine?: boolean;
|
|
10733
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10801
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10734
10802
|
groups?: (string | string[] | {
|
|
10735
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10803
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10736
10804
|
commentAbove?: string;
|
|
10737
10805
|
})[];
|
|
10738
10806
|
}];
|
|
@@ -10750,7 +10818,7 @@ type PerfectionistSortExports = {
|
|
|
10750
10818
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10751
10819
|
groupKind?: ("mixed" | "values-first" | "types-first");
|
|
10752
10820
|
customGroups?: ({
|
|
10753
|
-
newlinesInside?: ("always" | "never");
|
|
10821
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10754
10822
|
fallbackSort?: {
|
|
10755
10823
|
order?: ("asc" | "desc");
|
|
10756
10824
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10770,7 +10838,7 @@ type PerfectionistSortExports = {
|
|
|
10770
10838
|
} | string));
|
|
10771
10839
|
}[];
|
|
10772
10840
|
} | {
|
|
10773
|
-
newlinesInside?: ("always" | "never");
|
|
10841
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10774
10842
|
fallbackSort?: {
|
|
10775
10843
|
order?: ("asc" | "desc");
|
|
10776
10844
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10811,9 +10879,9 @@ type PerfectionistSortExports = {
|
|
|
10811
10879
|
} | string)));
|
|
10812
10880
|
});
|
|
10813
10881
|
partitionByNewLine?: boolean;
|
|
10814
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10882
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10815
10883
|
groups?: (string | string[] | {
|
|
10816
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10884
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10817
10885
|
commentAbove?: string;
|
|
10818
10886
|
})[];
|
|
10819
10887
|
}[];
|
|
@@ -10833,7 +10901,7 @@ type PerfectionistSortHeritageClauses = [] | [{
|
|
|
10833
10901
|
[k: string]: (string | string[]) | undefined;
|
|
10834
10902
|
};
|
|
10835
10903
|
groups?: (string | string[] | {
|
|
10836
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10904
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10837
10905
|
commentAbove?: string;
|
|
10838
10906
|
})[];
|
|
10839
10907
|
}];
|
|
@@ -10857,7 +10925,7 @@ type PerfectionistSortImports = {
|
|
|
10857
10925
|
[k: string]: (string | string[]) | undefined;
|
|
10858
10926
|
};
|
|
10859
10927
|
} | ({
|
|
10860
|
-
newlinesInside?: ("always" | "never");
|
|
10928
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10861
10929
|
fallbackSort?: {
|
|
10862
10930
|
order?: ("asc" | "desc");
|
|
10863
10931
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10884,7 +10952,7 @@ type PerfectionistSortImports = {
|
|
|
10884
10952
|
} | string));
|
|
10885
10953
|
}[];
|
|
10886
10954
|
} | {
|
|
10887
|
-
newlinesInside?: ("always" | "never");
|
|
10955
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10888
10956
|
fallbackSort?: {
|
|
10889
10957
|
order?: ("asc" | "desc");
|
|
10890
10958
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10940,7 +11008,7 @@ type PerfectionistSortImports = {
|
|
|
10940
11008
|
} | string)));
|
|
10941
11009
|
});
|
|
10942
11010
|
partitionByNewLine?: boolean;
|
|
10943
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
11011
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10944
11012
|
internalPattern?: (({
|
|
10945
11013
|
pattern: string;
|
|
10946
11014
|
flags?: string;
|
|
@@ -10949,7 +11017,7 @@ type PerfectionistSortImports = {
|
|
|
10949
11017
|
flags?: string;
|
|
10950
11018
|
} | string));
|
|
10951
11019
|
groups?: (string | string[] | {
|
|
10952
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
11020
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10953
11021
|
commentAbove?: string;
|
|
10954
11022
|
})[];
|
|
10955
11023
|
}[];
|
|
@@ -10969,7 +11037,7 @@ type PerfectionistSortInterfaces = {
|
|
|
10969
11037
|
customGroups?: ({
|
|
10970
11038
|
[k: string]: (string | string[]) | undefined;
|
|
10971
11039
|
} | ({
|
|
10972
|
-
newlinesInside?: ("always" | "never");
|
|
11040
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10973
11041
|
fallbackSort?: {
|
|
10974
11042
|
order?: ("asc" | "desc");
|
|
10975
11043
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10998,7 +11066,7 @@ type PerfectionistSortInterfaces = {
|
|
|
10998
11066
|
sortBy?: ("name" | "value");
|
|
10999
11067
|
}[];
|
|
11000
11068
|
} | {
|
|
11001
|
-
newlinesInside?: ("always" | "never");
|
|
11069
|
+
newlinesInside?: (("always" | "never") | number);
|
|
11002
11070
|
fallbackSort?: {
|
|
11003
11071
|
order?: ("asc" | "desc");
|
|
11004
11072
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -11065,7 +11133,7 @@ type PerfectionistSortInterfaces = {
|
|
|
11065
11133
|
} | string)));
|
|
11066
11134
|
});
|
|
11067
11135
|
partitionByNewLine?: boolean;
|
|
11068
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
11136
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11069
11137
|
ignorePattern?: (({
|
|
11070
11138
|
pattern: string;
|
|
11071
11139
|
flags?: string;
|
|
@@ -11075,7 +11143,7 @@ type PerfectionistSortInterfaces = {
|
|
|
11075
11143
|
} | string));
|
|
11076
11144
|
sortBy?: ("name" | "value");
|
|
11077
11145
|
groups?: (string | string[] | {
|
|
11078
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
11146
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11079
11147
|
commentAbove?: string;
|
|
11080
11148
|
})[];
|
|
11081
11149
|
}[];
|
|
@@ -11092,7 +11160,7 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
11092
11160
|
order?: ("asc" | "desc");
|
|
11093
11161
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11094
11162
|
customGroups?: ({
|
|
11095
|
-
newlinesInside?: ("always" | "never");
|
|
11163
|
+
newlinesInside?: (("always" | "never") | number);
|
|
11096
11164
|
fallbackSort?: {
|
|
11097
11165
|
order?: ("asc" | "desc");
|
|
11098
11166
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -11111,7 +11179,7 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
11111
11179
|
} | string));
|
|
11112
11180
|
}[];
|
|
11113
11181
|
} | {
|
|
11114
|
-
newlinesInside?: ("always" | "never");
|
|
11182
|
+
newlinesInside?: (("always" | "never") | number);
|
|
11115
11183
|
fallbackSort?: {
|
|
11116
11184
|
order?: ("asc" | "desc");
|
|
11117
11185
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -11151,9 +11219,9 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
11151
11219
|
} | string)));
|
|
11152
11220
|
});
|
|
11153
11221
|
partitionByNewLine?: boolean;
|
|
11154
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
11222
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11155
11223
|
groups?: (string | string[] | {
|
|
11156
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
11224
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11157
11225
|
commentAbove?: string;
|
|
11158
11226
|
})[];
|
|
11159
11227
|
}[];
|
|
@@ -11172,7 +11240,7 @@ type PerfectionistSortJsxProps = {
|
|
|
11172
11240
|
customGroups?: ({
|
|
11173
11241
|
[k: string]: (string | string[]) | undefined;
|
|
11174
11242
|
} | ({
|
|
11175
|
-
newlinesInside?: ("always" | "never");
|
|
11243
|
+
newlinesInside?: (("always" | "never") | number);
|
|
11176
11244
|
fallbackSort?: {
|
|
11177
11245
|
order?: ("asc" | "desc");
|
|
11178
11246
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -11199,7 +11267,7 @@ type PerfectionistSortJsxProps = {
|
|
|
11199
11267
|
} | string));
|
|
11200
11268
|
}[];
|
|
11201
11269
|
} | {
|
|
11202
|
-
newlinesInside?: ("always" | "never");
|
|
11270
|
+
newlinesInside?: (("always" | "never") | number);
|
|
11203
11271
|
fallbackSort?: {
|
|
11204
11272
|
order?: ("asc" | "desc");
|
|
11205
11273
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -11241,7 +11309,7 @@ type PerfectionistSortJsxProps = {
|
|
|
11241
11309
|
} | string));
|
|
11242
11310
|
};
|
|
11243
11311
|
partitionByNewLine?: boolean;
|
|
11244
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
11312
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11245
11313
|
ignorePattern?: (({
|
|
11246
11314
|
pattern: string;
|
|
11247
11315
|
flags?: string;
|
|
@@ -11250,7 +11318,7 @@ type PerfectionistSortJsxProps = {
|
|
|
11250
11318
|
flags?: string;
|
|
11251
11319
|
} | string));
|
|
11252
11320
|
groups?: (string | string[] | {
|
|
11253
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
11321
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11254
11322
|
commentAbove?: string;
|
|
11255
11323
|
})[];
|
|
11256
11324
|
}[];
|
|
@@ -11267,7 +11335,7 @@ type PerfectionistSortMaps = {
|
|
|
11267
11335
|
order?: ("asc" | "desc");
|
|
11268
11336
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11269
11337
|
customGroups?: ({
|
|
11270
|
-
newlinesInside?: ("always" | "never");
|
|
11338
|
+
newlinesInside?: (("always" | "never") | number);
|
|
11271
11339
|
fallbackSort?: {
|
|
11272
11340
|
order?: ("asc" | "desc");
|
|
11273
11341
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -11285,7 +11353,7 @@ type PerfectionistSortMaps = {
|
|
|
11285
11353
|
} | string));
|
|
11286
11354
|
}[];
|
|
11287
11355
|
} | {
|
|
11288
|
-
newlinesInside?: ("always" | "never");
|
|
11356
|
+
newlinesInside?: (("always" | "never") | number);
|
|
11289
11357
|
fallbackSort?: {
|
|
11290
11358
|
order?: ("asc" | "desc");
|
|
11291
11359
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -11333,9 +11401,9 @@ type PerfectionistSortMaps = {
|
|
|
11333
11401
|
} | string)));
|
|
11334
11402
|
});
|
|
11335
11403
|
partitionByNewLine?: boolean;
|
|
11336
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
11404
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11337
11405
|
groups?: (string | string[] | {
|
|
11338
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
11406
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11339
11407
|
commentAbove?: string;
|
|
11340
11408
|
})[];
|
|
11341
11409
|
}[];
|
|
@@ -11352,7 +11420,7 @@ type PerfectionistSortModules = [] | [{
|
|
|
11352
11420
|
order?: ("asc" | "desc");
|
|
11353
11421
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11354
11422
|
customGroups?: ({
|
|
11355
|
-
newlinesInside?: ("always" | "never");
|
|
11423
|
+
newlinesInside?: (("always" | "never") | number);
|
|
11356
11424
|
fallbackSort?: {
|
|
11357
11425
|
order?: ("asc" | "desc");
|
|
11358
11426
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -11379,7 +11447,7 @@ type PerfectionistSortModules = [] | [{
|
|
|
11379
11447
|
} | string));
|
|
11380
11448
|
}[];
|
|
11381
11449
|
} | {
|
|
11382
|
-
newlinesInside?: ("always" | "never");
|
|
11450
|
+
newlinesInside?: (("always" | "never") | number);
|
|
11383
11451
|
fallbackSort?: {
|
|
11384
11452
|
order?: ("asc" | "desc");
|
|
11385
11453
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -11427,9 +11495,9 @@ type PerfectionistSortModules = [] | [{
|
|
|
11427
11495
|
} | string)));
|
|
11428
11496
|
});
|
|
11429
11497
|
partitionByNewLine?: boolean;
|
|
11430
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
11498
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11431
11499
|
groups?: (string | string[] | {
|
|
11432
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
11500
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11433
11501
|
commentAbove?: string;
|
|
11434
11502
|
})[];
|
|
11435
11503
|
}];
|
|
@@ -11448,7 +11516,7 @@ type PerfectionistSortNamedExports = {
|
|
|
11448
11516
|
groupKind?: ("mixed" | "values-first" | "types-first");
|
|
11449
11517
|
ignoreAlias?: boolean;
|
|
11450
11518
|
customGroups?: ({
|
|
11451
|
-
newlinesInside?: ("always" | "never");
|
|
11519
|
+
newlinesInside?: (("always" | "never") | number);
|
|
11452
11520
|
fallbackSort?: {
|
|
11453
11521
|
order?: ("asc" | "desc");
|
|
11454
11522
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -11468,7 +11536,7 @@ type PerfectionistSortNamedExports = {
|
|
|
11468
11536
|
} | string));
|
|
11469
11537
|
}[];
|
|
11470
11538
|
} | {
|
|
11471
|
-
newlinesInside?: ("always" | "never");
|
|
11539
|
+
newlinesInside?: (("always" | "never") | number);
|
|
11472
11540
|
fallbackSort?: {
|
|
11473
11541
|
order?: ("asc" | "desc");
|
|
11474
11542
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -11509,9 +11577,9 @@ type PerfectionistSortNamedExports = {
|
|
|
11509
11577
|
} | string)));
|
|
11510
11578
|
});
|
|
11511
11579
|
partitionByNewLine?: boolean;
|
|
11512
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
11580
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11513
11581
|
groups?: (string | string[] | {
|
|
11514
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
11582
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11515
11583
|
commentAbove?: string;
|
|
11516
11584
|
})[];
|
|
11517
11585
|
}[];
|
|
@@ -11530,7 +11598,7 @@ type PerfectionistSortNamedImports = {
|
|
|
11530
11598
|
groupKind?: ("mixed" | "values-first" | "types-first");
|
|
11531
11599
|
ignoreAlias?: boolean;
|
|
11532
11600
|
customGroups?: ({
|
|
11533
|
-
newlinesInside?: ("always" | "never");
|
|
11601
|
+
newlinesInside?: (("always" | "never") | number);
|
|
11534
11602
|
fallbackSort?: {
|
|
11535
11603
|
order?: ("asc" | "desc");
|
|
11536
11604
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -11550,7 +11618,7 @@ type PerfectionistSortNamedImports = {
|
|
|
11550
11618
|
} | string));
|
|
11551
11619
|
}[];
|
|
11552
11620
|
} | {
|
|
11553
|
-
newlinesInside?: ("always" | "never");
|
|
11621
|
+
newlinesInside?: (("always" | "never") | number);
|
|
11554
11622
|
fallbackSort?: {
|
|
11555
11623
|
order?: ("asc" | "desc");
|
|
11556
11624
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -11591,9 +11659,9 @@ type PerfectionistSortNamedImports = {
|
|
|
11591
11659
|
} | string)));
|
|
11592
11660
|
});
|
|
11593
11661
|
partitionByNewLine?: boolean;
|
|
11594
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
11662
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11595
11663
|
groups?: (string | string[] | {
|
|
11596
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
11664
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11597
11665
|
commentAbove?: string;
|
|
11598
11666
|
})[];
|
|
11599
11667
|
}[];
|
|
@@ -11613,7 +11681,7 @@ type PerfectionistSortObjectTypes = {
|
|
|
11613
11681
|
customGroups?: ({
|
|
11614
11682
|
[k: string]: (string | string[]) | undefined;
|
|
11615
11683
|
} | ({
|
|
11616
|
-
newlinesInside?: ("always" | "never");
|
|
11684
|
+
newlinesInside?: (("always" | "never") | number);
|
|
11617
11685
|
fallbackSort?: {
|
|
11618
11686
|
order?: ("asc" | "desc");
|
|
11619
11687
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -11642,7 +11710,7 @@ type PerfectionistSortObjectTypes = {
|
|
|
11642
11710
|
sortBy?: ("name" | "value");
|
|
11643
11711
|
}[];
|
|
11644
11712
|
} | {
|
|
11645
|
-
newlinesInside?: ("always" | "never");
|
|
11713
|
+
newlinesInside?: (("always" | "never") | number);
|
|
11646
11714
|
fallbackSort?: {
|
|
11647
11715
|
order?: ("asc" | "desc");
|
|
11648
11716
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -11709,7 +11777,7 @@ type PerfectionistSortObjectTypes = {
|
|
|
11709
11777
|
} | string)));
|
|
11710
11778
|
});
|
|
11711
11779
|
partitionByNewLine?: boolean;
|
|
11712
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
11780
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11713
11781
|
ignorePattern?: (({
|
|
11714
11782
|
pattern: string;
|
|
11715
11783
|
flags?: string;
|
|
@@ -11719,7 +11787,7 @@ type PerfectionistSortObjectTypes = {
|
|
|
11719
11787
|
} | string));
|
|
11720
11788
|
sortBy?: ("name" | "value");
|
|
11721
11789
|
groups?: (string | string[] | {
|
|
11722
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
11790
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11723
11791
|
commentAbove?: string;
|
|
11724
11792
|
})[];
|
|
11725
11793
|
}[];
|
|
@@ -11741,7 +11809,7 @@ type PerfectionistSortObjects = {
|
|
|
11741
11809
|
customGroups?: ({
|
|
11742
11810
|
[k: string]: (string | string[]) | undefined;
|
|
11743
11811
|
} | ({
|
|
11744
|
-
newlinesInside?: ("always" | "never");
|
|
11812
|
+
newlinesInside?: (("always" | "never") | number);
|
|
11745
11813
|
fallbackSort?: {
|
|
11746
11814
|
order?: ("asc" | "desc");
|
|
11747
11815
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -11768,7 +11836,7 @@ type PerfectionistSortObjects = {
|
|
|
11768
11836
|
} | string));
|
|
11769
11837
|
}[];
|
|
11770
11838
|
} | {
|
|
11771
|
-
newlinesInside?: ("always" | "never");
|
|
11839
|
+
newlinesInside?: (("always" | "never") | number);
|
|
11772
11840
|
fallbackSort?: {
|
|
11773
11841
|
order?: ("asc" | "desc");
|
|
11774
11842
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -11835,7 +11903,7 @@ type PerfectionistSortObjects = {
|
|
|
11835
11903
|
} | string)));
|
|
11836
11904
|
});
|
|
11837
11905
|
partitionByNewLine?: boolean;
|
|
11838
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
11906
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11839
11907
|
ignorePattern?: (({
|
|
11840
11908
|
pattern: string;
|
|
11841
11909
|
flags?: string;
|
|
@@ -11844,7 +11912,7 @@ type PerfectionistSortObjects = {
|
|
|
11844
11912
|
flags?: string;
|
|
11845
11913
|
} | string));
|
|
11846
11914
|
groups?: (string | string[] | {
|
|
11847
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
11915
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11848
11916
|
commentAbove?: string;
|
|
11849
11917
|
})[];
|
|
11850
11918
|
}[];
|
|
@@ -11862,7 +11930,7 @@ type PerfectionistSortSets = {
|
|
|
11862
11930
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11863
11931
|
groupKind?: ("mixed" | "literals-first" | "spreads-first");
|
|
11864
11932
|
customGroups?: ({
|
|
11865
|
-
newlinesInside?: ("always" | "never");
|
|
11933
|
+
newlinesInside?: (("always" | "never") | number);
|
|
11866
11934
|
fallbackSort?: {
|
|
11867
11935
|
order?: ("asc" | "desc");
|
|
11868
11936
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -11881,7 +11949,7 @@ type PerfectionistSortSets = {
|
|
|
11881
11949
|
} | string));
|
|
11882
11950
|
}[];
|
|
11883
11951
|
} | {
|
|
11884
|
-
newlinesInside?: ("always" | "never");
|
|
11952
|
+
newlinesInside?: (("always" | "never") | number);
|
|
11885
11953
|
fallbackSort?: {
|
|
11886
11954
|
order?: ("asc" | "desc");
|
|
11887
11955
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -11930,9 +11998,9 @@ type PerfectionistSortSets = {
|
|
|
11930
11998
|
} | string)));
|
|
11931
11999
|
});
|
|
11932
12000
|
partitionByNewLine?: boolean;
|
|
11933
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
12001
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11934
12002
|
groups?: (string | string[] | {
|
|
11935
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
12003
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11936
12004
|
commentAbove?: string;
|
|
11937
12005
|
})[];
|
|
11938
12006
|
}[];
|
|
@@ -11962,7 +12030,7 @@ type PerfectionistSortUnionTypes = {
|
|
|
11962
12030
|
order?: ("asc" | "desc");
|
|
11963
12031
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11964
12032
|
customGroups?: ({
|
|
11965
|
-
newlinesInside?: ("always" | "never");
|
|
12033
|
+
newlinesInside?: (("always" | "never") | number);
|
|
11966
12034
|
fallbackSort?: {
|
|
11967
12035
|
order?: ("asc" | "desc");
|
|
11968
12036
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -11981,7 +12049,7 @@ type PerfectionistSortUnionTypes = {
|
|
|
11981
12049
|
} | string));
|
|
11982
12050
|
}[];
|
|
11983
12051
|
} | {
|
|
11984
|
-
newlinesInside?: ("always" | "never");
|
|
12052
|
+
newlinesInside?: (("always" | "never") | number);
|
|
11985
12053
|
fallbackSort?: {
|
|
11986
12054
|
order?: ("asc" | "desc");
|
|
11987
12055
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -12021,9 +12089,9 @@ type PerfectionistSortUnionTypes = {
|
|
|
12021
12089
|
} | string)));
|
|
12022
12090
|
});
|
|
12023
12091
|
partitionByNewLine?: boolean;
|
|
12024
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
12092
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
12025
12093
|
groups?: (string | string[] | {
|
|
12026
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
12094
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
12027
12095
|
commentAbove?: string;
|
|
12028
12096
|
})[];
|
|
12029
12097
|
}[];
|
|
@@ -12040,7 +12108,7 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
12040
12108
|
order?: ("asc" | "desc");
|
|
12041
12109
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12042
12110
|
customGroups?: ({
|
|
12043
|
-
newlinesInside?: ("always" | "never");
|
|
12111
|
+
newlinesInside?: (("always" | "never") | number);
|
|
12044
12112
|
fallbackSort?: {
|
|
12045
12113
|
order?: ("asc" | "desc");
|
|
12046
12114
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -12059,7 +12127,7 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
12059
12127
|
} | string));
|
|
12060
12128
|
}[];
|
|
12061
12129
|
} | {
|
|
12062
|
-
newlinesInside?: ("always" | "never");
|
|
12130
|
+
newlinesInside?: (("always" | "never") | number);
|
|
12063
12131
|
fallbackSort?: {
|
|
12064
12132
|
order?: ("asc" | "desc");
|
|
12065
12133
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -12099,9 +12167,9 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
12099
12167
|
} | string)));
|
|
12100
12168
|
});
|
|
12101
12169
|
partitionByNewLine?: boolean;
|
|
12102
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
12170
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
12103
12171
|
groups?: (string | string[] | {
|
|
12104
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
12172
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
12105
12173
|
commentAbove?: string;
|
|
12106
12174
|
})[];
|
|
12107
12175
|
}];
|
|
@@ -12586,16 +12654,6 @@ type StyleCurlyNewline = [] | [(("always" | "never") | {
|
|
|
12586
12654
|
minElements?: number;
|
|
12587
12655
|
consistent?: boolean;
|
|
12588
12656
|
});
|
|
12589
|
-
TSEnumBody?: (("always" | "never") | {
|
|
12590
|
-
multiline?: boolean;
|
|
12591
|
-
minElements?: number;
|
|
12592
|
-
consistent?: boolean;
|
|
12593
|
-
});
|
|
12594
|
-
TSInterfaceBody?: (("always" | "never") | {
|
|
12595
|
-
multiline?: boolean;
|
|
12596
|
-
minElements?: number;
|
|
12597
|
-
consistent?: boolean;
|
|
12598
|
-
});
|
|
12599
12657
|
TSModuleBlock?: (("always" | "never") | {
|
|
12600
12658
|
multiline?: boolean;
|
|
12601
12659
|
minElements?: number;
|
|
@@ -12609,14 +12667,6 @@ type StyleCurlyNewline = [] | [(("always" | "never") | {
|
|
|
12609
12667
|
type StyleDotLocation = [] | [("object" | "property")];
|
|
12610
12668
|
// ----- style/eol-last -----
|
|
12611
12669
|
type StyleEolLast = [] | [("always" | "never" | "unix" | "windows")];
|
|
12612
|
-
// ----- style/func-call-spacing -----
|
|
12613
|
-
type StyleFuncCallSpacing = ([] | ["never"] | [] | ["always"] | ["always", {
|
|
12614
|
-
allowNewlines?: boolean;
|
|
12615
|
-
optionalChain?: {
|
|
12616
|
-
before?: boolean;
|
|
12617
|
-
after?: boolean;
|
|
12618
|
-
};
|
|
12619
|
-
}]);
|
|
12620
12670
|
// ----- style/function-call-argument-newline -----
|
|
12621
12671
|
type StyleFunctionCallArgumentNewline = [] | [("always" | "never" | "consistent")];
|
|
12622
12672
|
// ----- style/function-call-spacing -----
|
|
@@ -12657,6 +12707,7 @@ type StyleIndent = [] | [("tab" | number)] | [("tab" | number), {
|
|
|
12657
12707
|
var?: (number | ("first" | "off"));
|
|
12658
12708
|
let?: (number | ("first" | "off"));
|
|
12659
12709
|
const?: (number | ("first" | "off"));
|
|
12710
|
+
using?: (number | ("first" | "off"));
|
|
12660
12711
|
});
|
|
12661
12712
|
outerIIFEBody?: (number | "off");
|
|
12662
12713
|
MemberExpression?: (number | "off");
|
|
@@ -12791,8 +12842,8 @@ type StyleJsxSortProps = [] | [{
|
|
|
12791
12842
|
multiline?: ("ignore" | "first" | "last");
|
|
12792
12843
|
ignoreCase?: boolean;
|
|
12793
12844
|
noSortAlphabetically?: boolean;
|
|
12794
|
-
reservedFirst?: (
|
|
12795
|
-
reservedLast?:
|
|
12845
|
+
reservedFirst?: (string[] | boolean);
|
|
12846
|
+
reservedLast?: string[];
|
|
12796
12847
|
locale?: string;
|
|
12797
12848
|
}];
|
|
12798
12849
|
// ----- style/jsx-tag-spacing -----
|
|
@@ -13137,6 +13188,10 @@ type StyleKeywordSpacing = [] | [{
|
|
|
13137
13188
|
before?: boolean;
|
|
13138
13189
|
after?: boolean;
|
|
13139
13190
|
};
|
|
13191
|
+
using?: {
|
|
13192
|
+
before?: boolean;
|
|
13193
|
+
after?: boolean;
|
|
13194
|
+
};
|
|
13140
13195
|
yield?: {
|
|
13141
13196
|
before?: boolean;
|
|
13142
13197
|
after?: boolean;
|
|
@@ -13339,6 +13394,11 @@ type StyleNoExtraParens = ([] | ["functions"] | [] | ["all"] | ["all", {
|
|
|
13339
13394
|
enforceForFunctionPrototypeMethods?: boolean;
|
|
13340
13395
|
allowParensAfterCommentPattern?: string;
|
|
13341
13396
|
nestedConditionalExpressions?: boolean;
|
|
13397
|
+
allowNodesInSpreadElement?: {
|
|
13398
|
+
ConditionalExpression?: boolean;
|
|
13399
|
+
LogicalExpression?: boolean;
|
|
13400
|
+
AwaitExpression?: boolean;
|
|
13401
|
+
};
|
|
13342
13402
|
}]);
|
|
13343
13403
|
// ----- style/no-mixed-operators -----
|
|
13344
13404
|
type StyleNoMixedOperators = [] | [{
|
|
@@ -13416,6 +13476,11 @@ type StyleObjectCurlyNewline = [] | [((("always" | "never") | {
|
|
|
13416
13476
|
minProperties?: number;
|
|
13417
13477
|
consistent?: boolean;
|
|
13418
13478
|
});
|
|
13479
|
+
TSEnumBody?: (("always" | "never") | {
|
|
13480
|
+
multiline?: boolean;
|
|
13481
|
+
minProperties?: number;
|
|
13482
|
+
consistent?: boolean;
|
|
13483
|
+
});
|
|
13419
13484
|
})];
|
|
13420
13485
|
// ----- style/object-curly-spacing -----
|
|
13421
13486
|
type StyleObjectCurlySpacing = [] | [("always" | "never")] | [("always" | "never"), {
|
|
@@ -13425,7 +13490,6 @@ type StyleObjectCurlySpacing = [] | [("always" | "never")] | [("always" | "never
|
|
|
13425
13490
|
// ----- style/object-property-newline -----
|
|
13426
13491
|
type StyleObjectPropertyNewline = [] | [{
|
|
13427
13492
|
allowAllPropertiesOnSameLine?: boolean;
|
|
13428
|
-
allowMultiplePropertiesPerLine?: boolean;
|
|
13429
13493
|
}];
|
|
13430
13494
|
// ----- style/one-var-declaration-per-line -----
|
|
13431
13495
|
type StyleOneVarDeclarationPerLine = [] | [("always" | "initializations")];
|
|
@@ -13449,7 +13513,7 @@ type StylePaddedBlocks = [] | [(("always" | "never" | "start" | "end") | {
|
|
|
13449
13513
|
}];
|
|
13450
13514
|
// ----- style/padding-line-between-statements -----
|
|
13451
13515
|
type _StylePaddingLineBetweenStatementsPaddingType = ("any" | "never" | "always");
|
|
13452
|
-
type _StylePaddingLineBetweenStatementsStatementType = (("*" | "block-like" | "exports" | "require" | "directive" | "expression" | "iife" | "multiline-block-like" | "multiline-expression" | "multiline-const" | "multiline-export" | "multiline-let" | "multiline-var" | "singleline-const" | "singleline-export" | "singleline-let" | "singleline-var" | "block" | "empty" | "function" | "ts-method" | "break" | "case" | "class" | "const" | "continue" | "debugger" | "default" | "do" | "export" | "for" | "if" | "import" | "let" | "return" | "switch" | "throw" | "try" | "var" | "while" | "with" | "cjs-export" | "cjs-import" | "enum" | "interface" | "type" | "function-overload") | [("*" | "block-like" | "exports" | "require" | "directive" | "expression" | "iife" | "multiline-block-like" | "multiline-expression" | "multiline-const" | "multiline-export" | "multiline-let" | "multiline-var" | "singleline-const" | "singleline-export" | "singleline-let" | "singleline-var" | "block" | "empty" | "function" | "ts-method" | "break" | "case" | "class" | "const" | "continue" | "debugger" | "default" | "do" | "export" | "for" | "if" | "import" | "let" | "return" | "switch" | "throw" | "try" | "var" | "while" | "with" | "cjs-export" | "cjs-import" | "enum" | "interface" | "type" | "function-overload"), ...(("*" | "block-like" | "exports" | "require" | "directive" | "expression" | "iife" | "multiline-block-like" | "multiline-expression" | "multiline-const" | "multiline-export" | "multiline-let" | "multiline-var" | "singleline-const" | "singleline-export" | "singleline-let" | "singleline-var" | "block" | "empty" | "function" | "ts-method" | "break" | "case" | "class" | "const" | "continue" | "debugger" | "default" | "do" | "export" | "for" | "if" | "import" | "let" | "return" | "switch" | "throw" | "try" | "var" | "while" | "with" | "cjs-export" | "cjs-import" | "enum" | "interface" | "type" | "function-overload"))[]]);
|
|
13516
|
+
type _StylePaddingLineBetweenStatementsStatementType = (("*" | "block-like" | "exports" | "require" | "directive" | "expression" | "iife" | "multiline-block-like" | "multiline-expression" | "multiline-const" | "multiline-export" | "multiline-let" | "multiline-using" | "multiline-var" | "singleline-const" | "singleline-export" | "singleline-let" | "singleline-using" | "singleline-var" | "block" | "empty" | "function" | "ts-method" | "break" | "case" | "class" | "const" | "continue" | "debugger" | "default" | "do" | "export" | "for" | "if" | "import" | "let" | "return" | "switch" | "throw" | "try" | "using" | "var" | "while" | "with" | "cjs-export" | "cjs-import" | "enum" | "interface" | "type" | "function-overload") | [("*" | "block-like" | "exports" | "require" | "directive" | "expression" | "iife" | "multiline-block-like" | "multiline-expression" | "multiline-const" | "multiline-export" | "multiline-let" | "multiline-using" | "multiline-var" | "singleline-const" | "singleline-export" | "singleline-let" | "singleline-using" | "singleline-var" | "block" | "empty" | "function" | "ts-method" | "break" | "case" | "class" | "const" | "continue" | "debugger" | "default" | "do" | "export" | "for" | "if" | "import" | "let" | "return" | "switch" | "throw" | "try" | "using" | "var" | "while" | "with" | "cjs-export" | "cjs-import" | "enum" | "interface" | "type" | "function-overload"), ...(("*" | "block-like" | "exports" | "require" | "directive" | "expression" | "iife" | "multiline-block-like" | "multiline-expression" | "multiline-const" | "multiline-export" | "multiline-let" | "multiline-using" | "multiline-var" | "singleline-const" | "singleline-export" | "singleline-let" | "singleline-using" | "singleline-var" | "block" | "empty" | "function" | "ts-method" | "break" | "case" | "class" | "const" | "continue" | "debugger" | "default" | "do" | "export" | "for" | "if" | "import" | "let" | "return" | "switch" | "throw" | "try" | "using" | "var" | "while" | "with" | "cjs-export" | "cjs-import" | "enum" | "interface" | "type" | "function-overload"))[]]);
|
|
13453
13517
|
type StylePaddingLineBetweenStatements = {
|
|
13454
13518
|
blankLine: _StylePaddingLineBetweenStatementsPaddingType;
|
|
13455
13519
|
prev: _StylePaddingLineBetweenStatementsStatementType;
|
|
@@ -13488,12 +13552,14 @@ type StyleSpaceBeforeBlocks = [] | [(("always" | "never") | {
|
|
|
13488
13552
|
keywords?: ("always" | "never" | "off");
|
|
13489
13553
|
functions?: ("always" | "never" | "off");
|
|
13490
13554
|
classes?: ("always" | "never" | "off");
|
|
13555
|
+
modules?: ("always" | "never" | "off");
|
|
13491
13556
|
})];
|
|
13492
13557
|
// ----- style/space-before-function-paren -----
|
|
13493
13558
|
type StyleSpaceBeforeFunctionParen = [] | [(("always" | "never") | {
|
|
13494
13559
|
anonymous?: ("always" | "never" | "ignore");
|
|
13495
13560
|
named?: ("always" | "never" | "ignore");
|
|
13496
13561
|
asyncArrow?: ("always" | "never" | "ignore");
|
|
13562
|
+
catch?: ("always" | "never" | "ignore");
|
|
13497
13563
|
})];
|
|
13498
13564
|
// ----- style/space-in-parens -----
|
|
13499
13565
|
type StyleSpaceInParens = [] | [("always" | "never")] | [("always" | "never"), {
|
|
@@ -13664,6 +13730,10 @@ type TestConsistentTestIt = [] | [{
|
|
|
13664
13730
|
fn?: ("test" | "it");
|
|
13665
13731
|
withinDescribe?: ("test" | "it");
|
|
13666
13732
|
}];
|
|
13733
|
+
// ----- test/consistent-vitest-vi -----
|
|
13734
|
+
type TestConsistentVitestVi = [] | [{
|
|
13735
|
+
fn?: ("vi" | "vitest");
|
|
13736
|
+
}];
|
|
13667
13737
|
// ----- test/expect-expect -----
|
|
13668
13738
|
type TestExpectExpect = [] | [{
|
|
13669
13739
|
assertFunctionNames?: string[];
|
|
@@ -14331,6 +14401,7 @@ interface _TsNamingConvention_MatchRegexConfig {
|
|
|
14331
14401
|
}
|
|
14332
14402
|
// ----- ts/no-base-to-string -----
|
|
14333
14403
|
type TsNoBaseToString = [] | [{
|
|
14404
|
+
checkUnknown?: boolean;
|
|
14334
14405
|
ignoredTypeNames?: string[];
|
|
14335
14406
|
}];
|
|
14336
14407
|
// ----- ts/no-confusing-void-expression -----
|