Permalink
Browse files

Added sass-lint, with _some_ custom rules 😎

  • Loading branch information...
crgeary committed Aug 18, 2017
1 parent 7d6e3eb commit 8a31b8d1ecca94d09e4ec835f4e2dbd37b370651
Showing with 26 additions and 0 deletions.
  1. +23 βˆ’0 .sass-lint.yml
  2. +2 βˆ’0 gulpfile.babel.js
  3. +1 βˆ’0 package.json
@@ -0,0 +1,23 @@
options:
formatter: stylish
merge-default-rules: true
files:
include: 'src/sass/**/*.scss'
rules:
bem-depth: 1
brace-style: 0
class-name-format:
- 1
- convention: 'hyphenatedbem'
- allow-single-line: false
empty-args: 0
indentation:
- 1
- size: 4
mixin-name-format:
- 1
- convention: 'hyphenatedbem'
no-color-keywords: 0
no-color-literals: 0
property-sort-order: 0
one-declaration-per-line: 1
@@ -44,6 +44,8 @@ gulp.task('sass', () => {
'src/sass/app.scss'
])
.pipe($.plumber({ errorHandler: onError }))
.pipe($.sassLint())
.pipe($.sassLint.format())
.pipe($.sass({ precision: 5 }))
.pipe($.autoprefixer(['ie >= 10', 'last 2 versions']))
.pipe($.if(isProduction, $.cssnano({ discardUnused: false, minifyFontValues: false })))
@@ -18,6 +18,7 @@
"gulp-load-plugins": "^1.5.0",
"gulp-plumber": "^1.1.0",
"gulp-sass": "^3.1.0",
"gulp-sass-lint": "^1.3.2",
"gulp-size": "^2.1.0",
"gulp-uglify": "^3.0.0",
"run-sequence": "^2.0.0"

0 comments on commit 8a31b8d

Please sign in to comment.