Skip to content

Commit 871b51e

Browse files
committed
Added stylelint and reporting
1 parent b90a2f2 commit 871b51e

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
"postcss-custom-properties": "^5.0.0",
3333
"postcss-each": "^0.7.0",
3434
"postcss-import": "^7.0.0",
35+
"postcss-reporter": "^1.3.0",
36+
"stylelint": "^2.3.4",
3537
"superfly-css-pli": "0.0.5"
3638
},
3739
"peerDependencies": {

src/main/js/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,15 @@ var postcss_calc = require('postcss-calc');
55
var postcss_custom_properties = require('postcss-custom-properties');
66
var postcss_color_function = require('postcss-color-function');
77
var postcss_each = require('postcss-each');
8+
var postcss_reporter = require('postcss-reporter');
89
var autoprefixer = require('autoprefixer');
10+
var stylelint = require('stylelint');
911

1012
var PLI = require('superfly-css-pli');
1113

12-
var processors = [postcss_import, postcss_each, autoprefixer, postcss_calc, postcss_custom_properties, postcss_color_function];
14+
var processors = [stylelint, postcss_import, postcss_each, autoprefixer, postcss_calc, postcss_custom_properties, postcss_color_function, postcss_reporter({
15+
clearMessages: true
16+
})];
1317

1418
gulp.task('build:css', function() {
1519
return gulp.src(PLI.SRC_MAIN_CSS)

0 commit comments

Comments
 (0)