Skip to content

Commit 71b544b

Browse files
committed
chore: change lint from scss-lint to stylelint
1 parent 1923ddc commit 71b544b

File tree

4 files changed

+27
-258
lines changed

4 files changed

+27
-258
lines changed

Gemfile

Lines changed: 0 additions & 6 deletions
This file was deleted.

gulpfile.js

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
var gulp = require('gulp');
44
var $ = require('gulp-load-plugins')();
55

6-
var scsslint = require('gulp-scss-lint');
76
require('es6-promise').polyfill();
87

98
var runSequence = require('run-sequence');
@@ -24,13 +23,29 @@ var dest_paths = {
2423

2524
gulp.task('lint:sass', function() {
2625
return gulp.src(src_paths.sass)
27-
.pipe($.plumber())
28-
.pipe(scsslint({
29-
'reporterOutputFormat': 'Checkstyle',
30-
'bundleExec': true,
31-
'config': 'scss-lint.yml'
26+
.pipe($.plumber({
27+
errorHandler: function(err) {
28+
console.log(err.messageFormatted);
29+
this.emit('end');
30+
}
3231
}))
33-
.pipe(scsslint.failReporter());
32+
.pipe($.stylelint({
33+
config: {
34+
extends: [
35+
"stylelint-config-recommended",
36+
"stylelint-scss",
37+
"stylelint-config-recommended-scss"
38+
],
39+
rules: {
40+
"block-no-empty": null,
41+
"no-descending-specificity": null
42+
}
43+
},
44+
reporters: [{
45+
formatter: 'string',
46+
console: true
47+
}]
48+
}));
3449
});
3550

3651
gulp.task('docs_sass', function() {

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,13 @@
2828
"gulp-load-plugins": "~1.5.0",
2929
"gulp-plumber": "^1.2.0",
3030
"gulp-sass": "^4.0.1",
31-
"gulp-scss-lint": "^0.7.1",
31+
"gulp-stylelint": "^8.0.0",
3232
"gulp-watch": "~5.0.1",
3333
"run-sequence": "~2.2.1"
34+
"stylelint": "^9.9.0",
35+
"stylelint-config-recommended": "^2.1.0",
36+
"stylelint-config-recommended-scss": "^3.2.0",
37+
"stylelint-scss": "^3.4.3"
3438
},
3539
"scripts": {
3640
"default": "gulp",

scss-lint.yml

Lines changed: 0 additions & 244 deletions
This file was deleted.

0 commit comments

Comments
 (0)