|
|
|
@ -1,14 +1,10 @@ |
|
|
|
module.exports = { |
|
|
|
root: true, |
|
|
|
plugins: ['stylelint-order'], |
|
|
|
processors: ['stylelint-processor-html'], |
|
|
|
extends: [ |
|
|
|
'stylelint-config-standard', |
|
|
|
'stylelint-config-prettier', |
|
|
|
'stylelint-config-recommended-vue/less', |
|
|
|
], |
|
|
|
extends: ['stylelint-config-standard', 'stylelint-config-prettier'], |
|
|
|
|
|
|
|
rules: { |
|
|
|
'function-no-unknown': null, |
|
|
|
'selector-class-pattern': null, |
|
|
|
'selector-pseudo-class-no-unknown': [ |
|
|
|
true, |
|
|
|
@ -40,6 +36,7 @@ module.exports = { |
|
|
|
}, |
|
|
|
], |
|
|
|
'no-empty-source': null, |
|
|
|
'string-quotes': null, |
|
|
|
'named-grid-areas-no-invalid': null, |
|
|
|
'unicode-bom': 'never', |
|
|
|
'no-descending-specificity': null, |
|
|
|
@ -77,7 +74,7 @@ module.exports = { |
|
|
|
overrides: [ |
|
|
|
{ |
|
|
|
files: ['*.vue', '**/*.vue', '*.html', '**/*.html'], |
|
|
|
extends: ['stylelint-config-recommended', 'stylelint-config-html'], |
|
|
|
extends: ['stylelint-config-recommended'], |
|
|
|
rules: { |
|
|
|
'keyframes-name-pattern': null, |
|
|
|
'selector-pseudo-class-no-unknown': [ |
|
|
|
@ -94,5 +91,10 @@ module.exports = { |
|
|
|
], |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
files: ['*.less', '**/*.less'], |
|
|
|
customSyntax: 'postcss-less', |
|
|
|
extends: ['stylelint-config-standard', 'stylelint-config-recommended-vue'], |
|
|
|
}, |
|
|
|
], |
|
|
|
}; |
|
|
|
|