-
Notifications
You must be signed in to change notification settings - Fork 4
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
Pass filename to stylelint #11
Conversation
When working with stdin, stylelint needs the filename to determine the syntax of the file.
Hey @cristianl good catch! Thanks for working on this. I think it makes more sense to pass a Anyway, if you can change it to support the |
Tells stylelint the syntax of a stylesheet from stdin
Oh, I went with the laziest approach that would work without requiring modifications to SublimeLinter-contrib-stylelint_d. Something about nails and hammers... Should I keep the Even when you pass |
Hmm, good point. Originally I would say only support the |
Hey @cristianl just wanted to check in on this, were you able to take a look at my comments? |
Hi @jo-sm, sorry for not replying sooner. I'm not sure I understand your request: should I warn the user that the value from |
Yeah, essentially the language flag will take precedence over the file extension, including if they supply both the |
Done. Let me know if it needs further changes. |
Looks good, thanks for the PR! |
Allow passing language explicitly via --language flag
When working with stdin, stylelint needs the filename to determine the syntax of the file.
This fixes a bug: all files would be linted as CSS, so SCSS files that are not plain valid CSS files would get a
CssSyntaxError
.