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

At rules are removed, although they are not detected as errors #978

Open
j-a-m-l opened this issue Mar 12, 2024 · 2 comments
Open

At rules are removed, although they are not detected as errors #978

j-a-m-l opened this issue Mar 12, 2024 · 2 comments
Labels
Documentation ✍️ Related to documenting the library

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

So, when I run npm run check:style, I don't have any errors related to the usage of any at-rule in:

@use 'transitions'

@a---asdasf
@lolo

:root
  --header-height: 64px

body
  overflow: hidden

but, if I use npm run fix:style, all those rules are remove:

// (empty line)
// (empty line)
:root
  --header-height: 64px

body
  overflow: hidden

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

@kristerkari
Copy link
Collaborator

@j-a-m-l Sorry for the late answer.

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

This kind of makes it sound like the problem would be related to how stylelint is autofixing the Vue/Sass combo, which is something that I can not really help with since that functionality is part of the code stylelint library offering instead of this collection of rules.

Just to verify, have you check if the stylelint documentation mentions anything about the Sass syntax support? Alternatively you could try using the SCSS syntax with Vue and see if you still run into the same problem.

@j-a-m-l
Copy link
Author

j-a-m-l commented Apr 18, 2024

Thank you. I'm currently focused on other project, so I wouldn't have time to check it soon, but I'll test that when I've finished.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation ✍️ Related to documenting the library
Development

No branches or pull requests

2 participants