.stylelintrc.json 2.1 KB

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