@w5s/eslint-config 3.1.0 → 3.2.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.
@@ -452,6 +452,11 @@ export interface RuleOptions {
452
452
  * @see https://typescript-eslint.io/rules/no-unused-expressions
453
453
  */
454
454
  'ts/no-unused-expressions'?: Linter.RuleEntry<TsNoUnusedExpressions>
455
+ /**
456
+ * Disallow unused private class members
457
+ * @see https://typescript-eslint.io/rules/no-unused-private-class-members
458
+ */
459
+ 'ts/no-unused-private-class-members'?: Linter.RuleEntry<[]>
455
460
  /**
456
461
  * Disallow unused variables
457
462
  * @see https://typescript-eslint.io/rules/no-unused-vars
@@ -467,6 +472,11 @@ export interface RuleOptions {
467
472
  * @see https://typescript-eslint.io/rules/no-useless-constructor
468
473
  */
469
474
  'ts/no-useless-constructor'?: Linter.RuleEntry<[]>
475
+ /**
476
+ * Disallow default values that will never be used
477
+ * @see https://typescript-eslint.io/rules/no-useless-default-assignment
478
+ */
479
+ 'ts/no-useless-default-assignment'?: Linter.RuleEntry<[]>
470
480
  /**
471
481
  * Disallow empty exports that don't change anything in a module file
472
482
  * @see https://typescript-eslint.io/rules/no-useless-empty-export
@@ -640,6 +650,11 @@ export interface RuleOptions {
640
650
  * @see https://typescript-eslint.io/rules/strict-boolean-expressions
641
651
  */
642
652
  'ts/strict-boolean-expressions'?: Linter.RuleEntry<TsStrictBooleanExpressions>
653
+ /**
654
+ * Disallow passing a value-returning function in a position accepting a void function
655
+ * @see https://typescript-eslint.io/rules/strict-void-return
656
+ */
657
+ 'ts/strict-void-return'?: Linter.RuleEntry<TsStrictVoidReturn>
643
658
  /**
644
659
  * Require switch-case statements to be exhaustive
645
660
  * @see https://typescript-eslint.io/rules/switch-exhaustiveness-check
@@ -1534,6 +1549,11 @@ type TsNoUnusedVars = []|[(("all" | "local") | {
1534
1549
 
1535
1550
  destructuredArrayIgnorePattern?: string
1536
1551
 
1552
+ enableAutofixRemoval?: {
1553
+
1554
+ imports?: boolean
1555
+ }
1556
+
1537
1557
  ignoreClassWithStaticInitBlock?: boolean
1538
1558
 
1539
1559
  ignoreRestSiblings?: boolean
@@ -1818,6 +1838,11 @@ type TsStrictBooleanExpressions = []|[{
1818
1838
 
1819
1839
  allowString?: boolean
1820
1840
  }]
1841
+ // ----- ts/strict-void-return -----
1842
+ type TsStrictVoidReturn = []|[{
1843
+
1844
+ allowReturnAny?: boolean
1845
+ }]
1821
1846
  // ----- ts/switch-exhaustiveness-check -----
1822
1847
  type TsSwitchExhaustivenessCheck = []|[{
1823
1848