Skip to content

Commit 57fa2ce

Browse files
committed
Mention * pattern for languages
1 parent 130e0e7 commit 57fa2ce

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

designs/2025-rule-languages/README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,12 @@ module.exports = {
4343
};
4444
```
4545

46-
The `languages` array will contain strings that identify the specific language plugins the rule is designed to work with. Each string follows the standardized format `"plugin/language"` to uniquely identify the language plugin. To specify that a rule works with any language in a plugin, the format of `"plugin/*"` is used.
46+
The `languages` array will contain strings that identify the specific language plugins the rule is designed to work with. Each string follows the standardized format `"plugin/language"` to uniquely identify the language plugin. Special syntax:
4747

48-
For backward compatibility, if `languages` is not specified, the rule will be assumed to work with all languages.
48+
- To specify that a rule works with any language in a plugin, the format of `"plugin/*"` is used.
49+
- To specify that a rule works for any language, `"*"` is used.
50+
51+
For backward compatibility, if `languages` is not specified, the rule will be assumed to work with all languages. (Effectively, the same as `languages: ["*"]`).
4952

5053
For rules meant to work only with JavaScript, the `"js/js"` string is used. In the short-term, we'll need to special case this to match `"@/js"`, which is how the JavaScript language is defined right now. In the long-term, once `@eslint/js` fully contains the language, we can remove the check.
5154

0 commit comments

Comments
 (0)