@bfra.me/eslint-config 0.16.0 → 0.16.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/lib/index.d.ts CHANGED
@@ -165,7 +165,7 @@ interface Rules {
165
165
  * Disallow using code marked as `@deprecated`
166
166
  * @see https://typescript-eslint.io/rules/no-deprecated
167
167
  */
168
- '@typescript-eslint/no-deprecated'?: Linter.RuleEntry<[]>
168
+ '@typescript-eslint/no-deprecated'?: Linter.RuleEntry<TypescriptEslintNoDeprecated>
169
169
  /**
170
170
  * Disallow duplicate class members
171
171
  * @see https://typescript-eslint.io/rules/no-dupe-class-members
@@ -283,6 +283,11 @@ interface Rules {
283
283
  * @see https://typescript-eslint.io/rules/no-misused-promises
284
284
  */
285
285
  '@typescript-eslint/no-misused-promises'?: Linter.RuleEntry<TypescriptEslintNoMisusedPromises>
286
+ /**
287
+ * Disallow using the spread operator when it might cause unexpected behavior
288
+ * @see https://typescript-eslint.io/rules/no-misused-spread
289
+ */
290
+ '@typescript-eslint/no-misused-spread'?: Linter.RuleEntry<TypescriptEslintNoMisusedSpread>
286
291
  /**
287
292
  * Disallow enums from having both number and string members
288
293
  * @see https://typescript-eslint.io/rules/no-mixed-enums
@@ -810,7 +815,7 @@ interface Rules {
810
815
  */
811
816
  'default-case'?: Linter.RuleEntry<DefaultCase>
812
817
  /**
813
- * Enforce `default` clauses in switch statements to be last
818
+ * Enforce `default` clauses in `switch` statements to be last
814
819
  * @see https://eslint.org/docs/latest/rules/default-case-last
815
820
  */
816
821
  'default-case-last'?: Linter.RuleEntry<[]>
@@ -3670,7 +3675,7 @@ interface Rules {
3670
3675
  */
3671
3676
  'semi-style'?: Linter.RuleEntry<SemiStyle>
3672
3677
  /**
3673
- * Enforce sorted import declarations within modules
3678
+ * Enforce sorted `import` declarations within modules
3674
3679
  * @see https://eslint.org/docs/latest/rules/sort-imports
3675
3680
  */
3676
3681
  'sort-imports'?: Linter.RuleEntry<SortImports>
@@ -5124,6 +5129,8 @@ type TypescriptEslintConsistentTypeAssertions = []|[({
5124
5129
  assertionStyle: "never"
5125
5130
  } | {
5126
5131
 
5132
+ arrayLiteralTypeAssertions?: ("allow" | "allow-as-parameter" | "never")
5133
+
5127
5134
  assertionStyle?: ("as" | "angle-bracket")
5128
5135
 
5129
5136
  objectLiteralTypeAssertions?: ("allow" | "allow-as-parameter" | "never")
@@ -5580,6 +5587,22 @@ type TypescriptEslintNoConfusingVoidExpression = []|[{
5580
5587
 
5581
5588
  ignoreVoidReturningFunctions?: boolean
5582
5589
  }]
5590
+ // ----- @typescript-eslint/no-deprecated -----
5591
+ type TypescriptEslintNoDeprecated = []|[{
5592
+
5593
+ allow?: (string | {
5594
+ from: "file"
5595
+ name: (string | [string, ...(string)[]])
5596
+ path?: string
5597
+ } | {
5598
+ from: "lib"
5599
+ name: (string | [string, ...(string)[]])
5600
+ } | {
5601
+ from: "package"
5602
+ name: (string | [string, ...(string)[]])
5603
+ package: string
5604
+ })[]
5605
+ }]
5583
5606
  // ----- @typescript-eslint/no-duplicate-type-constituents -----
5584
5607
  type TypescriptEslintNoDuplicateTypeConstituents = []|[{
5585
5608
 
@@ -5721,6 +5744,22 @@ type TypescriptEslintNoMisusedPromises = []|[{
5721
5744
  variables?: boolean
5722
5745
  })
5723
5746
  }]
5747
+ // ----- @typescript-eslint/no-misused-spread -----
5748
+ type TypescriptEslintNoMisusedSpread = []|[{
5749
+
5750
+ allow?: (string | {
5751
+ from: "file"
5752
+ name: (string | [string, ...(string)[]])
5753
+ path?: string
5754
+ } | {
5755
+ from: "lib"
5756
+ name: (string | [string, ...(string)[]])
5757
+ } | {
5758
+ from: "package"
5759
+ name: (string | [string, ...(string)[]])
5760
+ package: string
5761
+ })[]
5762
+ }]
5724
5763
  // ----- @typescript-eslint/no-namespace -----
5725
5764
  type TypescriptEslintNoNamespace = []|[{
5726
5765
 
@@ -5796,7 +5835,7 @@ type TypescriptEslintNoShadow = []|[{
5796
5835
 
5797
5836
  builtinGlobals?: boolean
5798
5837
 
5799
- hoist?: ("all" | "functions" | "never")
5838
+ hoist?: ("all" | "functions" | "functions-and-types" | "never" | "types")
5800
5839
 
5801
5840
  ignoreFunctionTypeParameterNameValueShadow?: boolean
5802
5841
 
package/lib/index.js CHANGED
@@ -654,7 +654,7 @@ __name(jsdoc, "jsdoc");
654
654
  import { fileURLToPath } from "node:url";
655
655
 
656
656
  // package.json
657
- var version = "0.16.0";
657
+ var version = "0.16.1";
658
658
 
659
659
  // src/parsers/any-parser.ts
660
660
  var lineBreakPattern = /\r\n|[\n\r\u2028\u2029]/u;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bfra.me/eslint-config",
3
- "version": "0.16.0",
3
+ "version": "0.16.1",
4
4
  "description": "Shared ESLint configuration for bfra.me",
5
5
  "keywords": [
6
6
  "bfra.me",
@@ -59,25 +59,25 @@
59
59
  "local-pkg": "0.5.1",
60
60
  "package-manager-detector": "0.2.8",
61
61
  "pkg-dir": "8.0.0",
62
- "typescript-eslint": "8.19.0"
62
+ "typescript-eslint": "8.20.0"
63
63
  },
64
64
  "devDependencies": {
65
- "@eslint/config-inspector": "0.6.0",
66
- "@eslint/js": "9.17.0",
65
+ "@eslint/config-inspector": "1.0.0",
66
+ "@eslint/js": "9.18.0",
67
67
  "@types/eslint-config-prettier": "6.11.3",
68
- "@typescript-eslint/types": "8.19.0",
69
- "@vitest/eslint-plugin": "1.1.24",
70
- "eslint": "9.17.0",
68
+ "@typescript-eslint/types": "8.20.0",
69
+ "@vitest/eslint-plugin": "1.1.25",
70
+ "eslint": "9.18.0",
71
71
  "eslint-config-prettier": "9.1.0",
72
72
  "eslint-plugin-no-only-tests": "3.3.0",
73
73
  "eslint-plugin-node-dependencies": "0.12.0",
74
- "eslint-plugin-prettier": "5.2.1",
74
+ "eslint-plugin-prettier": "5.2.2",
75
75
  "eslint-typegen": "0.3.2",
76
76
  "tsup": "8.3.5",
77
77
  "tsx": "4.19.2",
78
- "@bfra.me/eslint-config": "0.16.0",
79
- "@bfra.me/tsconfig": "0.9.7",
80
- "@bfra.me/prettier-config": "0.14.0"
78
+ "@bfra.me/eslint-config": "0.16.1",
79
+ "@bfra.me/prettier-config": "0.14.1",
80
+ "@bfra.me/tsconfig": "0.9.7"
81
81
  },
82
82
  "peerDependencies": {
83
83
  "@vitest/eslint-plugin": "^1.1.21",
package/src/rules.d.ts CHANGED
@@ -158,7 +158,7 @@ export interface Rules {
158
158
  * Disallow using code marked as `@deprecated`
159
159
  * @see https://typescript-eslint.io/rules/no-deprecated
160
160
  */
161
- '@typescript-eslint/no-deprecated'?: Linter.RuleEntry<[]>
161
+ '@typescript-eslint/no-deprecated'?: Linter.RuleEntry<TypescriptEslintNoDeprecated>
162
162
  /**
163
163
  * Disallow duplicate class members
164
164
  * @see https://typescript-eslint.io/rules/no-dupe-class-members
@@ -276,6 +276,11 @@ export interface Rules {
276
276
  * @see https://typescript-eslint.io/rules/no-misused-promises
277
277
  */
278
278
  '@typescript-eslint/no-misused-promises'?: Linter.RuleEntry<TypescriptEslintNoMisusedPromises>
279
+ /**
280
+ * Disallow using the spread operator when it might cause unexpected behavior
281
+ * @see https://typescript-eslint.io/rules/no-misused-spread
282
+ */
283
+ '@typescript-eslint/no-misused-spread'?: Linter.RuleEntry<TypescriptEslintNoMisusedSpread>
279
284
  /**
280
285
  * Disallow enums from having both number and string members
281
286
  * @see https://typescript-eslint.io/rules/no-mixed-enums
@@ -803,7 +808,7 @@ export interface Rules {
803
808
  */
804
809
  'default-case'?: Linter.RuleEntry<DefaultCase>
805
810
  /**
806
- * Enforce `default` clauses in switch statements to be last
811
+ * Enforce `default` clauses in `switch` statements to be last
807
812
  * @see https://eslint.org/docs/latest/rules/default-case-last
808
813
  */
809
814
  'default-case-last'?: Linter.RuleEntry<[]>
@@ -3663,7 +3668,7 @@ export interface Rules {
3663
3668
  */
3664
3669
  'semi-style'?: Linter.RuleEntry<SemiStyle>
3665
3670
  /**
3666
- * Enforce sorted import declarations within modules
3671
+ * Enforce sorted `import` declarations within modules
3667
3672
  * @see https://eslint.org/docs/latest/rules/sort-imports
3668
3673
  */
3669
3674
  'sort-imports'?: Linter.RuleEntry<SortImports>
@@ -5117,6 +5122,8 @@ type TypescriptEslintConsistentTypeAssertions = []|[({
5117
5122
  assertionStyle: "never"
5118
5123
  } | {
5119
5124
 
5125
+ arrayLiteralTypeAssertions?: ("allow" | "allow-as-parameter" | "never")
5126
+
5120
5127
  assertionStyle?: ("as" | "angle-bracket")
5121
5128
 
5122
5129
  objectLiteralTypeAssertions?: ("allow" | "allow-as-parameter" | "never")
@@ -5573,6 +5580,22 @@ type TypescriptEslintNoConfusingVoidExpression = []|[{
5573
5580
 
5574
5581
  ignoreVoidReturningFunctions?: boolean
5575
5582
  }]
5583
+ // ----- @typescript-eslint/no-deprecated -----
5584
+ type TypescriptEslintNoDeprecated = []|[{
5585
+
5586
+ allow?: (string | {
5587
+ from: "file"
5588
+ name: (string | [string, ...(string)[]])
5589
+ path?: string
5590
+ } | {
5591
+ from: "lib"
5592
+ name: (string | [string, ...(string)[]])
5593
+ } | {
5594
+ from: "package"
5595
+ name: (string | [string, ...(string)[]])
5596
+ package: string
5597
+ })[]
5598
+ }]
5576
5599
  // ----- @typescript-eslint/no-duplicate-type-constituents -----
5577
5600
  type TypescriptEslintNoDuplicateTypeConstituents = []|[{
5578
5601
 
@@ -5714,6 +5737,22 @@ type TypescriptEslintNoMisusedPromises = []|[{
5714
5737
  variables?: boolean
5715
5738
  })
5716
5739
  }]
5740
+ // ----- @typescript-eslint/no-misused-spread -----
5741
+ type TypescriptEslintNoMisusedSpread = []|[{
5742
+
5743
+ allow?: (string | {
5744
+ from: "file"
5745
+ name: (string | [string, ...(string)[]])
5746
+ path?: string
5747
+ } | {
5748
+ from: "lib"
5749
+ name: (string | [string, ...(string)[]])
5750
+ } | {
5751
+ from: "package"
5752
+ name: (string | [string, ...(string)[]])
5753
+ package: string
5754
+ })[]
5755
+ }]
5717
5756
  // ----- @typescript-eslint/no-namespace -----
5718
5757
  type TypescriptEslintNoNamespace = []|[{
5719
5758
 
@@ -5789,7 +5828,7 @@ type TypescriptEslintNoShadow = []|[{
5789
5828
 
5790
5829
  builtinGlobals?: boolean
5791
5830
 
5792
- hoist?: ("all" | "functions" | "never")
5831
+ hoist?: ("all" | "functions" | "functions-and-types" | "never" | "types")
5793
5832
 
5794
5833
  ignoreFunctionTypeParameterNameValueShadow?: boolean
5795
5834