File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -186,6 +186,16 @@ export interface RulesMeta<
186
186
* Indicates if the rule may provide suggestions.
187
187
*/
188
188
hasSuggestions ?: boolean | undefined ;
189
+
190
+ /**
191
+ * The language the rule is intended to lint.
192
+ */
193
+ language ?: string ;
194
+
195
+ /**
196
+ * The dialects of `language` that the rule is intended to lint.
197
+ */
198
+ dialects ?: string [ ] ;
189
199
}
190
200
191
201
/**
Original file line number Diff line number Diff line change @@ -236,6 +236,8 @@ const testRule: RuleDefinition<{
236
236
badFoo : "change this foo" ,
237
237
wrongBar : "fix this bar" ,
238
238
} ,
239
+ language : "javascript" ,
240
+ dialects : [ "javascript" , "typescript" ] ,
239
241
} ,
240
242
241
243
create ( context : TestRuleContext ) : TestRuleVisitor {
You can’t perform that action at this time.
0 commit comments