You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my scss file, I noticed that when I accidentally left some letters after the semicolon like so: color: red;asdf, gulp-stylelint would replace the entire scss file content with a report string when I set fix: true.
My scss file after running gulp-stylelint, losing all of my scss styles:
[{"source":"assets/src/scss/components/_components.articles.scss","deprecations":[],"invalidOptionWarnings":[],"parseErrors":[],"errored":true,"warnings":[{"line":14,"column":33,"rule":"CssSyntaxError","severity":"error","text":"Unknown word (CssSyntaxError)"}]}]
I am not sure if its just my set up but I have tried postcss stylelint with the fix option set to true and it did not overwrite my entire file like gulp-stylelint did. It would be nice to get this fixed as gulp-stylelint has better reporting capabilities. Any ideas? Here's my gulp-stylelint task :
Hello, are you using any other plugins? The reason I ask is it could be a specific rule which is causing this issue.
I had the same problem you described so I removed all the rules after which I could no longer replicate the issue. I gradually added the rules back and narrowed my issue down to the stylelint-declaration-strict-value plugin.
I made the subsequent change to the config and no longer have the issue:
In my scss file, I noticed that when I accidentally left some letters after the semicolon like so:
color: red;asdf
, gulp-stylelint would replace the entire scss file content with a report string when I setfix: true
.My scss file after running gulp-stylelint, losing all of my scss styles:
I am not sure if its just my set up but I have tried postcss stylelint with the fix option set to true and it did not overwrite my entire file like gulp-stylelint did. It would be nice to get this fixed as gulp-stylelint has better reporting capabilities. Any ideas? Here's my gulp-stylelint task :
The text was updated successfully, but these errors were encountered: