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

Stylelint fix modifies the style block of Vue SFC files #979

Open
j-a-m-l opened this issue Mar 12, 2024 · 1 comment
Open

Stylelint fix modifies the style block of Vue SFC files #979

j-a-m-l opened this issue Mar 12, 2024 · 1 comment

Comments

@j-a-m-l
Copy link

j-a-m-l commented Mar 12, 2024

I've created a repository with a minimal example: https://github.com/j-a-m-l/failed-stylelint-config

In this code:

<style scoped lang="sass">
#App
  display: flex
  flex-direction: column
</style>

When I run npm run check:style, I only have 1 error, as expected:

src/App.vue
 12:1  ✖  Expected id selector "#App" to be kebab-case  selector-id-pattern

This error cannot be solved automatically but, for some reason, if I use npm run fix:style the SFC is changed:

<style scoped lang="sass">
#App
  display: flex
  flex-direction: column</style>

I've disabled my plugins and presets, but it is still happening.

@kristerkari
Copy link
Collaborator

Thanks for this, check my answer to your other issue: #978 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants