.stylelintrc.json 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. {
  2. "rules": {
  3. "color-hex-case": "lower",
  4. "color-no-invalid-hex": true,
  5. "function-calc-no-unspaced-operator": true,
  6. "function-comma-space-after": "always-single-line",
  7. "function-comma-space-before": "never",
  8. "function-name-case": "lower",
  9. "function-url-quotes": "always",
  10. "function-whitespace-after": "always",
  11. "number-leading-zero": "always",
  12. "number-no-trailing-zeros": true,
  13. "length-zero-no-unit": true,
  14. "string-no-newline": true,
  15. "string-quotes": "single",
  16. "unit-case": "lower",
  17. "unit-no-unknown": true,
  18. "unit-whitelist": ["px", "%", "deg", "ms", "em", "vh", "vw", "s", "rem"],
  19. "value-list-comma-space-after": "always-single-line",
  20. "value-list-comma-space-before": "never",
  21. "shorthand-property-no-redundant-values": true,
  22. "property-case": "lower",
  23. "declaration-block-no-duplicate-properties": [ true, {
  24. "ignore": ["consecutive-duplicates-with-different-values"]
  25. }],
  26. "declaration-block-trailing-semicolon": "always",
  27. "declaration-block-single-line-max-declarations": 1,
  28. "declaration-block-semicolon-space-before": "never",
  29. "declaration-block-semicolon-space-after": "always-single-line",
  30. "declaration-block-semicolon-newline-before": "never-multi-line",
  31. "declaration-block-semicolon-newline-after": "always-multi-line",
  32. "declaration-property-value-blacklist": [
  33. { "/.*/": ["initial"] },
  34. { "message": "The `initial` value is not supported in IE."}
  35. ],
  36. "block-closing-brace-newline-after": [
  37. "always",
  38. {
  39. "ignoreAtRules": ["if", "else"]
  40. }
  41. ],
  42. "block-closing-brace-newline-before": "always-multi-line",
  43. "block-opening-brace-newline-after": "always-multi-line",
  44. "block-opening-brace-space-before": "always-multi-line",
  45. "selector-attribute-brackets-space-inside": "never",
  46. "selector-attribute-operator-space-after": "never",
  47. "selector-attribute-operator-space-before": "never",
  48. "selector-combinator-space-after": "always",
  49. "selector-combinator-space-before": "always",
  50. "selector-pseudo-class-case": "lower",
  51. "selector-pseudo-class-parentheses-space-inside": "never",
  52. "selector-pseudo-element-case": "lower",
  53. "selector-pseudo-element-colon-notation": "double",
  54. "selector-pseudo-element-no-unknown": [true, {
  55. "ignorePseudoElements": ["ng-deep"]
  56. }],
  57. "selector-type-case": "lower",
  58. "selector-max-id": 0,
  59. "no-missing-end-of-source-newline": true,
  60. "max-line-length": 120
  61. }
  62. }