You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/rule-notices.ts
+5
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,7 @@ import {
4
4
EMOJI_FIXABLE,
5
5
EMOJI_HAS_SUGGESTIONS,
6
6
EMOJI_CONFIGS,
7
+
EMOJI_REQUIRES_TYPE_CHECKING,
7
8
}from'./emojis.js';
8
9
import{getConfigsForRule}from'./configs.js';
9
10
importtype{
@@ -22,6 +23,7 @@ enum MESSAGE_TYPE {
22
23
DEPRECATED='deprecated',
23
24
FIXABLE='fixable',
24
25
HAS_SUGGESTIONS='hasSuggestions',
26
+
REQUIRES_TYPE_CHECKING='requiresTypeChecking',
25
27
}
26
28
27
29
/**
@@ -96,6 +98,7 @@ const RULE_NOTICES: {
96
98
// Simple strings.
97
99
[MESSAGE_TYPE.FIXABLE]: `${EMOJI_FIXABLE} This rule is automatically fixable by the [\`--fix\` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).`,
98
100
[MESSAGE_TYPE.HAS_SUGGESTIONS]: `${EMOJI_HAS_SUGGESTIONS} This rule is manually fixable by [editor suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).`,
101
+
[MESSAGE_TYPE.REQUIRES_TYPE_CHECKING]: `${EMOJI_REQUIRES_TYPE_CHECKING} This rule requires type information.`,
99
102
};
100
103
101
104
/**
@@ -118,6 +121,8 @@ function getNoticesForRule(rule: RuleModule, configsEnabled: string[]) {
0 commit comments