-
Notifications
You must be signed in to change notification settings - Fork 29
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
fix: true
+ .stylelintignore results in ignored files content replaced with []
#112
Comments
Just to see if running stylelint as a postcss plugin would produce similar results, I found that the For anyone that is curious, here is what I tried:
Just to be through(hopefull) I also tried different combinations of the One nice bonus of using |
I solved it for now using a custom formatter. You can also filter out warnings this way:
|
I tried using the custom formatter above. No luck in our environment. Simply doesn't work. Any news on |
gulp.task('fix-css', function () {
return gulp
.src([
'src/scss/**/*.scss',
//Exclude the same directory as in the `.stylelintignore` file
'!src/scss/plugins-override/*.scss',
])
.pipe(gulpStylelint({
fix: true,
}))
.pipe(gulp.dest('src/scss'));
}); |
This repository is abandoned. Use my fork, see the comment here. |
I'm currently trying to pass my s/css files through
gulp-stylelint
using thefix: true
flag. I also have a.stylelintignore
file which ignores vendor style directories. The followinggulpfile.js
script successfully lints files, but when it comes to the files in the ignored directories, the contents are stripped and replaced with[]
. I was expecting that these files would be ignored (unaltered).I haven't had enough experience with
gulp
to tell if this is expected behaviour, or if this is an issue with the implementation of my script, or some sort of buffer/stream issue withgulp
orgulp-stylelint
, OR if the issue lies withstylelint
itself. This said, I noticed a comment ingulp-stylelint
src/index.js line 155 which makes me think thatgulp-stylelint
is a good place to start:The pattern
[]
referenced is exactly what I'm seeing. Any insight into how to fix this?Many thanks in advance.
The text was updated successfully, but these errors were encountered: