-
Notifications
You must be signed in to change notification settings - Fork 1
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
Task lintCss
always succeeds
#4
Comments
See: https://github.com/olegskl/gulp-stylelint Tried these plugin options:
|
@brendanfalkowski I think we need to submit some PRs to that repository to split the linting and reporting into separate streams (similar to how gulp-eslint works). I'm really disappointed in the quality of gulp-stylelint 😭 |
Is there a reason gulp-stylelint is needed over gulp-csslint? The csslint plugin looks to follow gulp patterns better (even though their formatter stream is a Through stream, they at least .resume it). I should actually submit a PR over to them to clean up that. |
@phated — Hmm, at the time, Stylelint seemed like the best choice (still does), even though the Gulp wrapper isn't top notch. I wrote a full ruleset for Stylelint, and appreciate how robust it is: https://github.com/gravitydepartment/frontend-starter/blob/master/stylelint.config.js I don't think CSS Lint is a viable choice anymore, except as-is.
Thanks for the insight on the Gulp side of it, but I'd rather keep an incorrect notifier than migrate back out of Stylelint. I'm happy to contribute the use case for a PR to gulp-stylelint, but I'd be wasted on the refactoring job. Why I chose Stylelint (over CSS Lint)As I remember it, Fast-forward to 2019, Stylelint still seems the better choice:
Reference: the packages in questionCSS Lint
Stylelint
|
That makes a lot of sense! I think it's probably worthwile to upgrade gulp-stylelint to the proper patterns. I wonder if the owner would want to contribute it to https://github.com/gulp-community and then maybe we could spend an "office hours" refactoring. |
Problem
When the
lintCss
task encounters an error it also fires a success notification (it should not).Steps to reproduce
gulp watch
/css/src/module/_thing.scss
x
on the last line + saveExpected outcome
css
fails + fires an error OS notificationlintCss
fails + fires an error OS notificationActual outcome
css
fails + fires an error OS notificationlintCss
fails + fires an error OS notificationlintCss
fires a success OS notification ❌Video
The text was updated successfully, but these errors were encountered: