.stylelintrc.json 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. {
  2. "extends": "stylelint-config-recommended",
  3. "plugins": [
  4. "stylelint-order",
  5. "@stylistic/stylelint-plugin"
  6. ],
  7. "rules": {
  8. "at-rule-empty-line-before": [
  9. "always", {
  10. "ignoreAtRules": [ "after-comment", "else" ]
  11. }
  12. ],
  13. "@stylistic/at-rule-name-space-after": [
  14. "always", {
  15. "ignoreAtRules": [ "after-comment" ]
  16. }
  17. ],
  18. "@stylistic/block-closing-brace-newline-after": [
  19. "always", {
  20. "ignoreAtRules": [ "if", "else" ]
  21. }
  22. ],
  23. "@stylistic/block-closing-brace-newline-before": "always-multi-line",
  24. "@stylistic/block-opening-brace-newline-after": "always-multi-line",
  25. "@stylistic/block-opening-brace-space-before": "always",
  26. "@stylistic/color-hex-case": "lower",
  27. "color-hex-length": "short",
  28. "color-no-invalid-hex": true,
  29. "@stylistic/declaration-colon-space-after": "always",
  30. "@stylistic/declaration-colon-space-before": "never",
  31. "@stylistic/indentation": "tab",
  32. "no-descending-specificity": null,
  33. "@stylistic/no-eol-whitespace": true,
  34. "property-no-vendor-prefix": true,
  35. "rule-empty-line-before": [
  36. "always", {
  37. "except": ["after-single-line-comment","first-nested"]
  38. }
  39. ],
  40. "order/properties-order": [
  41. "margin",
  42. "padding",
  43. "background",
  44. "display",
  45. "float",
  46. "max-width",
  47. "width",
  48. "max-height",
  49. "height",
  50. "color",
  51. "font",
  52. "font-family",
  53. "font-size",
  54. "border",
  55. "border-top",
  56. "border-top-color",
  57. "border-right",
  58. "border-right-color",
  59. "border-bottom",
  60. "border-bottom-color",
  61. "border-left",
  62. "border-left-color",
  63. "border-radius",
  64. "box-shadow"
  65. ]
  66. }
  67. }