Skip to content
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

using a url link like "http://a.com" as a mixin parameter will cause line comment warning #302

Closed
lyt9304 opened this issue May 17, 2016 · 1 comment

Comments

@lyt9304
Copy link

lyt9304 commented May 17, 2016

We have a mixin using a URL as parameter, when we calling mixin, and pass a URL like:http://a.com/a.png.

Stylint will report a warning like:

[Warning]: line comments require a space after //
File: css/sem.styl
Line: 76: nav-icon(20px, 'http://a.com/a.png')

It seems like '//' in 'http://' is recognized as a comment mark

I read the source code, and I found that before check stylint ignore the url in url().

But still need to think about maybe there will be some other place that we will use URL link, and that will cause this problem.

@rossPatton
Copy link
Collaborator

should be fixed in 1.5.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants