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
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Describe the bug
When the default plugin @stylistic/eslint-plugin is installed, rule names coming from the individual plugins (js, ts, jsx) don't need to have the plugin name as well. For example, if you installed only the jsx plugin, the rule name would be "@stylistic/jsx/jsx-indent" but if you installed the default plugin, the rule name must be specified as "@stylistic/jsx-indent" (without the jsx/). Otherwise, you get the error Definition for rule '@stylistic/jsx/jsx-indent' was not found.
The problem is that the code snippets in the documentation for rules under the default plugin use the improper rule name i.e. include the plugin name. See: Default plugin docs (for jsx-indent) jsx plugin docs
Trying to edit the default plugin docs leads to a non-existent README.alias.md. Is this used to generate a different readme? Might be helpful to fix the rule names in this file. Or maybe just put a disclaimer somewhere to edit the rule names if using the default plugin?
Validations
Describe the bug
When the default plugin
@stylistic/eslint-plugin
is installed, rule names coming from the individual plugins (js, ts, jsx) don't need to have the plugin name as well. For example, if you installed only the jsx plugin, the rule name would be"@stylistic/jsx/jsx-indent"
but if you installed the default plugin, the rule name must be specified as"@stylistic/jsx-indent"
(without thejsx/
). Otherwise, you get the errorDefinition for rule '@stylistic/jsx/jsx-indent' was not found.
The problem is that the code snippets in the documentation for rules under the default plugin use the improper rule name i.e. include the plugin name. See:
Default plugin docs (for jsx-indent)
jsx plugin docs
Trying to edit the default plugin docs leads to a non-existent
README.alias.md
. Is this used to generate a different readme? Might be helpful to fix the rule names in this file. Or maybe just put a disclaimer somewhere to edit the rule names if using the default plugin?Reproduction
https://stackblitz.com/edit/github-esw13n?file=README.md&view=editor
Contributes
The text was updated successfully, but these errors were encountered: