-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Doesn't lint @import
scss in Vue SFC <style> block
#9
Comments
No errors in page and console. No errors in terminal. And I notice that no Visit http://localhost:3001/__inspect/ and I found these. Vite DOES compiles |
No idea how to fix for now. Any PR or any idea will be appreciated. Thanks! |
Perhaps this actually is caused by this Vite issue: vitejs/vite#8224 The comments state that downgrading your Vite version might help but that obviously doesn't(and perhaps can't) fix the issue in this plugin |
I am not sure. I think in this case, the file is compiled by |
@import
scss in Vue SFC <style> block
There is a new option called |
Thanks for the update! It doesn't give lint errors when the devServer is already running though. |
Yes. I can't find a neat way to hack into. PR welcome :) |
Six months have passed, and I've finally come up with an idea. Since the v3.3.0 introduces the |
I am closing this. Feel free to open another issue if you are facing problems using |
Thanks for sticking with this issue, it's much appreciated. I've had the chance to test this out. I didnt some searching and made some comments here that do not seem to belong to the stylelintConfig so I'm starting over with my findings: Stylelinting scss files that are imported seem to work but it has some issues:
|
The second problem has been fixed and will be released in v3.3.2. Digging he first problem... |
Works like a charm! This makes triggering errors a lot harder which makes it perfectly workable for me. Although I do think fixing the first problem is still a big win for everyone. |
Should be fine in v3.3.3. But I find another problem in #27. |
Importing a test.scss in that scope doesn't lint that test.scss still (it does compile!)
index.vue:
test.scss:
test.scss DOES compile; but does NOT lint
Bare in mind: Running my linter via NPM does pickup the error:
script in package.json:
"lint:css": "stylelint ./**/*.{vue,scss} --fix",
Originally posted by @timenengwerda in #8 (comment)
The text was updated successfully, but these errors were encountered: