-
-
Notifications
You must be signed in to change notification settings - Fork 161
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
lost-vars
not recognized by stylelint
#409
Comments
Well shucks. It does appear that we have a bit of an issue with this and I think stylelint is right to not have to have to write something custom just for LostGrid. I'm sorry you're having this issue. @codebysubtract, what do you think? I can look into seeing if we can escape the variables but that feels like a hack. Should we look into changing the API? (golly...how many times do we have to change that API? 😝) I'll also look into anything else that might allow us to work around this. Thanks for bringing this up @Jazen! Do you have ideas for a fix? Dare I suggest using the "soon to be deprecated" variables? I think at this point the best option for LostGrid is to no longer deprecate those and if we do make another migration make a tool that does the migration automatically. |
@peterramsing From what I can gather the problem is the linter throws up an issue because we've no space around the You are able to turn off the linter on specific lines in your code. So something like this might work...
That should (in theory) just stop that particular rule from throwing up a problem. I haven't actually tried it though, if I get time in the next couple of days I'll have a play around with it. @Jazen Does that help you at all? I know it's not ideal, but it might help in the short term while we see if there is anything else we can do. |
@codebysubtract stylelint supports variable syntaxes and wasn't throwing anything prior variables deprecation. |
@delorge Ok fair enough, I didn't realise that. Thanks for letting me know 👍 |
@peterramsing Well it seems variables are ok. So I can't really think of anything other than resigning |
@codebysubtract Sure, I disabled the warning and don't mind that too much. Just figured this is an issue which needs to be discussed. :) |
🤔 I'm a few months behind (changing jobs threw me for a loop). Let me do some sipping on some coffee and ponder this. I'm tempted to use the previous variables but don't want to make a decision too quickly. |
Is this a feature request or a bug report?
Bug report
What is the current behavior?
stylelint
with configstylelint-config-lost
complains about:when using
lost-vars()
likeIf it's a bug please provide the steps to reproduce it and maybe some code samples.
.stylelintrc
contains:What is the desired behavior?
stylelint
should not complain about the minus sign in the identifier.What's the motivation or use-case behind changing the behavior?
stylelint
is the de-facto standard for linting stylesheets.What version of LostGrid, browser and browser version are affected by this issue? Did this happen in previous versions?
Doesn't apply here.
Anything else?
I have opened an issue at
stylelint-config-lost
prior and the author (/cc @delorge) asked me to open one here to further discuss the issue.The text was updated successfully, but these errors were encountered: