stylelint.config.js 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. module.exports = {
  2. plugins: [
  3. 'stylelint-order'
  4. ],
  5. customSyntax: 'postcss-html',
  6. extends: [
  7. 'stylelint-config-recess-order',
  8. 'stylelint-config-standard-scss',
  9. 'stylelint-config-standard-vue/scss'
  10. ],
  11. rules: {
  12. 'function-url-quotes': null, // 设置url(路径可不加引号)
  13. 'selector-class-pattern': null, // 设置类名选择器不遵循 kebab-case
  14. 'no-descending-specificity': null, // 设置允许低优先级的选择器出现在高优先级的选择器之后
  15. 'no-empty-source': null, // 允许文件内容为空
  16. 'font-family-no-missing-generic-family-keyword': null, // 设置允许定义非"generic-family"风格字体
  17. 'color-function-notation': null, // rgba legacy
  18. 'alpha-value-notation': null, // 透明度值不限制
  19. 'selector-pseudo-class-no-unknown': [ // sass :export 报错
  20. true,
  21. {
  22. 'ignorePseudoClasses': [':export']
  23. }
  24. ],
  25. 'property-no-vendor-prefix': null, // 允许输入 -webkit-
  26. 'at-rule-no-vendor-prefix': null, // 允许 @-webkit-keyframes
  27. 'block-no-empty': null, // 允许空块
  28. 'no-invalid-double-slash-comments': null, // 允许 // 注释
  29. 'scss/at-import-partial-extension': null // scss 允许 @import 待 后缀名
  30. }
  31. }