Skip to content

Commit

Permalink
Update npm stylelint corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
thedaviddias committed Mar 11, 2018
1 parent c5960c9 commit 89e5ad4
Show file tree
Hide file tree
Showing 7 changed files with 1,351 additions and 545 deletions.
3 changes: 2 additions & 1 deletion .stylelintrc
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"number-leading-zero": "never",
"value-list-comma-newline-after": null,
"max-nesting-depth": 3,
"unit-whitelist": ['%', 'px', 'rem', 's', 'deg', 'ms', 'fr', 'pt']
"unit-whitelist": ['%', 'px', 'rem', 's', 'deg', 'ms', 'fr', 'pt'],
"no-descending-specificity": null
}
}
7 changes: 2 additions & 5 deletions gulpfile.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import sass from 'gulp-sass';
import autoprefixer from 'gulp-autoprefixer';
import cssnano from 'gulp-cssnano';
import gcmq from 'gulp-group-css-media-queries';
import stylelint from 'gulp-stylelint';
const critical = require('critical').stream;

import pug from 'gulp-pug';
Expand Down Expand Up @@ -190,14 +191,10 @@ gulp.task('critical', () => {
})
});

// dest: '../.tmp/critical.min.css',

gulp.task('lint-css', function lintCssTask() {
const gulpStylelint = require('gulp-stylelint');

return gulp.src(dirs.src + '/styles/**/*.scss')
.pipe(cached('css'))
.pipe(gulpStylelint({
.pipe(stylelint({
reporters: [
{ formatter: 'string', console: true }
]
Expand Down
Loading

0 comments on commit 89e5ad4

Please sign in to comment.