@2digits/eslint-config 4.6.6 → 4.6.7
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.mts +116 -122
- package/package.json +8 -8
package/dist/index.d.mts
CHANGED
|
@@ -5317,483 +5317,478 @@ interface RuleOptions {
|
|
|
5317
5317
|
'strict'?: Linter.RuleEntry<Strict>;
|
|
5318
5318
|
/**
|
|
5319
5319
|
* Enforce linebreaks after opening and before closing array brackets
|
|
5320
|
-
* @see https://eslint.style/rules/
|
|
5320
|
+
* @see https://eslint.style/rules/array-bracket-newline
|
|
5321
5321
|
*/
|
|
5322
5322
|
'stylistic/array-bracket-newline'?: Linter.RuleEntry<StylisticArrayBracketNewline>;
|
|
5323
5323
|
/**
|
|
5324
5324
|
* Enforce consistent spacing inside array brackets
|
|
5325
|
-
* @see https://eslint.style/rules/
|
|
5325
|
+
* @see https://eslint.style/rules/array-bracket-spacing
|
|
5326
5326
|
*/
|
|
5327
5327
|
'stylistic/array-bracket-spacing'?: Linter.RuleEntry<StylisticArrayBracketSpacing>;
|
|
5328
5328
|
/**
|
|
5329
5329
|
* Enforce line breaks after each array element
|
|
5330
|
-
* @see https://eslint.style/rules/
|
|
5330
|
+
* @see https://eslint.style/rules/array-element-newline
|
|
5331
5331
|
*/
|
|
5332
5332
|
'stylistic/array-element-newline'?: Linter.RuleEntry<StylisticArrayElementNewline>;
|
|
5333
5333
|
/**
|
|
5334
5334
|
* Require parentheses around arrow function arguments
|
|
5335
|
-
* @see https://eslint.style/rules/
|
|
5335
|
+
* @see https://eslint.style/rules/arrow-parens
|
|
5336
5336
|
*/
|
|
5337
5337
|
'stylistic/arrow-parens'?: Linter.RuleEntry<StylisticArrowParens>;
|
|
5338
5338
|
/**
|
|
5339
5339
|
* Enforce consistent spacing before and after the arrow in arrow functions
|
|
5340
|
-
* @see https://eslint.style/rules/
|
|
5340
|
+
* @see https://eslint.style/rules/arrow-spacing
|
|
5341
5341
|
*/
|
|
5342
5342
|
'stylistic/arrow-spacing'?: Linter.RuleEntry<StylisticArrowSpacing>;
|
|
5343
5343
|
/**
|
|
5344
5344
|
* Disallow or enforce spaces inside of blocks after opening block and before closing block
|
|
5345
|
-
* @see https://eslint.style/rules/
|
|
5345
|
+
* @see https://eslint.style/rules/block-spacing
|
|
5346
5346
|
*/
|
|
5347
5347
|
'stylistic/block-spacing'?: Linter.RuleEntry<StylisticBlockSpacing>;
|
|
5348
5348
|
/**
|
|
5349
5349
|
* Enforce consistent brace style for blocks
|
|
5350
|
-
* @see https://eslint.style/rules/
|
|
5350
|
+
* @see https://eslint.style/rules/brace-style
|
|
5351
5351
|
*/
|
|
5352
5352
|
'stylistic/brace-style'?: Linter.RuleEntry<StylisticBraceStyle>;
|
|
5353
5353
|
/**
|
|
5354
5354
|
* Require or disallow trailing commas
|
|
5355
|
-
* @see https://eslint.style/rules/
|
|
5355
|
+
* @see https://eslint.style/rules/comma-dangle
|
|
5356
5356
|
*/
|
|
5357
5357
|
'stylistic/comma-dangle'?: Linter.RuleEntry<StylisticCommaDangle>;
|
|
5358
5358
|
/**
|
|
5359
5359
|
* Enforce consistent spacing before and after commas
|
|
5360
|
-
* @see https://eslint.style/rules/
|
|
5360
|
+
* @see https://eslint.style/rules/comma-spacing
|
|
5361
5361
|
*/
|
|
5362
5362
|
'stylistic/comma-spacing'?: Linter.RuleEntry<StylisticCommaSpacing>;
|
|
5363
5363
|
/**
|
|
5364
5364
|
* Enforce consistent comma style
|
|
5365
|
-
* @see https://eslint.style/rules/
|
|
5365
|
+
* @see https://eslint.style/rules/comma-style
|
|
5366
5366
|
*/
|
|
5367
5367
|
'stylistic/comma-style'?: Linter.RuleEntry<StylisticCommaStyle>;
|
|
5368
5368
|
/**
|
|
5369
5369
|
* Enforce consistent spacing inside computed property brackets
|
|
5370
|
-
* @see https://eslint.style/rules/
|
|
5370
|
+
* @see https://eslint.style/rules/computed-property-spacing
|
|
5371
5371
|
*/
|
|
5372
5372
|
'stylistic/computed-property-spacing'?: Linter.RuleEntry<StylisticComputedPropertySpacing>;
|
|
5373
5373
|
/**
|
|
5374
5374
|
* Enforce consistent line breaks after opening and before closing braces
|
|
5375
|
-
* @see https://eslint.style/rules/
|
|
5375
|
+
* @see https://eslint.style/rules/curly-newline
|
|
5376
5376
|
*/
|
|
5377
5377
|
'stylistic/curly-newline'?: Linter.RuleEntry<StylisticCurlyNewline>;
|
|
5378
5378
|
/**
|
|
5379
5379
|
* Enforce consistent newlines before and after dots
|
|
5380
|
-
* @see https://eslint.style/rules/
|
|
5380
|
+
* @see https://eslint.style/rules/dot-location
|
|
5381
5381
|
*/
|
|
5382
5382
|
'stylistic/dot-location'?: Linter.RuleEntry<StylisticDotLocation>;
|
|
5383
5383
|
/**
|
|
5384
5384
|
* Require or disallow newline at the end of files
|
|
5385
|
-
* @see https://eslint.style/rules/
|
|
5385
|
+
* @see https://eslint.style/rules/eol-last
|
|
5386
5386
|
*/
|
|
5387
5387
|
'stylistic/eol-last'?: Linter.RuleEntry<StylisticEolLast>;
|
|
5388
|
-
/**
|
|
5389
|
-
* Require or disallow spacing between function identifiers and their invocations
|
|
5390
|
-
* @see https://eslint.style/rules/ts/function-call-spacing
|
|
5391
|
-
*/
|
|
5392
|
-
'stylistic/func-call-spacing'?: Linter.RuleEntry<StylisticFuncCallSpacing>;
|
|
5393
5388
|
/**
|
|
5394
5389
|
* Enforce line breaks between arguments of a function call
|
|
5395
|
-
* @see https://eslint.style/rules/
|
|
5390
|
+
* @see https://eslint.style/rules/function-call-argument-newline
|
|
5396
5391
|
*/
|
|
5397
5392
|
'stylistic/function-call-argument-newline'?: Linter.RuleEntry<StylisticFunctionCallArgumentNewline>;
|
|
5398
5393
|
/**
|
|
5399
5394
|
* Require or disallow spacing between function identifiers and their invocations
|
|
5400
|
-
* @see https://eslint.style/rules/
|
|
5395
|
+
* @see https://eslint.style/rules/function-call-spacing
|
|
5401
5396
|
*/
|
|
5402
5397
|
'stylistic/function-call-spacing'?: Linter.RuleEntry<StylisticFunctionCallSpacing>;
|
|
5403
5398
|
/**
|
|
5404
5399
|
* Enforce consistent line breaks inside function parentheses
|
|
5405
|
-
* @see https://eslint.style/rules/
|
|
5400
|
+
* @see https://eslint.style/rules/function-paren-newline
|
|
5406
5401
|
*/
|
|
5407
5402
|
'stylistic/function-paren-newline'?: Linter.RuleEntry<StylisticFunctionParenNewline>;
|
|
5408
5403
|
/**
|
|
5409
5404
|
* Enforce consistent spacing around `*` operators in generator functions
|
|
5410
|
-
* @see https://eslint.style/rules/
|
|
5405
|
+
* @see https://eslint.style/rules/generator-star-spacing
|
|
5411
5406
|
*/
|
|
5412
5407
|
'stylistic/generator-star-spacing'?: Linter.RuleEntry<StylisticGeneratorStarSpacing>;
|
|
5413
5408
|
/**
|
|
5414
5409
|
* Enforce the location of arrow function bodies
|
|
5415
|
-
* @see https://eslint.style/rules/
|
|
5410
|
+
* @see https://eslint.style/rules/implicit-arrow-linebreak
|
|
5416
5411
|
*/
|
|
5417
5412
|
'stylistic/implicit-arrow-linebreak'?: Linter.RuleEntry<StylisticImplicitArrowLinebreak>;
|
|
5418
5413
|
/**
|
|
5419
5414
|
* Enforce consistent indentation
|
|
5420
|
-
* @see https://eslint.style/rules/
|
|
5415
|
+
* @see https://eslint.style/rules/indent
|
|
5421
5416
|
*/
|
|
5422
5417
|
'stylistic/indent'?: Linter.RuleEntry<StylisticIndent>;
|
|
5423
5418
|
/**
|
|
5424
5419
|
* Indentation for binary operators
|
|
5425
|
-
* @see https://eslint.style/rules/
|
|
5420
|
+
* @see https://eslint.style/rules/indent-binary-ops
|
|
5426
5421
|
*/
|
|
5427
5422
|
'stylistic/indent-binary-ops'?: Linter.RuleEntry<StylisticIndentBinaryOps>;
|
|
5428
5423
|
/**
|
|
5429
5424
|
* Enforce or disallow spaces inside of curly braces in JSX attributes and expressions
|
|
5430
|
-
* @see https://eslint.style/rules/jsx
|
|
5425
|
+
* @see https://eslint.style/rules/jsx-child-element-spacing
|
|
5431
5426
|
*/
|
|
5432
5427
|
'stylistic/jsx-child-element-spacing'?: Linter.RuleEntry<[]>;
|
|
5433
5428
|
/**
|
|
5434
5429
|
* Enforce closing bracket location in JSX
|
|
5435
|
-
* @see https://eslint.style/rules/jsx
|
|
5430
|
+
* @see https://eslint.style/rules/jsx-closing-bracket-location
|
|
5436
5431
|
*/
|
|
5437
5432
|
'stylistic/jsx-closing-bracket-location'?: Linter.RuleEntry<StylisticJsxClosingBracketLocation>;
|
|
5438
5433
|
/**
|
|
5439
5434
|
* Enforce closing tag location for multiline JSX
|
|
5440
|
-
* @see https://eslint.style/rules/jsx
|
|
5435
|
+
* @see https://eslint.style/rules/jsx-closing-tag-location
|
|
5441
5436
|
*/
|
|
5442
5437
|
'stylistic/jsx-closing-tag-location'?: Linter.RuleEntry<StylisticJsxClosingTagLocation>;
|
|
5443
5438
|
/**
|
|
5444
5439
|
* Disallow unnecessary JSX expressions when literals alone are sufficient or enforce JSX expressions on literals in JSX children or attributes
|
|
5445
|
-
* @see https://eslint.style/rules/jsx
|
|
5440
|
+
* @see https://eslint.style/rules/jsx-curly-brace-presence
|
|
5446
5441
|
*/
|
|
5447
5442
|
'stylistic/jsx-curly-brace-presence'?: Linter.RuleEntry<StylisticJsxCurlyBracePresence>;
|
|
5448
5443
|
/**
|
|
5449
5444
|
* Enforce consistent linebreaks in curly braces in JSX attributes and expressions
|
|
5450
|
-
* @see https://eslint.style/rules/jsx
|
|
5445
|
+
* @see https://eslint.style/rules/jsx-curly-newline
|
|
5451
5446
|
*/
|
|
5452
5447
|
'stylistic/jsx-curly-newline'?: Linter.RuleEntry<StylisticJsxCurlyNewline>;
|
|
5453
5448
|
/**
|
|
5454
5449
|
* Enforce or disallow spaces inside of curly braces in JSX attributes and expressions
|
|
5455
|
-
* @see https://eslint.style/rules/jsx
|
|
5450
|
+
* @see https://eslint.style/rules/jsx-curly-spacing
|
|
5456
5451
|
*/
|
|
5457
5452
|
'stylistic/jsx-curly-spacing'?: Linter.RuleEntry<StylisticJsxCurlySpacing>;
|
|
5458
5453
|
/**
|
|
5459
5454
|
* Enforce or disallow spaces around equal signs in JSX attributes
|
|
5460
|
-
* @see https://eslint.style/rules/jsx
|
|
5455
|
+
* @see https://eslint.style/rules/jsx-equals-spacing
|
|
5461
5456
|
*/
|
|
5462
5457
|
'stylistic/jsx-equals-spacing'?: Linter.RuleEntry<StylisticJsxEqualsSpacing>;
|
|
5463
5458
|
/**
|
|
5464
5459
|
* Enforce proper position of the first property in JSX
|
|
5465
|
-
* @see https://eslint.style/rules/jsx
|
|
5460
|
+
* @see https://eslint.style/rules/jsx-first-prop-new-line
|
|
5466
5461
|
*/
|
|
5467
5462
|
'stylistic/jsx-first-prop-new-line'?: Linter.RuleEntry<StylisticJsxFirstPropNewLine>;
|
|
5468
5463
|
/**
|
|
5469
5464
|
* Enforce line breaks before and after JSX elements when they are used as arguments to a function.
|
|
5470
|
-
* @see https://eslint.style/rules/jsx
|
|
5465
|
+
* @see https://eslint.style/rules/jsx-function-call-newline
|
|
5471
5466
|
*/
|
|
5472
5467
|
'stylistic/jsx-function-call-newline'?: Linter.RuleEntry<StylisticJsxFunctionCallNewline>;
|
|
5473
5468
|
/**
|
|
5474
5469
|
* Enforce JSX indentation. Deprecated, use `indent` rule instead.
|
|
5475
|
-
* @see https://eslint.style/rules/jsx
|
|
5470
|
+
* @see https://eslint.style/rules/jsx-indent
|
|
5476
5471
|
* @deprecated
|
|
5477
5472
|
*/
|
|
5478
5473
|
'stylistic/jsx-indent'?: Linter.RuleEntry<StylisticJsxIndent>;
|
|
5479
5474
|
/**
|
|
5480
5475
|
* Enforce props indentation in JSX
|
|
5481
|
-
* @see https://eslint.style/rules/jsx
|
|
5476
|
+
* @see https://eslint.style/rules/jsx-indent-props
|
|
5482
5477
|
*/
|
|
5483
5478
|
'stylistic/jsx-indent-props'?: Linter.RuleEntry<StylisticJsxIndentProps>;
|
|
5484
5479
|
/**
|
|
5485
5480
|
* Enforce maximum of props on a single line in JSX
|
|
5486
|
-
* @see https://eslint.style/rules/jsx
|
|
5481
|
+
* @see https://eslint.style/rules/jsx-max-props-per-line
|
|
5487
5482
|
*/
|
|
5488
5483
|
'stylistic/jsx-max-props-per-line'?: Linter.RuleEntry<StylisticJsxMaxPropsPerLine>;
|
|
5489
5484
|
/**
|
|
5490
5485
|
* Require or prevent a new line after jsx elements and expressions.
|
|
5491
|
-
* @see https://eslint.style/rules/jsx
|
|
5486
|
+
* @see https://eslint.style/rules/jsx-newline
|
|
5492
5487
|
*/
|
|
5493
5488
|
'stylistic/jsx-newline'?: Linter.RuleEntry<StylisticJsxNewline>;
|
|
5494
5489
|
/**
|
|
5495
5490
|
* Require one JSX element per line
|
|
5496
|
-
* @see https://eslint.style/rules/jsx
|
|
5491
|
+
* @see https://eslint.style/rules/jsx-one-expression-per-line
|
|
5497
5492
|
*/
|
|
5498
5493
|
'stylistic/jsx-one-expression-per-line'?: Linter.RuleEntry<StylisticJsxOneExpressionPerLine>;
|
|
5499
5494
|
/**
|
|
5500
5495
|
* Enforce PascalCase for user-defined JSX components
|
|
5501
|
-
* @see https://eslint.style/rules/jsx
|
|
5496
|
+
* @see https://eslint.style/rules/jsx-pascal-case
|
|
5502
5497
|
*/
|
|
5503
5498
|
'stylistic/jsx-pascal-case'?: Linter.RuleEntry<StylisticJsxPascalCase>;
|
|
5504
5499
|
/**
|
|
5505
5500
|
* Disallow multiple spaces between inline JSX props
|
|
5506
|
-
* @see https://eslint.style/rules/jsx
|
|
5501
|
+
* @see https://eslint.style/rules/jsx-props-no-multi-spaces
|
|
5507
5502
|
*/
|
|
5508
5503
|
'stylistic/jsx-props-no-multi-spaces'?: Linter.RuleEntry<[]>;
|
|
5509
5504
|
/**
|
|
5510
5505
|
* Enforce the consistent use of either double or single quotes in JSX attributes
|
|
5511
|
-
* @see https://eslint.style/rules/
|
|
5506
|
+
* @see https://eslint.style/rules/jsx-quotes
|
|
5512
5507
|
*/
|
|
5513
5508
|
'stylistic/jsx-quotes'?: Linter.RuleEntry<StylisticJsxQuotes>;
|
|
5514
5509
|
/**
|
|
5515
5510
|
* Disallow extra closing tags for components without children
|
|
5516
|
-
* @see https://eslint.style/rules/jsx
|
|
5511
|
+
* @see https://eslint.style/rules/jsx-self-closing-comp
|
|
5517
5512
|
*/
|
|
5518
5513
|
'stylistic/jsx-self-closing-comp'?: Linter.RuleEntry<StylisticJsxSelfClosingComp>;
|
|
5519
5514
|
/**
|
|
5520
5515
|
* Enforce props alphabetical sorting
|
|
5521
|
-
* @see https://eslint.style/rules/jsx
|
|
5516
|
+
* @see https://eslint.style/rules/jsx-sort-props
|
|
5522
5517
|
*/
|
|
5523
5518
|
'stylistic/jsx-sort-props'?: Linter.RuleEntry<StylisticJsxSortProps>;
|
|
5524
5519
|
/**
|
|
5525
5520
|
* Enforce whitespace in and around the JSX opening and closing brackets
|
|
5526
|
-
* @see https://eslint.style/rules/jsx
|
|
5521
|
+
* @see https://eslint.style/rules/jsx-tag-spacing
|
|
5527
5522
|
*/
|
|
5528
5523
|
'stylistic/jsx-tag-spacing'?: Linter.RuleEntry<StylisticJsxTagSpacing>;
|
|
5529
5524
|
/**
|
|
5530
5525
|
* Disallow missing parentheses around multiline JSX
|
|
5531
|
-
* @see https://eslint.style/rules/jsx
|
|
5526
|
+
* @see https://eslint.style/rules/jsx-wrap-multilines
|
|
5532
5527
|
*/
|
|
5533
5528
|
'stylistic/jsx-wrap-multilines'?: Linter.RuleEntry<StylisticJsxWrapMultilines>;
|
|
5534
5529
|
/**
|
|
5535
5530
|
* Enforce consistent spacing between property names and type annotations in types and interfaces
|
|
5536
|
-
* @see https://eslint.style/rules/
|
|
5531
|
+
* @see https://eslint.style/rules/key-spacing
|
|
5537
5532
|
*/
|
|
5538
5533
|
'stylistic/key-spacing'?: Linter.RuleEntry<StylisticKeySpacing>;
|
|
5539
5534
|
/**
|
|
5540
5535
|
* Enforce consistent spacing before and after keywords
|
|
5541
|
-
* @see https://eslint.style/rules/
|
|
5536
|
+
* @see https://eslint.style/rules/keyword-spacing
|
|
5542
5537
|
*/
|
|
5543
5538
|
'stylistic/keyword-spacing'?: Linter.RuleEntry<StylisticKeywordSpacing>;
|
|
5544
5539
|
/**
|
|
5545
5540
|
* Enforce position of line comments
|
|
5546
|
-
* @see https://eslint.style/rules/
|
|
5541
|
+
* @see https://eslint.style/rules/line-comment-position
|
|
5547
5542
|
*/
|
|
5548
5543
|
'stylistic/line-comment-position'?: Linter.RuleEntry<StylisticLineCommentPosition>;
|
|
5549
5544
|
/**
|
|
5550
5545
|
* Enforce consistent linebreak style
|
|
5551
|
-
* @see https://eslint.style/rules/
|
|
5546
|
+
* @see https://eslint.style/rules/linebreak-style
|
|
5552
5547
|
*/
|
|
5553
5548
|
'stylistic/linebreak-style'?: Linter.RuleEntry<StylisticLinebreakStyle>;
|
|
5554
5549
|
/**
|
|
5555
5550
|
* Require empty lines around comments
|
|
5556
|
-
* @see https://eslint.style/rules/
|
|
5551
|
+
* @see https://eslint.style/rules/lines-around-comment
|
|
5557
5552
|
*/
|
|
5558
5553
|
'stylistic/lines-around-comment'?: Linter.RuleEntry<StylisticLinesAroundComment>;
|
|
5559
5554
|
/**
|
|
5560
5555
|
* Require or disallow an empty line between class members
|
|
5561
|
-
* @see https://eslint.style/rules/
|
|
5556
|
+
* @see https://eslint.style/rules/lines-between-class-members
|
|
5562
5557
|
*/
|
|
5563
5558
|
'stylistic/lines-between-class-members'?: Linter.RuleEntry<StylisticLinesBetweenClassMembers>;
|
|
5564
5559
|
/**
|
|
5565
5560
|
* Enforce a maximum line length
|
|
5566
|
-
* @see https://eslint.style/rules/
|
|
5561
|
+
* @see https://eslint.style/rules/max-len
|
|
5567
5562
|
*/
|
|
5568
5563
|
'stylistic/max-len'?: Linter.RuleEntry<StylisticMaxLen>;
|
|
5569
5564
|
/**
|
|
5570
5565
|
* Enforce a maximum number of statements allowed per line
|
|
5571
|
-
* @see https://eslint.style/rules/
|
|
5566
|
+
* @see https://eslint.style/rules/max-statements-per-line
|
|
5572
5567
|
*/
|
|
5573
5568
|
'stylistic/max-statements-per-line'?: Linter.RuleEntry<StylisticMaxStatementsPerLine>;
|
|
5574
5569
|
/**
|
|
5575
5570
|
* Require a specific member delimiter style for interfaces and type literals
|
|
5576
|
-
* @see https://eslint.style/rules/
|
|
5571
|
+
* @see https://eslint.style/rules/member-delimiter-style
|
|
5577
5572
|
*/
|
|
5578
5573
|
'stylistic/member-delimiter-style'?: Linter.RuleEntry<StylisticMemberDelimiterStyle>;
|
|
5579
5574
|
/**
|
|
5580
5575
|
* Enforce a particular style for multiline comments
|
|
5581
|
-
* @see https://eslint.style/rules/
|
|
5576
|
+
* @see https://eslint.style/rules/multiline-comment-style
|
|
5582
5577
|
*/
|
|
5583
5578
|
'stylistic/multiline-comment-style'?: Linter.RuleEntry<StylisticMultilineCommentStyle>;
|
|
5584
5579
|
/**
|
|
5585
5580
|
* Enforce newlines between operands of ternary expressions
|
|
5586
|
-
* @see https://eslint.style/rules/
|
|
5581
|
+
* @see https://eslint.style/rules/multiline-ternary
|
|
5587
5582
|
*/
|
|
5588
5583
|
'stylistic/multiline-ternary'?: Linter.RuleEntry<StylisticMultilineTernary>;
|
|
5589
5584
|
/**
|
|
5590
5585
|
* Enforce or disallow parentheses when invoking a constructor with no arguments
|
|
5591
|
-
* @see https://eslint.style/rules/
|
|
5586
|
+
* @see https://eslint.style/rules/new-parens
|
|
5592
5587
|
*/
|
|
5593
5588
|
'stylistic/new-parens'?: Linter.RuleEntry<StylisticNewParens>;
|
|
5594
5589
|
/**
|
|
5595
5590
|
* Require a newline after each call in a method chain
|
|
5596
|
-
* @see https://eslint.style/rules/
|
|
5591
|
+
* @see https://eslint.style/rules/newline-per-chained-call
|
|
5597
5592
|
*/
|
|
5598
5593
|
'stylistic/newline-per-chained-call'?: Linter.RuleEntry<StylisticNewlinePerChainedCall>;
|
|
5599
5594
|
/**
|
|
5600
5595
|
* Disallow arrow functions where they could be confused with comparisons
|
|
5601
|
-
* @see https://eslint.style/rules/
|
|
5596
|
+
* @see https://eslint.style/rules/no-confusing-arrow
|
|
5602
5597
|
*/
|
|
5603
5598
|
'stylistic/no-confusing-arrow'?: Linter.RuleEntry<StylisticNoConfusingArrow>;
|
|
5604
5599
|
/**
|
|
5605
5600
|
* Disallow unnecessary parentheses
|
|
5606
|
-
* @see https://eslint.style/rules/
|
|
5601
|
+
* @see https://eslint.style/rules/no-extra-parens
|
|
5607
5602
|
*/
|
|
5608
5603
|
'stylistic/no-extra-parens'?: Linter.RuleEntry<StylisticNoExtraParens>;
|
|
5609
5604
|
/**
|
|
5610
5605
|
* Disallow unnecessary semicolons
|
|
5611
|
-
* @see https://eslint.style/rules/
|
|
5606
|
+
* @see https://eslint.style/rules/no-extra-semi
|
|
5612
5607
|
*/
|
|
5613
5608
|
'stylistic/no-extra-semi'?: Linter.RuleEntry<[]>;
|
|
5614
5609
|
/**
|
|
5615
5610
|
* Disallow leading or trailing decimal points in numeric literals
|
|
5616
|
-
* @see https://eslint.style/rules/
|
|
5611
|
+
* @see https://eslint.style/rules/no-floating-decimal
|
|
5617
5612
|
*/
|
|
5618
5613
|
'stylistic/no-floating-decimal'?: Linter.RuleEntry<[]>;
|
|
5619
5614
|
/**
|
|
5620
5615
|
* Disallow mixed binary operators
|
|
5621
|
-
* @see https://eslint.style/rules/
|
|
5616
|
+
* @see https://eslint.style/rules/no-mixed-operators
|
|
5622
5617
|
*/
|
|
5623
5618
|
'stylistic/no-mixed-operators'?: Linter.RuleEntry<StylisticNoMixedOperators>;
|
|
5624
5619
|
/**
|
|
5625
5620
|
* Disallow mixed spaces and tabs for indentation
|
|
5626
|
-
* @see https://eslint.style/rules/
|
|
5621
|
+
* @see https://eslint.style/rules/no-mixed-spaces-and-tabs
|
|
5627
5622
|
*/
|
|
5628
5623
|
'stylistic/no-mixed-spaces-and-tabs'?: Linter.RuleEntry<StylisticNoMixedSpacesAndTabs>;
|
|
5629
5624
|
/**
|
|
5630
5625
|
* Disallow multiple spaces
|
|
5631
|
-
* @see https://eslint.style/rules/
|
|
5626
|
+
* @see https://eslint.style/rules/no-multi-spaces
|
|
5632
5627
|
*/
|
|
5633
5628
|
'stylistic/no-multi-spaces'?: Linter.RuleEntry<StylisticNoMultiSpaces>;
|
|
5634
5629
|
/**
|
|
5635
5630
|
* Disallow multiple empty lines
|
|
5636
|
-
* @see https://eslint.style/rules/
|
|
5631
|
+
* @see https://eslint.style/rules/no-multiple-empty-lines
|
|
5637
5632
|
*/
|
|
5638
5633
|
'stylistic/no-multiple-empty-lines'?: Linter.RuleEntry<StylisticNoMultipleEmptyLines>;
|
|
5639
5634
|
/**
|
|
5640
5635
|
* Disallow all tabs
|
|
5641
|
-
* @see https://eslint.style/rules/
|
|
5636
|
+
* @see https://eslint.style/rules/no-tabs
|
|
5642
5637
|
*/
|
|
5643
5638
|
'stylistic/no-tabs'?: Linter.RuleEntry<StylisticNoTabs>;
|
|
5644
5639
|
/**
|
|
5645
5640
|
* Disallow trailing whitespace at the end of lines
|
|
5646
|
-
* @see https://eslint.style/rules/
|
|
5641
|
+
* @see https://eslint.style/rules/no-trailing-spaces
|
|
5647
5642
|
*/
|
|
5648
5643
|
'stylistic/no-trailing-spaces'?: Linter.RuleEntry<StylisticNoTrailingSpaces>;
|
|
5649
5644
|
/**
|
|
5650
5645
|
* Disallow whitespace before properties
|
|
5651
|
-
* @see https://eslint.style/rules/
|
|
5646
|
+
* @see https://eslint.style/rules/no-whitespace-before-property
|
|
5652
5647
|
*/
|
|
5653
5648
|
'stylistic/no-whitespace-before-property'?: Linter.RuleEntry<[]>;
|
|
5654
5649
|
/**
|
|
5655
5650
|
* Enforce the location of single-line statements
|
|
5656
|
-
* @see https://eslint.style/rules/
|
|
5651
|
+
* @see https://eslint.style/rules/nonblock-statement-body-position
|
|
5657
5652
|
*/
|
|
5658
5653
|
'stylistic/nonblock-statement-body-position'?: Linter.RuleEntry<StylisticNonblockStatementBodyPosition>;
|
|
5659
5654
|
/**
|
|
5660
5655
|
* Enforce consistent line breaks after opening and before closing braces
|
|
5661
|
-
* @see https://eslint.style/rules/
|
|
5656
|
+
* @see https://eslint.style/rules/object-curly-newline
|
|
5662
5657
|
*/
|
|
5663
5658
|
'stylistic/object-curly-newline'?: Linter.RuleEntry<StylisticObjectCurlyNewline>;
|
|
5664
5659
|
/**
|
|
5665
5660
|
* Enforce consistent spacing inside braces
|
|
5666
|
-
* @see https://eslint.style/rules/
|
|
5661
|
+
* @see https://eslint.style/rules/object-curly-spacing
|
|
5667
5662
|
*/
|
|
5668
5663
|
'stylistic/object-curly-spacing'?: Linter.RuleEntry<StylisticObjectCurlySpacing>;
|
|
5669
5664
|
/**
|
|
5670
5665
|
* Enforce placing object properties on separate lines
|
|
5671
|
-
* @see https://eslint.style/rules/
|
|
5666
|
+
* @see https://eslint.style/rules/object-property-newline
|
|
5672
5667
|
*/
|
|
5673
5668
|
'stylistic/object-property-newline'?: Linter.RuleEntry<StylisticObjectPropertyNewline>;
|
|
5674
5669
|
/**
|
|
5675
5670
|
* Require or disallow newlines around variable declarations
|
|
5676
|
-
* @see https://eslint.style/rules/
|
|
5671
|
+
* @see https://eslint.style/rules/one-var-declaration-per-line
|
|
5677
5672
|
*/
|
|
5678
5673
|
'stylistic/one-var-declaration-per-line'?: Linter.RuleEntry<StylisticOneVarDeclarationPerLine>;
|
|
5679
5674
|
/**
|
|
5680
5675
|
* Enforce consistent linebreak style for operators
|
|
5681
|
-
* @see https://eslint.style/rules/
|
|
5676
|
+
* @see https://eslint.style/rules/operator-linebreak
|
|
5682
5677
|
*/
|
|
5683
5678
|
'stylistic/operator-linebreak'?: Linter.RuleEntry<StylisticOperatorLinebreak>;
|
|
5684
5679
|
/**
|
|
5685
5680
|
* Require or disallow padding within blocks
|
|
5686
|
-
* @see https://eslint.style/rules/
|
|
5681
|
+
* @see https://eslint.style/rules/padded-blocks
|
|
5687
5682
|
*/
|
|
5688
5683
|
'stylistic/padded-blocks'?: Linter.RuleEntry<StylisticPaddedBlocks>;
|
|
5689
5684
|
/**
|
|
5690
5685
|
* Require or disallow padding lines between statements
|
|
5691
|
-
* @see https://eslint.style/rules/
|
|
5686
|
+
* @see https://eslint.style/rules/padding-line-between-statements
|
|
5692
5687
|
*/
|
|
5693
5688
|
'stylistic/padding-line-between-statements'?: Linter.RuleEntry<StylisticPaddingLineBetweenStatements>;
|
|
5694
5689
|
/**
|
|
5695
5690
|
* Require quotes around object literal, type literal, interfaces and enums property names
|
|
5696
|
-
* @see https://eslint.style/rules/
|
|
5691
|
+
* @see https://eslint.style/rules/quote-props
|
|
5697
5692
|
*/
|
|
5698
5693
|
'stylistic/quote-props'?: Linter.RuleEntry<StylisticQuoteProps>;
|
|
5699
5694
|
/**
|
|
5700
5695
|
* Enforce the consistent use of either backticks, double, or single quotes
|
|
5701
|
-
* @see https://eslint.style/rules/
|
|
5696
|
+
* @see https://eslint.style/rules/quotes
|
|
5702
5697
|
*/
|
|
5703
5698
|
'stylistic/quotes'?: Linter.RuleEntry<StylisticQuotes>;
|
|
5704
5699
|
/**
|
|
5705
5700
|
* Enforce spacing between rest and spread operators and their expressions
|
|
5706
|
-
* @see https://eslint.style/rules/
|
|
5701
|
+
* @see https://eslint.style/rules/rest-spread-spacing
|
|
5707
5702
|
*/
|
|
5708
5703
|
'stylistic/rest-spread-spacing'?: Linter.RuleEntry<StylisticRestSpreadSpacing>;
|
|
5709
5704
|
/**
|
|
5710
5705
|
* Require or disallow semicolons instead of ASI
|
|
5711
|
-
* @see https://eslint.style/rules/
|
|
5706
|
+
* @see https://eslint.style/rules/semi
|
|
5712
5707
|
*/
|
|
5713
5708
|
'stylistic/semi'?: Linter.RuleEntry<StylisticSemi>;
|
|
5714
5709
|
/**
|
|
5715
5710
|
* Enforce consistent spacing before and after semicolons
|
|
5716
|
-
* @see https://eslint.style/rules/
|
|
5711
|
+
* @see https://eslint.style/rules/semi-spacing
|
|
5717
5712
|
*/
|
|
5718
5713
|
'stylistic/semi-spacing'?: Linter.RuleEntry<StylisticSemiSpacing>;
|
|
5719
5714
|
/**
|
|
5720
5715
|
* Enforce location of semicolons
|
|
5721
|
-
* @see https://eslint.style/rules/
|
|
5716
|
+
* @see https://eslint.style/rules/semi-style
|
|
5722
5717
|
*/
|
|
5723
5718
|
'stylistic/semi-style'?: Linter.RuleEntry<StylisticSemiStyle>;
|
|
5724
5719
|
/**
|
|
5725
5720
|
* Enforce consistent spacing before blocks
|
|
5726
|
-
* @see https://eslint.style/rules/
|
|
5721
|
+
* @see https://eslint.style/rules/space-before-blocks
|
|
5727
5722
|
*/
|
|
5728
5723
|
'stylistic/space-before-blocks'?: Linter.RuleEntry<StylisticSpaceBeforeBlocks>;
|
|
5729
5724
|
/**
|
|
5730
5725
|
* Enforce consistent spacing before function parenthesis
|
|
5731
|
-
* @see https://eslint.style/rules/
|
|
5726
|
+
* @see https://eslint.style/rules/space-before-function-paren
|
|
5732
5727
|
*/
|
|
5733
5728
|
'stylistic/space-before-function-paren'?: Linter.RuleEntry<StylisticSpaceBeforeFunctionParen>;
|
|
5734
5729
|
/**
|
|
5735
5730
|
* Enforce consistent spacing inside parentheses
|
|
5736
|
-
* @see https://eslint.style/rules/
|
|
5731
|
+
* @see https://eslint.style/rules/space-in-parens
|
|
5737
5732
|
*/
|
|
5738
5733
|
'stylistic/space-in-parens'?: Linter.RuleEntry<StylisticSpaceInParens>;
|
|
5739
5734
|
/**
|
|
5740
5735
|
* Require spacing around infix operators
|
|
5741
|
-
* @see https://eslint.style/rules/
|
|
5736
|
+
* @see https://eslint.style/rules/space-infix-ops
|
|
5742
5737
|
*/
|
|
5743
5738
|
'stylistic/space-infix-ops'?: Linter.RuleEntry<StylisticSpaceInfixOps>;
|
|
5744
5739
|
/**
|
|
5745
5740
|
* Enforce consistent spacing before or after unary operators
|
|
5746
|
-
* @see https://eslint.style/rules/
|
|
5741
|
+
* @see https://eslint.style/rules/space-unary-ops
|
|
5747
5742
|
*/
|
|
5748
5743
|
'stylistic/space-unary-ops'?: Linter.RuleEntry<StylisticSpaceUnaryOps>;
|
|
5749
5744
|
/**
|
|
5750
5745
|
* Enforce consistent spacing after the `//` or `/*` in a comment
|
|
5751
|
-
* @see https://eslint.style/rules/
|
|
5746
|
+
* @see https://eslint.style/rules/spaced-comment
|
|
5752
5747
|
*/
|
|
5753
5748
|
'stylistic/spaced-comment'?: Linter.RuleEntry<StylisticSpacedComment>;
|
|
5754
5749
|
/**
|
|
5755
5750
|
* Enforce spacing around colons of switch statements
|
|
5756
|
-
* @see https://eslint.style/rules/
|
|
5751
|
+
* @see https://eslint.style/rules/switch-colon-spacing
|
|
5757
5752
|
*/
|
|
5758
5753
|
'stylistic/switch-colon-spacing'?: Linter.RuleEntry<StylisticSwitchColonSpacing>;
|
|
5759
5754
|
/**
|
|
5760
5755
|
* Require or disallow spacing around embedded expressions of template strings
|
|
5761
|
-
* @see https://eslint.style/rules/
|
|
5756
|
+
* @see https://eslint.style/rules/template-curly-spacing
|
|
5762
5757
|
*/
|
|
5763
5758
|
'stylistic/template-curly-spacing'?: Linter.RuleEntry<StylisticTemplateCurlySpacing>;
|
|
5764
5759
|
/**
|
|
5765
5760
|
* Require or disallow spacing between template tags and their literals
|
|
5766
|
-
* @see https://eslint.style/rules/
|
|
5761
|
+
* @see https://eslint.style/rules/template-tag-spacing
|
|
5767
5762
|
*/
|
|
5768
5763
|
'stylistic/template-tag-spacing'?: Linter.RuleEntry<StylisticTemplateTagSpacing>;
|
|
5769
5764
|
/**
|
|
5770
5765
|
* Require consistent spacing around type annotations
|
|
5771
|
-
* @see https://eslint.style/rules/
|
|
5766
|
+
* @see https://eslint.style/rules/type-annotation-spacing
|
|
5772
5767
|
*/
|
|
5773
5768
|
'stylistic/type-annotation-spacing'?: Linter.RuleEntry<StylisticTypeAnnotationSpacing>;
|
|
5774
5769
|
/**
|
|
5775
5770
|
* Enforces consistent spacing inside TypeScript type generics
|
|
5776
|
-
* @see https://eslint.style/rules/
|
|
5771
|
+
* @see https://eslint.style/rules/type-generic-spacing
|
|
5777
5772
|
*/
|
|
5778
5773
|
'stylistic/type-generic-spacing'?: Linter.RuleEntry<[]>;
|
|
5779
5774
|
/**
|
|
5780
5775
|
* Expect space before the type declaration in the named tuple
|
|
5781
|
-
* @see https://eslint.style/rules/
|
|
5776
|
+
* @see https://eslint.style/rules/type-named-tuple-spacing
|
|
5782
5777
|
*/
|
|
5783
5778
|
'stylistic/type-named-tuple-spacing'?: Linter.RuleEntry<[]>;
|
|
5784
5779
|
/**
|
|
5785
5780
|
* Require parentheses around immediate `function` invocations
|
|
5786
|
-
* @see https://eslint.style/rules/
|
|
5781
|
+
* @see https://eslint.style/rules/wrap-iife
|
|
5787
5782
|
*/
|
|
5788
5783
|
'stylistic/wrap-iife'?: Linter.RuleEntry<StylisticWrapIife>;
|
|
5789
5784
|
/**
|
|
5790
5785
|
* Require parenthesis around regex literals
|
|
5791
|
-
* @see https://eslint.style/rules/
|
|
5786
|
+
* @see https://eslint.style/rules/wrap-regex
|
|
5792
5787
|
*/
|
|
5793
5788
|
'stylistic/wrap-regex'?: Linter.RuleEntry<[]>;
|
|
5794
5789
|
/**
|
|
5795
5790
|
* Require or disallow spacing around the `*` in `yield*` expressions
|
|
5796
|
-
* @see https://eslint.style/rules/
|
|
5791
|
+
* @see https://eslint.style/rules/yield-star-spacing
|
|
5797
5792
|
*/
|
|
5798
5793
|
'stylistic/yield-star-spacing'?: Linter.RuleEntry<StylisticYieldStarSpacing>;
|
|
5799
5794
|
/**
|
|
@@ -10550,16 +10545,6 @@ type StylisticCurlyNewline = [] | [(("always" | "never") | {
|
|
|
10550
10545
|
minElements?: number;
|
|
10551
10546
|
consistent?: boolean;
|
|
10552
10547
|
});
|
|
10553
|
-
TSEnumBody?: (("always" | "never") | {
|
|
10554
|
-
multiline?: boolean;
|
|
10555
|
-
minElements?: number;
|
|
10556
|
-
consistent?: boolean;
|
|
10557
|
-
});
|
|
10558
|
-
TSInterfaceBody?: (("always" | "never") | {
|
|
10559
|
-
multiline?: boolean;
|
|
10560
|
-
minElements?: number;
|
|
10561
|
-
consistent?: boolean;
|
|
10562
|
-
});
|
|
10563
10548
|
TSModuleBlock?: (("always" | "never") | {
|
|
10564
10549
|
multiline?: boolean;
|
|
10565
10550
|
minElements?: number;
|
|
@@ -10573,14 +10558,6 @@ type StylisticCurlyNewline = [] | [(("always" | "never") | {
|
|
|
10573
10558
|
type StylisticDotLocation = [] | [("object" | "property")];
|
|
10574
10559
|
// ----- stylistic/eol-last -----
|
|
10575
10560
|
type StylisticEolLast = [] | [("always" | "never" | "unix" | "windows")];
|
|
10576
|
-
// ----- stylistic/func-call-spacing -----
|
|
10577
|
-
type StylisticFuncCallSpacing = ([] | ["never"] | [] | ["always"] | ["always", {
|
|
10578
|
-
allowNewlines?: boolean;
|
|
10579
|
-
optionalChain?: {
|
|
10580
|
-
before?: boolean;
|
|
10581
|
-
after?: boolean;
|
|
10582
|
-
};
|
|
10583
|
-
}]);
|
|
10584
10561
|
// ----- stylistic/function-call-argument-newline -----
|
|
10585
10562
|
type StylisticFunctionCallArgumentNewline = [] | [("always" | "never" | "consistent")];
|
|
10586
10563
|
// ----- stylistic/function-call-spacing -----
|
|
@@ -10621,6 +10598,7 @@ type StylisticIndent = [] | [("tab" | number)] | [("tab" | number), {
|
|
|
10621
10598
|
var?: (number | ("first" | "off"));
|
|
10622
10599
|
let?: (number | ("first" | "off"));
|
|
10623
10600
|
const?: (number | ("first" | "off"));
|
|
10601
|
+
using?: (number | ("first" | "off"));
|
|
10624
10602
|
});
|
|
10625
10603
|
outerIIFEBody?: (number | "off");
|
|
10626
10604
|
MemberExpression?: (number | "off");
|
|
@@ -10755,8 +10733,8 @@ type StylisticJsxSortProps = [] | [{
|
|
|
10755
10733
|
multiline?: ("ignore" | "first" | "last");
|
|
10756
10734
|
ignoreCase?: boolean;
|
|
10757
10735
|
noSortAlphabetically?: boolean;
|
|
10758
|
-
reservedFirst?: (
|
|
10759
|
-
reservedLast?:
|
|
10736
|
+
reservedFirst?: (string[] | boolean);
|
|
10737
|
+
reservedLast?: string[];
|
|
10760
10738
|
locale?: string;
|
|
10761
10739
|
}];
|
|
10762
10740
|
// ----- stylistic/jsx-tag-spacing -----
|
|
@@ -11101,6 +11079,10 @@ type StylisticKeywordSpacing = [] | [{
|
|
|
11101
11079
|
before?: boolean;
|
|
11102
11080
|
after?: boolean;
|
|
11103
11081
|
};
|
|
11082
|
+
using?: {
|
|
11083
|
+
before?: boolean;
|
|
11084
|
+
after?: boolean;
|
|
11085
|
+
};
|
|
11104
11086
|
yield?: {
|
|
11105
11087
|
before?: boolean;
|
|
11106
11088
|
after?: boolean;
|
|
@@ -11303,6 +11285,11 @@ type StylisticNoExtraParens = ([] | ["functions"] | [] | ["all"] | ["all", {
|
|
|
11303
11285
|
enforceForFunctionPrototypeMethods?: boolean;
|
|
11304
11286
|
allowParensAfterCommentPattern?: string;
|
|
11305
11287
|
nestedConditionalExpressions?: boolean;
|
|
11288
|
+
allowNodesInSpreadElement?: {
|
|
11289
|
+
ConditionalExpression?: boolean;
|
|
11290
|
+
LogicalExpression?: boolean;
|
|
11291
|
+
AwaitExpression?: boolean;
|
|
11292
|
+
};
|
|
11306
11293
|
}]);
|
|
11307
11294
|
// ----- stylistic/no-mixed-operators -----
|
|
11308
11295
|
type StylisticNoMixedOperators = [] | [{
|
|
@@ -11380,6 +11367,11 @@ type StylisticObjectCurlyNewline = [] | [((("always" | "never") | {
|
|
|
11380
11367
|
minProperties?: number;
|
|
11381
11368
|
consistent?: boolean;
|
|
11382
11369
|
});
|
|
11370
|
+
TSEnumBody?: (("always" | "never") | {
|
|
11371
|
+
multiline?: boolean;
|
|
11372
|
+
minProperties?: number;
|
|
11373
|
+
consistent?: boolean;
|
|
11374
|
+
});
|
|
11383
11375
|
})];
|
|
11384
11376
|
// ----- stylistic/object-curly-spacing -----
|
|
11385
11377
|
type StylisticObjectCurlySpacing = [] | [("always" | "never")] | [("always" | "never"), {
|
|
@@ -11389,7 +11381,6 @@ type StylisticObjectCurlySpacing = [] | [("always" | "never")] | [("always" | "n
|
|
|
11389
11381
|
// ----- stylistic/object-property-newline -----
|
|
11390
11382
|
type StylisticObjectPropertyNewline = [] | [{
|
|
11391
11383
|
allowAllPropertiesOnSameLine?: boolean;
|
|
11392
|
-
allowMultiplePropertiesPerLine?: boolean;
|
|
11393
11384
|
}];
|
|
11394
11385
|
// ----- stylistic/one-var-declaration-per-line -----
|
|
11395
11386
|
type StylisticOneVarDeclarationPerLine = [] | [("always" | "initializations")];
|
|
@@ -11413,7 +11404,7 @@ type StylisticPaddedBlocks = [] | [(("always" | "never" | "start" | "end") | {
|
|
|
11413
11404
|
}];
|
|
11414
11405
|
// ----- stylistic/padding-line-between-statements -----
|
|
11415
11406
|
type _StylisticPaddingLineBetweenStatementsPaddingType = ("any" | "never" | "always");
|
|
11416
|
-
type _StylisticPaddingLineBetweenStatementsStatementType = (("*" | "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"))[]]);
|
|
11407
|
+
type _StylisticPaddingLineBetweenStatementsStatementType = (("*" | "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"))[]]);
|
|
11417
11408
|
type StylisticPaddingLineBetweenStatements = {
|
|
11418
11409
|
blankLine: _StylisticPaddingLineBetweenStatementsPaddingType;
|
|
11419
11410
|
prev: _StylisticPaddingLineBetweenStatementsStatementType;
|
|
@@ -11452,12 +11443,14 @@ type StylisticSpaceBeforeBlocks = [] | [(("always" | "never") | {
|
|
|
11452
11443
|
keywords?: ("always" | "never" | "off");
|
|
11453
11444
|
functions?: ("always" | "never" | "off");
|
|
11454
11445
|
classes?: ("always" | "never" | "off");
|
|
11446
|
+
modules?: ("always" | "never" | "off");
|
|
11455
11447
|
})];
|
|
11456
11448
|
// ----- stylistic/space-before-function-paren -----
|
|
11457
11449
|
type StylisticSpaceBeforeFunctionParen = [] | [(("always" | "never") | {
|
|
11458
11450
|
anonymous?: ("always" | "never" | "ignore");
|
|
11459
11451
|
named?: ("always" | "never" | "ignore");
|
|
11460
11452
|
asyncArrow?: ("always" | "never" | "ignore");
|
|
11453
|
+
catch?: ("always" | "never" | "ignore");
|
|
11461
11454
|
})];
|
|
11462
11455
|
// ----- stylistic/space-in-parens -----
|
|
11463
11456
|
type StylisticSpaceInParens = [] | [("always" | "never")] | [("always" | "never"), {
|
|
@@ -12077,6 +12070,7 @@ interface _TsNamingConvention_MatchRegexConfig {
|
|
|
12077
12070
|
}
|
|
12078
12071
|
// ----- ts/no-base-to-string -----
|
|
12079
12072
|
type TsNoBaseToString = [] | [{
|
|
12073
|
+
checkUnknown?: boolean;
|
|
12080
12074
|
ignoredTypeNames?: string[];
|
|
12081
12075
|
}];
|
|
12082
12076
|
// ----- ts/no-confusing-void-expression -----
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@2digits/eslint-config",
|
|
3
|
-
"version": "4.6.
|
|
3
|
+
"version": "4.6.7",
|
|
4
4
|
"description": "Effortlessly enforce best practices and catch errors with this comprehensive ESLint configuration for TypeScript, featuring popular plugins like @typescript-eslint, eslint-plugin-react, and eslint-plugin-unicorn.",
|
|
5
5
|
"homepage": "https://2d-configs.vercel.app/",
|
|
6
6
|
"repository": {
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
"@eslint/markdown": "6.6.0",
|
|
35
35
|
"@graphql-eslint/eslint-plugin": "4.4.0",
|
|
36
36
|
"@next/eslint-plugin-next": "15.3.4",
|
|
37
|
-
"@stylistic/eslint-plugin": "
|
|
38
|
-
"@tanstack/eslint-plugin-query": "5.81.
|
|
39
|
-
"@typescript-eslint/parser": "8.
|
|
40
|
-
"@typescript-eslint/utils": "8.
|
|
37
|
+
"@stylistic/eslint-plugin": "5.0.0",
|
|
38
|
+
"@tanstack/eslint-plugin-query": "5.81.2",
|
|
39
|
+
"@typescript-eslint/parser": "8.35.0",
|
|
40
|
+
"@typescript-eslint/utils": "8.35.0",
|
|
41
41
|
"eslint-config-flat-gitignore": "2.1.0",
|
|
42
42
|
"eslint-config-prettier": "10.1.5",
|
|
43
43
|
"eslint-flat-config-utils": "2.1.0",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"eslint-plugin-antfu": "3.1.1",
|
|
46
46
|
"eslint-plugin-de-morgan": "1.3.0",
|
|
47
47
|
"eslint-plugin-drizzle": "0.2.3",
|
|
48
|
-
"eslint-plugin-jsdoc": "51.
|
|
48
|
+
"eslint-plugin-jsdoc": "51.2.2",
|
|
49
49
|
"eslint-plugin-jsonc": "2.20.1",
|
|
50
50
|
"eslint-plugin-n": "17.20.0",
|
|
51
51
|
"eslint-plugin-pnpm": "0.3.1",
|
|
@@ -63,10 +63,10 @@
|
|
|
63
63
|
"graphql-config": "5.1.5",
|
|
64
64
|
"jsonc-eslint-parser": "2.4.0",
|
|
65
65
|
"local-pkg": "1.1.1",
|
|
66
|
-
"typescript-eslint": "8.
|
|
66
|
+
"typescript-eslint": "8.35.0",
|
|
67
67
|
"yaml-eslint-parser": "1.3.0",
|
|
68
68
|
"@2digits/constants": "1.1.2",
|
|
69
|
-
"@2digits/eslint-plugin": "3.1.
|
|
69
|
+
"@2digits/eslint-plugin": "3.1.5"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@eslint/config-inspector": "1.1.0",
|