Skip to content

Commit 3458690

Browse files
committed
add stylellint
1 parent a723093 commit 3458690

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

.stylelintrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "stylelint-config-suitcss"
3+
}

gulpfile.babel.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ gulp.task('deploy', ['pss', 'jekyll'] ,() => {
2828
gulp.task('pss', () => {
2929
return gulp.src(`./src/pss/${pkg.name}.pss`)
3030
.pipe(postcss([
31+
require('stylelint')({}),
3132
require('postcss-import')(),
3233
require('postcss-mixins')(),
3334
require('postcss-at-rules-variables')(),

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@
4747
"postcss-for": "^2.0.0",
4848
"postcss-import": "^7.0.0",
4949
"postcss-mixins": "^1.0.1",
50-
"postcss-nested": "^1.0.0"
50+
"postcss-nested": "^1.0.0",
51+
"stylelint": "^3.1.4",
52+
"stylelint-config-suitcss": "^2.0.0"
5153
}
5254
}

0 commit comments

Comments
 (0)