.stylelintrc.js 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. // https://stylelint.io/user-guide/rules/list
  2. module.exports = {
  3. extends: 'stylelint-config-standard',
  4. rules: {
  5. 'indentation': 2,
  6. 'max-nesting-depth': 4,
  7. 'max-empty-lines': null,
  8. 'no-eol-whitespace': true,
  9. 'no-missing-end-of-source-newline': null,
  10. 'no-descending-specificity': null,
  11. 'at-rule-empty-line-before': null,
  12. 'at-rule-no-unknown': null,
  13. 'rule-empty-line-before': null,
  14. 'number-leading-zero': null,
  15. 'string-no-newline': true,
  16. 'string-quotes': 'single',
  17. 'color-hex-case': 'lower',
  18. 'color-hex-length': 'short',
  19. 'color-no-invalid-hex': true,
  20. 'font-weight-notation': 'numeric',
  21. 'font-family-no-missing-generic-family-keyword': null,
  22. 'function-calc-no-unspaced-operator': true,
  23. 'function-url-quotes': 'never',
  24. 'block-no-empty': true,
  25. 'block-opening-brace-newline-after': 'always',
  26. 'block-opening-brace-space-before': 'always',
  27. 'declaration-block-no-duplicate-properties': true,
  28. 'declaration-block-semicolon-newline-after': 'always',
  29. 'declaration-block-trailing-semicolon': 'always',
  30. 'selector-pseudo-element-colon-notation': 'double',
  31. 'selector-pseudo-element-no-unknown': null,
  32. 'selector-list-comma-newline-after': null,
  33. },
  34. }