Advertisement
andreasolsson

.stylelintrc

Oct 28th, 2016
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 2.15 KB | None | 0 0
  1. {
  2.   "plugins": [
  3.     "stylelint-scss",
  4.     "stylelint-declaration-use-variable"
  5.   ],
  6.   "rules": {
  7.     "color-hex-case": "lower",
  8.     "color-hex-length": "short",
  9.     "color-named": "never",
  10.     "color-no-invalid-hex": true,
  11.     "font-weight-notation": "numeric",
  12.     "font-family-name-quotes": "always-unless-keyword",
  13.     "number-leading-zero": "never",
  14.     "number-max-precision": 2,
  15.     "number-no-trailing-zeros": true,
  16.     "string-no-newline": true,
  17.     "string-quotes": "single",
  18.     "unit-case": "lower",
  19.     "unit-no-unknown": true,
  20.     "value-keyword-case": "lower",
  21.     "value-no-vendor-prefix": true,
  22.     "value-list-comma-newline-after": "never-multi-line",
  23.     "value-list-comma-space-after": "always",
  24.     "value-list-comma-space-before": "never",
  25.     "shorthand-property-no-redundant-values": true,
  26.     "property-case": "lower",
  27.     "property-no-unknown": true,
  28.     "property-no-vendor-prefix": true,
  29.     "declaration-bang-space-after": "never",
  30.     "declaration-bang-space-before": "always",
  31.     "declaration-no-important": true,
  32.     "indentation": 2,
  33.     "max-empty-lines": 2,
  34.     "max-nesting-depth": 4,
  35.     "no-descending-specificity": true,
  36.     "no-duplicate-selectors": true,
  37.     "no-eol-whitespace": true,
  38.     "no-extra-semicolons": true,
  39.     "no-invalid-double-slash-comments": true,
  40.     "no-missing-end-of-source-newline": true,
  41.     "no-unknown-animations": true,
  42.     "comment-empty-line-before": [
  43.       "always",
  44.       except: ["first-nested"]
  45.     ],
  46.     "comment-no-empty": true,
  47.     "comment-whitespace-inside": "always",
  48.     "declaration-empty-line-before": [
  49.       "always",
  50.       except: ["after-declaration", "first-nested"],
  51.       ignore: ["after-comment", "inside-single-line-block"]
  52.     ],
  53.     "scss/dollar-variable-colon-space-after": "always",
  54.     "scss/dollar-variable-colon-space-before": "never",
  55.     "scss/selector-no-redundant-nesting-selector": true,
  56.     "scss/double-slash-comment-empty-line-before": "always",
  57.     "scss/double-slash-comment-whitespace-inside": "always",
  58.     "sh-waqar/declaration-use-variable": "color",
  59.   },
  60.   "stylelint": {
  61.     "ignoreFiles": "./node_modules/**/*.css"
  62.   }
  63. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement