Skip to content

Commit

Permalink
chore(): use stylelint and order variables
Browse files Browse the repository at this point in the history
  • Loading branch information
gmq committed Jul 21, 2017
1 parent 3e7e042 commit a2329c8
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .hound.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ eslint:
enabled: true
config_file: ".eslintrc.json"
ignore_file: .eslintignore
scss:
stylelint:
enabled: true
config_file: ".scss-lint.yml"
config_file: ".stylelintrc.json"
45 changes: 45 additions & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"rules": {
"declaration-bang-space-before": "always",
"declaration-bang-space-after": "never",
"declaration-property-value-blacklist": {
"/^border/": ["none"]
},
"color-named": "never",
"declaration-block-no-duplicate-properties": true,
"rule-empty-line-before": ["always-multi-line", {
"except": ["after-single-line-comment", "first-nested"]
}],
"block-no-empty": true,
"no-missing-end-of-source-newline": true,
"color-hex-length": "short",
"color-hex-case": "lower",
"color-no-invalid-hex": true,
"declaration-no-important": true,
"indentation": 2,
"number-leading-zero": "never",
"no-duplicate-selectors": true,
"max-nesting-depth": 3,
"selector-pseudo-element-colon-notation": "double",
"selector-no-qualifying-type": true,
"shorthand-property-no-redundant-values": true,
"declaration-block-semicolon-newline-after": "always-multi-line",
"selector-list-comma-newline-after": "always",
"function-comma-space-after": "always-single-line",
"declaration-colon-space-after": "always",
"declaration-colon-space-before": "never",
"block-opening-brace-space-before": "always",
"function-parentheses-space-inside": "never",
"string-quotes": "single",
"declaration-block-trailing-semicolon": "always",
"no-eol-whitespace": true,
"number-no-trailing-zeros": true,
"function-url-quotes": "always",
"property-no-vendor-prefix": true,
"selector-no-vendor-prefix": true,
"media-feature-name-no-vendor-prefix": true,
"at-rule-no-vendor-prefix": true,
"value-no-vendor-prefix": true,
"length-zero-no-unit": true
}
}
4 changes: 2 additions & 2 deletions app/javascript/trellaw/stylesheets/variables.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
$font-family: 'Helvetica Neue', Helvetica, 'Open Sans', sans-serif;

$header-bg: #4e2187;
$body-bg: #6c34b4;
$body-color: #4d4d4d;
$card-bg: #f6f6f6;
$color: #7000ff;
$header-bg: #4e2187;
$list-bg: #e2e4e6;
$list-content-bg: #ecedee;
$card-bg: #f6f6f6;

0 comments on commit a2329c8

Please sign in to comment.