Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: typo #534

Merged
merged 4 commits into from
Sep 9, 2024
Merged

docs: typo #534

merged 4 commits into from
Sep 9, 2024

Conversation

yoavbls
Copy link
Contributor

@yoavbls yoavbls commented Sep 8, 2024

Description

Unnecessary comma cause diff addition not to show + missing @ before stylistic:

CleanShot 2024-09-09 at 02 03 07@2x

// your own rules
{
plugins: {
stylistic: StylisticPlugin
},
rules: {
'stylistic/semi': 'error',
'@stylistic/semi': 'error',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, this is not how it works. The previous example is correct as we provide the plugin named as stylistic

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

my bad, removed
I was confused with all the other examples that name the plugins with @ prefix (e.g. @stylistic/js)
don't you think we should rename it to @stylistic here?

{
    plugins: {
      '@stylistic': StylisticPlugin
    },
    rules: {
      '@stylistic/semi': 'error',
      // ...
    }
 }

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stylistic was mainly the convention of the legacy config, where in the flat config I don't want users to carry that legacy convention when they don't need to.

@yoavbls yoavbls requested a review from antfu September 9, 2024 17:50
@antfu antfu changed the title Delete an unnecessary comma in migration.md docs: typo Sep 9, 2024
@antfu antfu merged commit 9573674 into eslint-stylistic:main Sep 9, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants