.stylelintrc.js 923 B

12345678910111213141516171819202122232425262728
  1. module.exports = {
  2. processors: [],
  3. plugins: [],
  4. extends: [
  5. 'stylelint-config-standard',
  6. 'stylelint-config-css-modules',
  7. 'stylelint-config-prettier'
  8. ],
  9. rules: {
  10. 'at-rule-name-case': 'lower',
  11. // 要求选择器列表的逗号之前有一个换行符
  12. 'selector-list-comma-newline-before': 'never-multi-line',
  13. 'block-no-empty': null,
  14. // 禁止低优先级的选择器出现在高优先级的选择器之后
  15. 'no-descending-specificity': null,
  16. // url使用引号
  17. 'function-url-quotes': 'always',
  18. 'color-function-notation': 'legacy',
  19. // 缩进
  20. indentation: 4,
  21. 'length-zero-no-unit': null,
  22. 'alpha-value-notation': null,
  23. // 禁止空源
  24. 'no-empty-source': null,
  25. // 禁止缺少文件末尾的换行符
  26. 'no-missing-end-of-source-newline': null
  27. }
  28. };