2024-02-13 18:55:31 +08:00
|
|
|
|
export default {
|
2021-10-18 17:04:47 +08:00
|
|
|
|
defaultSeverity: 'error',
|
2023-07-06 12:01:08 +08:00
|
|
|
|
extends: ['stylelint-config-standard'],
|
2023-07-11 16:38:05 +08:00
|
|
|
|
rules: {
|
|
|
|
|
'no-descending-specificity': null,
|
|
|
|
|
'import-notation': 'string',
|
2023-08-05 16:57:30 +08:00
|
|
|
|
'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'],
|
|
|
|
|
},
|
|
|
|
|
],
|
2023-11-16 16:54:06 +08:00
|
|
|
|
'media-query-no-invalid': null, // 官方表示此规则应当仅对于原生CSS启用,对于预处理器(Less)不应启用
|
2023-07-11 16:38:05 +08:00
|
|
|
|
},
|
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',
|
|
|
|
|
},
|
|
|
|
|
],
|
2021-10-18 17:04:47 +08:00
|
|
|
|
};
|