Permalink
Browse files

Add Stylint

  • Loading branch information...
iissnan committed Mar 1, 2017
1 parent dea08ef commit 17b97650311938994b9092142417c8501ef872ca
Showing with 53 additions and 1 deletion.
  1. +45 −0 .stylintrc
  2. +5 −0 gulpfile.coffee
  3. +3 −1 package.json
View
@@ -0,0 +1,45 @@
+{
+ "blocks": false,
+ "brackets": "always",
+ "colons": "always",
+ "colors": "always",
+ "commaSpace": "always",
+ "commentSpace": "always",
+ "cssLiteral": "never",
+ "customProperties": [],
+ "depthLimit": false,
+ "duplicates": true,
+ "efficient": "always",
+ "exclude": [],
+ "extendPref": false,
+ "globalDupe": false,
+ "groupOutputByFile": true,
+ "indentPref": false,
+ "leadingZero": "never",
+ "maxErrors": false,
+ "maxWarnings": false,
+ "mixed": false,
+ "mixins": [],
+ "namingConvention": "lowercase-dash",
+ "namingConventionStrict": false,
+ "none": "never",
+ "noImportant": true,
+ "parenSpace": false,
+ "placeholders": "always",
+ "prefixVarsWithDollar": "always",
+ "quotePref": false,
+ "reporterOptions": {
+ "columns": ["lineData", "severity", "description", "rule"],
+ "columnSplitter": " ",
+ "showHeaders": false,
+ "truncate": true
+ },
+ "semicolons": "always",
+ "sortOrder": "grouped",
+ "stackedProperties": false,
+ "trailingWhitespace": "never",
+ "universal": false,
+ "valid": true,
+ "zeroUnits": "never",
+ "zIndexNormalize": false
+}
View
@@ -3,6 +3,7 @@ path = require('path')
gulp = require('gulp')
jshint = require('gulp-jshint')
stylish = require('jshint-stylish')
+shell = require('gulp-shell')
yaml = require('js-yaml')
gulp.task 'lint', ->
@@ -17,6 +18,10 @@ gulp.task 'lint', ->
]).pipe jshint()
.pipe jshint.reporter(stylish)
+gulp.task 'lint:stylus', shell.task [
+ '"./node_modules/.bin/stylint" ./source/css/'
+]
+
gulp.task 'validate:config', (cb) ->
themeConfig = fs.readFileSync path.join(__dirname, '_config.yml')
View
@@ -27,7 +27,9 @@
"coffee-script": "^1.10.0",
"gulp": "^3.9.0",
"gulp-jshint": "^1.12.0",
+ "gulp-shell": "^0.6.1",
"js-yaml": "^3.8.1",
- "jshint-stylish": "^2.1.0"
+ "jshint-stylish": "^2.1.0",
+ "stylint": "^1.5.9"
}
}

0 comments on commit 17b9765

Please sign in to comment.