-
Notifications
You must be signed in to change notification settings - Fork 18
Updated plugin to use the nodejs csscomb implementation #9
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
Conversation
|
👍 |
|
Not sure how it used to work with old implementation - but on errors would it notify me? An error (which I also get when csscomb is run in command line) is this: Comment is actually fine I think, but in any case - CLI gives an error, shouldn't plugin also do something other than fail silently? |
|
You're right - I only tried it on vanilla CSS that passed linting (I use syntastic to lint css, I guess that runs before this plugin). I'll look at adding error output when I get a chance |
|
Yeah, it's fair to assume people would set up lint rules to match their csscomb rules, so I guess it's not that big of a deal. Probably not super high priority to add error notification here... I actually just set up scss-lint (also uses syntastic) to lint my sass, it's AWESOME, hehe. Today's the cleanup day! now that all the styles are neat and combed lint will prevent me from messing it up 👍 |
|
One would hope that if someone is using csscomb they also know about linting, yes! But I still think it is a good idea to have the plugin at least output something when it barfs instead of doing it in silence. |
|
Ahoj! Sorry for delay, I'll take a look at this pr tomorrow. |
README.md
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should not there be csscomb/vim-csscomb?
|
I've addressed the issues you noted @tonyganch! |
|
@istro I've updated this PR to include error output in case of csscomb failure. Note that it will output only the following portion of the csscomb output:
|
|
👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great idea to show errors
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks to @istro
Updated plugin to use the nodejs csscomb implementation
|
Thank you so much for this pr! |
|
No problem, thanks for merging! 👯 |
Please review and let me know if any changes are required before merging