tdesign-vue-next-starter/stylelint.config.js

29 lines
719 B
JavaScript
Raw Normal View History

module.exports = {
defaultSeverity: 'error',
extends: ['stylelint-config-standard'],
rules: {
'no-descending-specificity': null,
'import-notation': 'string',
'no-empty-source': null,
'custom-property-pattern': null,
'selector-class-pattern': null,
2023-07-12 16:29:42 +08:00
'selector-pseudo-class-no-unknown': [
true,
{
ignorePseudoClasses: ['deep'],
},
],
'media-query-no-invalid': null, // 官方表示此规则应当仅对于原生CSS启用对于预处理器Less不应启用
},
2023-02-01 15:37:47 +08:00
overrides: [
{
2023-02-27 14:33:08 +08:00
files: ['**/*.html', '**/*.vue'],
2023-02-01 15:37:47 +08:00
customSyntax: 'postcss-html',
},
{
files: ['**/*.less'],
customSyntax: 'postcss-less',
},
],
};