Closed TrySound closed 8 years ago
I can't seem to replicate this. No warnings with stylelint-config-cssrecipes@2.0.0
, gulp-postcss@6.0.1
and gulp@3.9.0
.
My gulpfile
is this:
var postcss = require('gulp-postcss');
var gulp = require('gulp');
var stylelint = require('stylelint');
gulp.task('default', function () {
var processors = [stylelint()];
return gulp.src('css/temp.css')
.pipe(postcss(processors));
});
And the config specified in the package.json
:
{
"stylelint": {
"extends": "stylelint-config-cssrecipes"
}
}
Can you please paste your gulpfile
here so we can try to get to the bottom of this? :)
And what version are you using @TrySound ?
Seems like the problem since indentation rule in postcssPlugin.js
indentation: [ 2, 2, { hierarchicalSelectors: true } ]
Yep. Actual is not checked. Only possible.
This works fine.
indentation: 2
Oh, I understand. It can't validate old syntax. But should.
Think we should also check the second element here https://github.com/stylelint/stylelint/blob/master/src/postcssPlugin.js#L64
With standard config everything fine. Maybe some rules somehow break warnings?