We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 664740a commit dac0387Copy full SHA for dac0387
packages/core/src/types.ts
@@ -186,6 +186,16 @@ export interface RulesMeta<
186
* Indicates if the rule may provide suggestions.
187
*/
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[];
199
}
200
201
/**
packages/core/tests/types/types.test.ts
@@ -236,6 +236,8 @@ const testRule: RuleDefinition<{
236
badFoo: "change this foo",
237
wrongBar: "fix this bar",
238
},
239
+ language: "javascript",
240
+ dialects: ["javascript", "typescript"],
241
242
243
create(context: TestRuleContext): TestRuleVisitor {
0 commit comments