File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
packages/experimental-utils/src/ts-eslint Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -81,18 +81,26 @@ namespace Linter {
81
81
reportUnusedDisableDirectives ?: boolean ;
82
82
}
83
83
84
+ export interface LintSuggestion {
85
+ desc : string ;
86
+ fix : RuleFix ;
87
+ messageId ?: string ;
88
+ }
89
+
84
90
export interface LintMessage {
85
91
column : number ;
86
92
line : number ;
87
93
endColumn ?: number ;
88
94
endLine ?: number ;
89
95
ruleId : string | null ;
90
96
message : string ;
97
+ messageId ?: string ;
91
98
nodeType : string ;
92
99
fatal ?: true ;
93
100
severity : Severity ;
94
101
fix ?: RuleFix ;
95
102
source : string | null ;
103
+ suggestions ?: LintSuggestion [ ] ;
96
104
}
97
105
98
106
export interface FixOptions extends LintOptions {
Original file line number Diff line number Diff line change @@ -129,8 +129,6 @@ interface ReportDescriptorBase<TMessageIds extends string> {
129
129
*/
130
130
messageId : TMessageIds ;
131
131
// we disallow this because it's much better to use messageIds for reusable errors that are easily testable
132
- // message?: string;
133
- // suggestions instead have this property that works the same, but again it's much better to use messageIds
134
132
// desc?: string;
135
133
}
136
134
interface ReportDescriptorWithSuggestion < TMessageIds extends string >
You can’t perform that action at this time.
0 commit comments