Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.

Commit 6edc0b3

Browse files
committed
Update typescript-eslint rules
1 parent ebbf475 commit 6edc0b3

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

src/rules/typescript-eslint/index.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ import type { NoUnsafeArgumentRule } from './no-unsafe-argument';
8585
import type { NoUnsafeAssignmentRule } from './no-unsafe-assignment';
8686
import type { NoUnsafeCallRule } from './no-unsafe-call';
8787
import type { NoUnsafeDeclarationMergingRule } from './no-unsafe-declaration-merging';
88+
import type { NoUnsafeEnumComparisonRule } from './no-unsafe-enum-comparison';
8889
import type { NoUnsafeMemberAccessRule } from './no-unsafe-member-access';
8990
import type { NoUnsafeReturnRule } from './no-unsafe-return';
9091
import type { NoUnusedExpressionsRule } from './no-unused-expressions';
@@ -224,6 +225,7 @@ export type TypeScriptRules = AdjacentOverloadSignaturesRule &
224225
NoUnsafeAssignmentRule &
225226
NoUnsafeCallRule &
226227
NoUnsafeDeclarationMergingRule &
228+
NoUnsafeEnumComparisonRule &
227229
NoUnsafeMemberAccessRule &
228230
NoUnsafeReturnRule &
229231
NoUnusedExpressionsRule &
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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+
}

0 commit comments

Comments
 (0)