Skip to content

Commit

Permalink
fix some stylelint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
agauniyal committed Sep 7, 2016
1 parent 25eb22c commit 4bf0530
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
7 changes: 1 addition & 6 deletions .stylelintrc
Expand Up @@ -9,7 +9,7 @@
"block-opening-brace-space-after": "always-single-line",
"block-opening-brace-space-before": "always",
"color-hex-case": "lower",
"color-hex-length": "long",
"color-hex-length": "short",
"color-no-invalid-hex": true,
"comment-whitespace-inside": "always",
"declaration-bang-space-after": "never",
Expand All @@ -31,7 +31,6 @@
"function-linear-gradient-no-nonstandard-direction": true,
"function-parentheses-newline-inside": "always-multi-line",
"function-parentheses-space-inside": "never",
"function-url-quotes": "double",
"function-whitespace-after": "always",
"indentation": 2,
"max-empty-lines": 2,
Expand All @@ -46,10 +45,7 @@
"media-query-list-comma-space-before": "never",
"no-eol-whitespace": true,
"no-missing-eof-newline": true,
"number-leading-zero": "always",
"number-max-precision": 2,
"number-no-trailing-zeros": true,
"number-zero-length-no-unit": true,
"property-no-vendor-prefix": true,
"selector-combinator-space-after": "always",
"selector-combinator-space-before": "always",
Expand All @@ -58,7 +54,6 @@
"selector-list-comma-space-before": "never",
"selector-no-vendor-prefix": true,
"selector-root-no-composition": true,
"string-quotes": "double",
"value-list-comma-newline-after": "always-multi-line",
"value-list-comma-newline-before": "never-multi-line",
"value-list-comma-space-after": "always-single-line",
Expand Down
7 changes: 4 additions & 3 deletions gulpfile.js
Expand Up @@ -44,9 +44,6 @@ gulp.task('sass', ['clean'], function() {
return gulp.src('lib/**/*.scss')
.pipe(sourcemaps.init())
.pipe(sass().on('error', sass.logError))
.pipe(autoprefixer({
browsers: ['last 3 versions']
}))
.pipe(sourcemaps.write())
.pipe(cssfmt())
.pipe(eol())
Expand All @@ -56,6 +53,9 @@ gulp.task('sass', ['clean'], function() {
gulp.task('css-min', ['sass', 'down-normalize', 'down-tip'], function() {

return gulp.src(['css/normalize.css', 'css/**/*.css'])
.pipe(autoprefixer({
browsers: ['last 3 versions']
}))
.pipe(cssnano())
.pipe(concat('wmin.css'))
.pipe(gulp.dest('min'));
Expand All @@ -67,6 +67,7 @@ gulp.task('lint-css', ['css-min'], function lintCssTask() {
.src(['css/**/*.css', '!css/normalize.css', '!css/bmin.css'])
.pipe(gulpStylelint({
reporters: [{
failAfterError: false,
formatter: 'string',
console: true
}]
Expand Down

0 comments on commit 4bf0530

Please sign in to comment.