Skip to content

Commit

Permalink
Use Stylelint as a gatekeeper necolas#508
Browse files Browse the repository at this point in the history
  • Loading branch information
hudochenkov authored and jonathantneal committed Feb 6, 2016
1 parent b2f2835 commit 21e0c54
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
npm-debug.log
34 changes: 34 additions & 0 deletions .stylelintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"rules": {
"block-closing-brace-newline-after": "always",
"block-closing-brace-newline-before": "always",
"block-no-empty": true,
"block-opening-brace-newline-after": "always",
"block-opening-brace-space-before": "always",
"color-hex-case": "lower",
"color-hex-length": "short",
"color-no-invalid-hex": true,
"comment-empty-line-before": "always",
"comment-whitespace-inside": "always",
"declaration-block-no-single-line": true,
"declaration-block-semicolon-newline-after": "always",
"declaration-block-semicolon-space-before": "never",
"declaration-colon-space-after": "always",
"declaration-colon-space-before": "never",
"indentation": 2,
"max-empty-lines": 1,
"max-line-length": 80,
"no-eol-whitespace": true,
"no-missing-eof-newline": true,
"number-leading-zero": "always",
"number-no-trailing-zeros": true,
"rule-trailing-semicolon": "always",
"selector-combinator-space-after": "always",
"selector-combinator-space-before": "always",
"selector-list-comma-newline-after": "always",
"selector-list-comma-space-before": "never",
"string-quotes": "double",
"value-list-comma-space-after": "always",
"value-list-comma-space-before": "never"
}
}
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,11 @@
},
"main": "normalize.css",
"author": "Nicolas Gallagher",
"license": "MIT"
"license": "MIT",
"devDependencies": {
"stylelint": "^4.2.0"
},
"scripts": {
"test": "stylelint normalize.css"
}
}

0 comments on commit 21e0c54

Please sign in to comment.