@lichthagel/eslint-config 1.0.11 → 1.0.12
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.cts +51 -10
- package/dist/index.d.ts +51 -10
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -635,7 +635,7 @@ interface RuleOptions {
|
|
|
635
635
|
* Disallow using code marked as `@deprecated`
|
|
636
636
|
* @see https://typescript-eslint.io/rules/no-deprecated
|
|
637
637
|
*/
|
|
638
|
-
'@typescript-eslint/no-deprecated'?: Linter.RuleEntry<
|
|
638
|
+
'@typescript-eslint/no-deprecated'?: Linter.RuleEntry<TypescriptEslintNoDeprecated>
|
|
639
639
|
/**
|
|
640
640
|
* Disallow duplicate class members
|
|
641
641
|
* @see https://typescript-eslint.io/rules/no-dupe-class-members
|
|
@@ -753,6 +753,11 @@ interface RuleOptions {
|
|
|
753
753
|
* @see https://typescript-eslint.io/rules/no-misused-promises
|
|
754
754
|
*/
|
|
755
755
|
'@typescript-eslint/no-misused-promises'?: Linter.RuleEntry<TypescriptEslintNoMisusedPromises>
|
|
756
|
+
/**
|
|
757
|
+
* Disallow using the spread operator when it might cause unexpected behavior
|
|
758
|
+
* @see https://typescript-eslint.io/rules/no-misused-spread
|
|
759
|
+
*/
|
|
760
|
+
'@typescript-eslint/no-misused-spread'?: Linter.RuleEntry<TypescriptEslintNoMisusedSpread>
|
|
756
761
|
/**
|
|
757
762
|
* Disallow enums from having both number and string members
|
|
758
763
|
* @see https://typescript-eslint.io/rules/no-mixed-enums
|
|
@@ -4557,6 +4562,7 @@ type StylisticKeySpacing = []|[({
|
|
|
4557
4562
|
mode?: ("strict" | "minimum")
|
|
4558
4563
|
beforeColon?: boolean
|
|
4559
4564
|
afterColon?: boolean
|
|
4565
|
+
ignoredNodes?: ("ObjectExpression" | "ObjectPattern" | "ImportDeclaration" | "ExportNamedDeclaration" | "ExportAllDeclaration" | "TSTypeLiteral" | "TSInterfaceBody" | "ClassBody")[]
|
|
4560
4566
|
} | {
|
|
4561
4567
|
singleLine?: {
|
|
4562
4568
|
mode?: ("strict" | "minimum")
|
|
@@ -5072,6 +5078,7 @@ type StylisticNoExtraParens = ([]|["functions"] | []|["all"]|["all", {
|
|
|
5072
5078
|
enforceForNewInMemberExpressions?: boolean
|
|
5073
5079
|
enforceForFunctionPrototypeMethods?: boolean
|
|
5074
5080
|
allowParensAfterCommentPattern?: string
|
|
5081
|
+
nestedConditionalExpressions?: boolean
|
|
5075
5082
|
}])
|
|
5076
5083
|
// ----- @stylistic/no-mixed-operators -----
|
|
5077
5084
|
type StylisticNoMixedOperators = []|[{
|
|
@@ -5169,14 +5176,14 @@ type StylisticOperatorLinebreak = []|[(("after" | "before" | "none") | null)]|[(
|
|
|
5169
5176
|
}
|
|
5170
5177
|
}]
|
|
5171
5178
|
// ----- @stylistic/padded-blocks -----
|
|
5172
|
-
type StylisticPaddedBlocks = []|[(("always" | "never") | {
|
|
5173
|
-
blocks?: ("always" | "never")
|
|
5174
|
-
switches?: ("always" | "never")
|
|
5175
|
-
classes?: ("always" | "never")
|
|
5176
|
-
})]|[(("always" | "never") | {
|
|
5177
|
-
blocks?: ("always" | "never")
|
|
5178
|
-
switches?: ("always" | "never")
|
|
5179
|
-
classes?: ("always" | "never")
|
|
5179
|
+
type StylisticPaddedBlocks = []|[(("always" | "never" | "start" | "end") | {
|
|
5180
|
+
blocks?: ("always" | "never" | "start" | "end")
|
|
5181
|
+
switches?: ("always" | "never" | "start" | "end")
|
|
5182
|
+
classes?: ("always" | "never" | "start" | "end")
|
|
5183
|
+
})]|[(("always" | "never" | "start" | "end") | {
|
|
5184
|
+
blocks?: ("always" | "never" | "start" | "end")
|
|
5185
|
+
switches?: ("always" | "never" | "start" | "end")
|
|
5186
|
+
classes?: ("always" | "never" | "start" | "end")
|
|
5180
5187
|
}), {
|
|
5181
5188
|
allowSingleLineBlocks?: boolean
|
|
5182
5189
|
}]
|
|
@@ -5344,6 +5351,8 @@ type TypescriptEslintConsistentTypeAssertions = []|[({
|
|
|
5344
5351
|
assertionStyle: "never"
|
|
5345
5352
|
} | {
|
|
5346
5353
|
|
|
5354
|
+
arrayLiteralTypeAssertions?: ("allow" | "allow-as-parameter" | "never")
|
|
5355
|
+
|
|
5347
5356
|
assertionStyle?: ("as" | "angle-bracket")
|
|
5348
5357
|
|
|
5349
5358
|
objectLiteralTypeAssertions?: ("allow" | "allow-as-parameter" | "never")
|
|
@@ -5800,6 +5809,22 @@ type TypescriptEslintNoConfusingVoidExpression = []|[{
|
|
|
5800
5809
|
|
|
5801
5810
|
ignoreVoidReturningFunctions?: boolean
|
|
5802
5811
|
}]
|
|
5812
|
+
// ----- @typescript-eslint/no-deprecated -----
|
|
5813
|
+
type TypescriptEslintNoDeprecated = []|[{
|
|
5814
|
+
|
|
5815
|
+
allow?: (string | {
|
|
5816
|
+
from: "file"
|
|
5817
|
+
name: (string | [string, ...(string)[]])
|
|
5818
|
+
path?: string
|
|
5819
|
+
} | {
|
|
5820
|
+
from: "lib"
|
|
5821
|
+
name: (string | [string, ...(string)[]])
|
|
5822
|
+
} | {
|
|
5823
|
+
from: "package"
|
|
5824
|
+
name: (string | [string, ...(string)[]])
|
|
5825
|
+
package: string
|
|
5826
|
+
})[]
|
|
5827
|
+
}]
|
|
5803
5828
|
// ----- @typescript-eslint/no-duplicate-type-constituents -----
|
|
5804
5829
|
type TypescriptEslintNoDuplicateTypeConstituents = []|[{
|
|
5805
5830
|
|
|
@@ -5941,6 +5966,22 @@ type TypescriptEslintNoMisusedPromises = []|[{
|
|
|
5941
5966
|
variables?: boolean
|
|
5942
5967
|
})
|
|
5943
5968
|
}]
|
|
5969
|
+
// ----- @typescript-eslint/no-misused-spread -----
|
|
5970
|
+
type TypescriptEslintNoMisusedSpread = []|[{
|
|
5971
|
+
|
|
5972
|
+
allow?: (string | {
|
|
5973
|
+
from: "file"
|
|
5974
|
+
name: (string | [string, ...(string)[]])
|
|
5975
|
+
path?: string
|
|
5976
|
+
} | {
|
|
5977
|
+
from: "lib"
|
|
5978
|
+
name: (string | [string, ...(string)[]])
|
|
5979
|
+
} | {
|
|
5980
|
+
from: "package"
|
|
5981
|
+
name: (string | [string, ...(string)[]])
|
|
5982
|
+
package: string
|
|
5983
|
+
})[]
|
|
5984
|
+
}]
|
|
5944
5985
|
// ----- @typescript-eslint/no-namespace -----
|
|
5945
5986
|
type TypescriptEslintNoNamespace = []|[{
|
|
5946
5987
|
|
|
@@ -6016,7 +6057,7 @@ type TypescriptEslintNoShadow = []|[{
|
|
|
6016
6057
|
|
|
6017
6058
|
builtinGlobals?: boolean
|
|
6018
6059
|
|
|
6019
|
-
hoist?: ("all" | "functions" | "never")
|
|
6060
|
+
hoist?: ("all" | "functions" | "functions-and-types" | "never" | "types")
|
|
6020
6061
|
|
|
6021
6062
|
ignoreFunctionTypeParameterNameValueShadow?: boolean
|
|
6022
6063
|
|
package/dist/index.d.ts
CHANGED
|
@@ -635,7 +635,7 @@ interface RuleOptions {
|
|
|
635
635
|
* Disallow using code marked as `@deprecated`
|
|
636
636
|
* @see https://typescript-eslint.io/rules/no-deprecated
|
|
637
637
|
*/
|
|
638
|
-
'@typescript-eslint/no-deprecated'?: Linter.RuleEntry<
|
|
638
|
+
'@typescript-eslint/no-deprecated'?: Linter.RuleEntry<TypescriptEslintNoDeprecated>
|
|
639
639
|
/**
|
|
640
640
|
* Disallow duplicate class members
|
|
641
641
|
* @see https://typescript-eslint.io/rules/no-dupe-class-members
|
|
@@ -753,6 +753,11 @@ interface RuleOptions {
|
|
|
753
753
|
* @see https://typescript-eslint.io/rules/no-misused-promises
|
|
754
754
|
*/
|
|
755
755
|
'@typescript-eslint/no-misused-promises'?: Linter.RuleEntry<TypescriptEslintNoMisusedPromises>
|
|
756
|
+
/**
|
|
757
|
+
* Disallow using the spread operator when it might cause unexpected behavior
|
|
758
|
+
* @see https://typescript-eslint.io/rules/no-misused-spread
|
|
759
|
+
*/
|
|
760
|
+
'@typescript-eslint/no-misused-spread'?: Linter.RuleEntry<TypescriptEslintNoMisusedSpread>
|
|
756
761
|
/**
|
|
757
762
|
* Disallow enums from having both number and string members
|
|
758
763
|
* @see https://typescript-eslint.io/rules/no-mixed-enums
|
|
@@ -4557,6 +4562,7 @@ type StylisticKeySpacing = []|[({
|
|
|
4557
4562
|
mode?: ("strict" | "minimum")
|
|
4558
4563
|
beforeColon?: boolean
|
|
4559
4564
|
afterColon?: boolean
|
|
4565
|
+
ignoredNodes?: ("ObjectExpression" | "ObjectPattern" | "ImportDeclaration" | "ExportNamedDeclaration" | "ExportAllDeclaration" | "TSTypeLiteral" | "TSInterfaceBody" | "ClassBody")[]
|
|
4560
4566
|
} | {
|
|
4561
4567
|
singleLine?: {
|
|
4562
4568
|
mode?: ("strict" | "minimum")
|
|
@@ -5072,6 +5078,7 @@ type StylisticNoExtraParens = ([]|["functions"] | []|["all"]|["all", {
|
|
|
5072
5078
|
enforceForNewInMemberExpressions?: boolean
|
|
5073
5079
|
enforceForFunctionPrototypeMethods?: boolean
|
|
5074
5080
|
allowParensAfterCommentPattern?: string
|
|
5081
|
+
nestedConditionalExpressions?: boolean
|
|
5075
5082
|
}])
|
|
5076
5083
|
// ----- @stylistic/no-mixed-operators -----
|
|
5077
5084
|
type StylisticNoMixedOperators = []|[{
|
|
@@ -5169,14 +5176,14 @@ type StylisticOperatorLinebreak = []|[(("after" | "before" | "none") | null)]|[(
|
|
|
5169
5176
|
}
|
|
5170
5177
|
}]
|
|
5171
5178
|
// ----- @stylistic/padded-blocks -----
|
|
5172
|
-
type StylisticPaddedBlocks = []|[(("always" | "never") | {
|
|
5173
|
-
blocks?: ("always" | "never")
|
|
5174
|
-
switches?: ("always" | "never")
|
|
5175
|
-
classes?: ("always" | "never")
|
|
5176
|
-
})]|[(("always" | "never") | {
|
|
5177
|
-
blocks?: ("always" | "never")
|
|
5178
|
-
switches?: ("always" | "never")
|
|
5179
|
-
classes?: ("always" | "never")
|
|
5179
|
+
type StylisticPaddedBlocks = []|[(("always" | "never" | "start" | "end") | {
|
|
5180
|
+
blocks?: ("always" | "never" | "start" | "end")
|
|
5181
|
+
switches?: ("always" | "never" | "start" | "end")
|
|
5182
|
+
classes?: ("always" | "never" | "start" | "end")
|
|
5183
|
+
})]|[(("always" | "never" | "start" | "end") | {
|
|
5184
|
+
blocks?: ("always" | "never" | "start" | "end")
|
|
5185
|
+
switches?: ("always" | "never" | "start" | "end")
|
|
5186
|
+
classes?: ("always" | "never" | "start" | "end")
|
|
5180
5187
|
}), {
|
|
5181
5188
|
allowSingleLineBlocks?: boolean
|
|
5182
5189
|
}]
|
|
@@ -5344,6 +5351,8 @@ type TypescriptEslintConsistentTypeAssertions = []|[({
|
|
|
5344
5351
|
assertionStyle: "never"
|
|
5345
5352
|
} | {
|
|
5346
5353
|
|
|
5354
|
+
arrayLiteralTypeAssertions?: ("allow" | "allow-as-parameter" | "never")
|
|
5355
|
+
|
|
5347
5356
|
assertionStyle?: ("as" | "angle-bracket")
|
|
5348
5357
|
|
|
5349
5358
|
objectLiteralTypeAssertions?: ("allow" | "allow-as-parameter" | "never")
|
|
@@ -5800,6 +5809,22 @@ type TypescriptEslintNoConfusingVoidExpression = []|[{
|
|
|
5800
5809
|
|
|
5801
5810
|
ignoreVoidReturningFunctions?: boolean
|
|
5802
5811
|
}]
|
|
5812
|
+
// ----- @typescript-eslint/no-deprecated -----
|
|
5813
|
+
type TypescriptEslintNoDeprecated = []|[{
|
|
5814
|
+
|
|
5815
|
+
allow?: (string | {
|
|
5816
|
+
from: "file"
|
|
5817
|
+
name: (string | [string, ...(string)[]])
|
|
5818
|
+
path?: string
|
|
5819
|
+
} | {
|
|
5820
|
+
from: "lib"
|
|
5821
|
+
name: (string | [string, ...(string)[]])
|
|
5822
|
+
} | {
|
|
5823
|
+
from: "package"
|
|
5824
|
+
name: (string | [string, ...(string)[]])
|
|
5825
|
+
package: string
|
|
5826
|
+
})[]
|
|
5827
|
+
}]
|
|
5803
5828
|
// ----- @typescript-eslint/no-duplicate-type-constituents -----
|
|
5804
5829
|
type TypescriptEslintNoDuplicateTypeConstituents = []|[{
|
|
5805
5830
|
|
|
@@ -5941,6 +5966,22 @@ type TypescriptEslintNoMisusedPromises = []|[{
|
|
|
5941
5966
|
variables?: boolean
|
|
5942
5967
|
})
|
|
5943
5968
|
}]
|
|
5969
|
+
// ----- @typescript-eslint/no-misused-spread -----
|
|
5970
|
+
type TypescriptEslintNoMisusedSpread = []|[{
|
|
5971
|
+
|
|
5972
|
+
allow?: (string | {
|
|
5973
|
+
from: "file"
|
|
5974
|
+
name: (string | [string, ...(string)[]])
|
|
5975
|
+
path?: string
|
|
5976
|
+
} | {
|
|
5977
|
+
from: "lib"
|
|
5978
|
+
name: (string | [string, ...(string)[]])
|
|
5979
|
+
} | {
|
|
5980
|
+
from: "package"
|
|
5981
|
+
name: (string | [string, ...(string)[]])
|
|
5982
|
+
package: string
|
|
5983
|
+
})[]
|
|
5984
|
+
}]
|
|
5944
5985
|
// ----- @typescript-eslint/no-namespace -----
|
|
5945
5986
|
type TypescriptEslintNoNamespace = []|[{
|
|
5946
5987
|
|
|
@@ -6016,7 +6057,7 @@ type TypescriptEslintNoShadow = []|[{
|
|
|
6016
6057
|
|
|
6017
6058
|
builtinGlobals?: boolean
|
|
6018
6059
|
|
|
6019
|
-
hoist?: ("all" | "functions" | "never")
|
|
6060
|
+
hoist?: ("all" | "functions" | "functions-and-types" | "never" | "types")
|
|
6020
6061
|
|
|
6021
6062
|
ignoreFunctionTypeParameterNameValueShadow?: boolean
|
|
6022
6063
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lichthagel/eslint-config",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.12",
|
|
4
4
|
"description": "Licht's ESLint config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"tsup": "^8.3.0",
|
|
69
69
|
"tsx": "^4.19.1",
|
|
70
70
|
"typescript": "^5.6.2",
|
|
71
|
-
"vitest": "^
|
|
71
|
+
"vitest": "^3.0.0"
|
|
72
72
|
},
|
|
73
73
|
"peerDependencies": {
|
|
74
74
|
"eslint": ">=8.40.0",
|