-
-
Notifications
You must be signed in to change notification settings - Fork 42
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
CSS lint errors for SCSS stylesheet files (e.g. Unknown word
; ...)
#731
Comments
Unknown word
, ...)Unknown word
, ...)
Unknown word
, ...)Unknown word
, ...)
Also re-installed The issue is still there, the other files build, but no the styles to CSS files. |
there are two things going on here. both of them are easy fixes for you right now and can be addressed in the repo in the next beta. user ./.stylelintrcpartially, this is a stylelint config issue. you want to add the following to {
"plugins": ["stylelint-scss"],
"customSyntax": "postcss-scss",
// ...config follows
} with that rule in place scss syntax compiles for me in maybe or maybe
|
@kellymears: Hm, is there |
Unknown word
, ...)Unknown word
; ...)
@strarsis there is a way to override and/or provide base configuration for stylelint. that's what i meant when i said
still curious what @retlehs and @QWp6t think. on the one hand i think of stylelint configs as the kind of thing that lives out in userland. but on the other hand it really would be nice to just have this magically work. i can't imagine use cases where someone wants to use stylelint and sass together without this stylelint plugin. we'd handle it the same way i handled interfacing with postcss in #737 |
I believe this is broken again in 5.3.2. I have the following in my
devDependencies from
|
@mensch can you try changing the order of Additionally, the output of
Your error report makes me think you are on a version prior to
which should probably be our default recommendation, regardless. |
Just swapped those out, but no change, unfortunately. Remove either one of the entries, or all of them doesn't make a difference either. This is the output of
|
Also, I love godspeed. |
I removed the
Had that avatar for ages. But I think it's from one of their best albums, the more recent stuff doesn't do it for me really. |
add the following rule to your styelint until that config is updated:
if coming from an older version of sass you will also need to import the math module at the top of your stylesheet. don't know if that applies here:
|
@kellymears your temporary fix is ok for me :) |
I think the original scope of this issue is pretty fully covered. I'm going to go ahead and close this. We'll roll out a point release as soon as |
Description
CSS lint errors occur with SCSS styles, e.g.
✖ Unknown word CssSyntaxError
for valid SCSS syntax for variables, single-line comments, etc.
Steps to reproduce
dev-master
forbud
.@roots/bud-sass
as development dependency and it tobud.use
(instructions; minimal example in this repository)
(e.g. rename the existing
app.css
andeditor.css
toapp.scss
andeditor.scss
).e.g. a SCSS variable (
$
) or a single line comment (//
).Expected behavior:
bud
should configure (webpack
) to use a different linter for SCSS files orlet the existing linter correctly handle SCSS files as SCSS files and not CSS files.
Actual behavior:
Linter is configured to treat SCSS files as CSS files, causing lint errors.
Reproduces how often:
Every time.
Versions
``
Node
16.9.1
WSL `2`
Last Sage 10 changelog entry: `Replace Laravel Mix with Bud (#2643)`
The text was updated successfully, but these errors were encountered: