初始化
This commit is contained in:
28
auts_new.client/stylelint.config.js
Normal file
28
auts_new.client/stylelint.config.js
Normal file
@@ -0,0 +1,28 @@
|
||||
export default {
|
||||
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,
|
||||
'selector-pseudo-class-no-unknown': [
|
||||
true,
|
||||
{
|
||||
ignorePseudoClasses: ['deep'],
|
||||
},
|
||||
],
|
||||
'media-query-no-invalid': null, // 官方表示此规则应当仅对于原生CSS启用,对于预处理器(Less)不应启用
|
||||
},
|
||||
overrides: [
|
||||
{
|
||||
files: ['**/*.html', '**/*.vue'],
|
||||
customSyntax: 'postcss-html',
|
||||
},
|
||||
{
|
||||
files: ['**/*.less'],
|
||||
customSyntax: 'postcss-less',
|
||||
},
|
||||
],
|
||||
};
|
||||
Reference in New Issue
Block a user