1
0

index.mjs 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. export default {
  2. extends: ['stylelint-config-standard', 'stylelint-config-recess-order'],
  3. ignoreFiles: [
  4. '**/*.js',
  5. '**/*.jsx',
  6. '**/*.tsx',
  7. '**/*.ts',
  8. '**/*.json',
  9. '**/*.md',
  10. ],
  11. overrides: [
  12. {
  13. customSyntax: 'postcss-html',
  14. files: ['*.(html|vue)', '**/*.(html|vue)'],
  15. rules: {
  16. 'selector-pseudo-class-no-unknown': [
  17. true,
  18. {
  19. ignorePseudoClasses: ['global', 'deep'],
  20. },
  21. ],
  22. 'selector-pseudo-element-no-unknown': [
  23. true,
  24. {
  25. ignorePseudoElements: ['v-deep', 'v-global', 'v-slotted'],
  26. },
  27. ],
  28. },
  29. },
  30. {
  31. customSyntax: 'postcss-scss',
  32. extends: [
  33. 'stylelint-config-recommended-scss',
  34. 'stylelint-config-recommended-vue/scss',
  35. ],
  36. files: ['*.scss', '**/*.scss'],
  37. },
  38. ],
  39. plugins: [
  40. 'stylelint-order',
  41. '@stylistic/stylelint-plugin',
  42. 'stylelint-prettier',
  43. 'stylelint-scss',
  44. ],
  45. rules: {
  46. 'at-rule-no-deprecated': null,
  47. 'at-rule-no-unknown': [
  48. true,
  49. {
  50. ignoreAtRules: [
  51. 'extends',
  52. 'ignores',
  53. 'include',
  54. 'mixin',
  55. 'if',
  56. 'else',
  57. 'media',
  58. 'for',
  59. 'at-root',
  60. 'tailwind',
  61. 'apply',
  62. 'variants',
  63. 'responsive',
  64. 'screen',
  65. 'function',
  66. 'each',
  67. 'use',
  68. 'forward',
  69. 'return',
  70. ],
  71. },
  72. ],
  73. 'font-family-no-missing-generic-family-keyword': null,
  74. 'function-no-unknown': null,
  75. 'import-notation': null,
  76. 'media-feature-range-notation': null,
  77. 'named-grid-areas-no-invalid': null,
  78. 'no-descending-specificity': null,
  79. 'no-empty-source': null,
  80. 'order/order': [
  81. [
  82. 'dollar-variables',
  83. 'custom-properties',
  84. 'at-rules',
  85. 'declarations',
  86. {
  87. name: 'supports',
  88. type: 'at-rule',
  89. },
  90. {
  91. name: 'media',
  92. type: 'at-rule',
  93. },
  94. {
  95. name: 'include',
  96. type: 'at-rule',
  97. },
  98. 'rules',
  99. ],
  100. { severity: 'error' },
  101. ],
  102. 'prettier/prettier': true,
  103. 'rule-empty-line-before': [
  104. 'always',
  105. {
  106. ignore: ['after-comment', 'first-nested'],
  107. },
  108. ],
  109. 'scss/at-rule-no-unknown': [
  110. true,
  111. {
  112. ignoreAtRules: [
  113. 'extends',
  114. 'ignores',
  115. 'include',
  116. 'mixin',
  117. 'if',
  118. 'else',
  119. 'media',
  120. 'for',
  121. 'at-root',
  122. 'tailwind',
  123. 'apply',
  124. 'variants',
  125. 'responsive',
  126. 'screen',
  127. 'function',
  128. 'each',
  129. 'use',
  130. 'forward',
  131. 'return',
  132. ],
  133. },
  134. ],
  135. 'scss/operator-no-newline-after': null,
  136. 'selector-class-pattern':
  137. '^(?:(?:o|c|u|t|s|is|has|_|js|qa)-)?[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*(?:__[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*)?(?:--[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*)?(?:[.+])?$',
  138. 'selector-not-notation': null,
  139. },
  140. };