Commit a457bbc7 authored by Philipp Nowinski's avatar Philipp Nowinski
Browse files

[FEATURE] add stylelint (will replace scss-lint)

parent a22b7a3f
......@@ -117,3 +117,23 @@ gulp.task('css:qa', function() {
gulp.task('css', gulp.series(gulp.parallel('css:sprites', 'css:svg', 'css:qa'), processCss, 'css:abovethefold'));
gulp.task('css:compileAndSync', gulp.series(gulp.parallel('css:sprites', 'css:svg', 'css:qa'), processCssAndSync, 'css:abovethefold'));
var postcss = require('gulp-postcss');
var reporter = require('postcss-reporter');
var stylelint = require('stylelint');
var scss = require("postcss-scss");
gulp.task('lint:css', function() {
return gulp.src([settings.getPath() + '/' + config.directories.sass + '/**/*.scss', '!**/*scsslint_tmp*.scss'].concat(config.css.excludeFromQa))
.pipe(postcss(
[
stylelint({
configBasedir: `${process.cwd()}/sgc-core/`
}),
reporter({ clearMessages: true })
],
{
syntax: scss
}
));
});
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment