This repository was archived by the owner on Mar 7, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed
src/rules/typescript-eslint Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,7 @@ import type { NoUnsafeArgumentRule } from './no-unsafe-argument';
85
85
import type { NoUnsafeAssignmentRule } from './no-unsafe-assignment' ;
86
86
import type { NoUnsafeCallRule } from './no-unsafe-call' ;
87
87
import type { NoUnsafeDeclarationMergingRule } from './no-unsafe-declaration-merging' ;
88
+ import type { NoUnsafeEnumComparisonRule } from './no-unsafe-enum-comparison' ;
88
89
import type { NoUnsafeMemberAccessRule } from './no-unsafe-member-access' ;
89
90
import type { NoUnsafeReturnRule } from './no-unsafe-return' ;
90
91
import type { NoUnusedExpressionsRule } from './no-unused-expressions' ;
@@ -224,6 +225,7 @@ export type TypeScriptRules = AdjacentOverloadSignaturesRule &
224
225
NoUnsafeAssignmentRule &
225
226
NoUnsafeCallRule &
226
227
NoUnsafeDeclarationMergingRule &
228
+ NoUnsafeEnumComparisonRule &
227
229
NoUnsafeMemberAccessRule &
228
230
NoUnsafeReturnRule &
229
231
NoUnusedExpressionsRule &
Original file line number Diff line number Diff line change
1
+ import type { RuleConfig } from '../rule-config' ;
2
+
3
+ /**
4
+ * Disallow comparing an enum value with a non-enum value.
5
+ *
6
+ * @see [no-unsafe-enum-comparison](https://typescript-eslint.io/rules/no-unsafe-enum-comparison)
7
+ */
8
+ export type NoUnsafeEnumComparisonRuleConfig = RuleConfig < [ ] > ;
9
+
10
+ /**
11
+ * Disallow comparing an enum value with a non-enum value.
12
+ *
13
+ * @see [no-unsafe-enum-comparison](https://typescript-eslint.io/rules/no-unsafe-enum-comparison)
14
+ */
15
+ export interface NoUnsafeEnumComparisonRule {
16
+ /**
17
+ * Disallow comparing an enum value with a non-enum value.
18
+ *
19
+ * @see [no-unsafe-enum-comparison](https://typescript-eslint.io/rules/no-unsafe-enum-comparison)
20
+ */
21
+ '@typescript-eslint/no-unsafe-enum-comparison' : NoUnsafeEnumComparisonRuleConfig ;
22
+ }
You can’t perform that action at this time.
0 commit comments