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

Commit 4880d29

Browse files
committed
Add number severity
1 parent 8b52412 commit 4880d29

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/rules/rule-config.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { RuleSeverity } from './rule-severity';
22

33
/**
4-
*
4+
* Rule configuration.
55
*/
66
export type RuleConfig<Options extends unknown[] = unknown[]> = RuleSeverity | [RuleSeverity, ...Options];

src/rules/rule-severity.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
/**
2-
*
2+
* Rule severity.
33
*/
4-
export type RuleSeverity = 'off' | 'warn' | 'error';
4+
export type RuleSeverity = 'off' | 'warn' | 'error' | 0 | 1 | 2;

0 commit comments

Comments
 (0)