-
Notifications
You must be signed in to change notification settings - Fork 532
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
Sass-lint dies when it encounters variables starting with $-- #1248
Comments
Hi :) Just making a guess for the moment but it seems to be a duplicate with #877 since the issue comes from Thanks :) |
It'll be to do with the AST gonzales-pe, those errors come from that package. It's an old version running off a fork I'd done to fix some.issues as Gonzales hadn't been updated in a while. |
@PurpleBabar No I can't, because ALL Sass variables begin with a $--red: #F00
body
background: $--red |
@DanPurdy yup :) Cheerz :) |
@PurpleBabar $test: #0f0;
.element {
--main-bg-color: $test;
} And this one calls: $--test: #0f0;
.element {
color: $--test;
} Basically it's needed for https://element.eleme.io |
Looks like dead to me: tonyganch/gonzales-pe#290 or not tonyganch/gonzales-pe#290 (comment) @DanPurdy will the patch solve the issue with |
Can somebody help apply the fix to the linter? |
So it's been a year. looks like gonzales might have fixed it on their end, but never did a release, and it looks like this project is marked as deprecated. lame |
I think gonzales fixed only part of the issue. please refer to my comment here for details tonyganch/gonzales-pe#295 (comment) |
https://www.npmjs.com/package/gonzales-pe Gonzales-pe v4.3.0 should fix this. Just need to update that dependency and do a new release |
anything new? |
@deepexpert-chenkai Would be fixed by #1302 However @DanPurdy has taken a break from maintaining this repo of unspecified length. Sooooo, don't hold your breath. |
Sass-Lint Version:
1.12.1
Code:
CLI Error:
I think naming your variable this way is ugly and terrible, but I'm just trying to import in the variables file used by ElementUI and that's how they name it, and that causes the linter to crash.
The text was updated successfully, but these errors were encountered: