sasstools / gulp-sass-lint

Gulp plugin for Sass Lint
MIT License
115 stars 43 forks source link

leading zero rule doesn't check inside @include directive #90

Closed dippas closed 5 years ago

dippas commented 5 years ago

I was creating all the linter rules, when the leading-zero was giving me a few warnings, after a few moments I could conclude that was only happening when I had a decimal value inside a @include some-mixin(), when rule include is set tofalse.

example: @include size(.1rem)

// expected output :

nothing

// real output :

warning Don't include leading zeros on numbers leading-zero

example: @include size(0.1rem)

// expected output :

warning Don't include leading zeros on numbers leading-zero

// real output :

warning Don't include leading zeros on numbers leading-zero

dippas commented 5 years ago

nevermind, bad config in gulp itself