42 lines
1001 B
JavaScript
42 lines
1001 B
JavaScript
module.exports = {
|
|
extends: [
|
|
'stylelint-config-standard',
|
|
'stylelint-config-rational-order',
|
|
'stylelint-config-prettier',
|
|
'stylelint-config-recommended-vue',
|
|
'stylelint-config-recommended',
|
|
],
|
|
defaultSeverity: 'warning',
|
|
plugins: ['stylelint-order'],
|
|
rules: {
|
|
'selector-anb-no-unmatchable': null,
|
|
'media-query-no-invalid': null,
|
|
'media-feature-name-no-unknown': null,
|
|
'at-rule-no-unknown': [
|
|
true,
|
|
{
|
|
ignoreAtRules: ['plugin'],
|
|
},
|
|
],
|
|
'rule-empty-line-before': [
|
|
'always',
|
|
{
|
|
except: ['after-single-line-comment', 'first-nested'],
|
|
},
|
|
],
|
|
'selector-pseudo-class-no-unknown': [
|
|
true,
|
|
{
|
|
ignorePseudoClasses: ['deep'],
|
|
},
|
|
],
|
|
'declaration-block-no-duplicate-properties': [
|
|
true,
|
|
{
|
|
ignore: ['consecutive-duplicates'], // or 'consecutive-duplicates-with-same-value'
|
|
},
|
|
],
|
|
},
|
|
files: ['*.vue', '**/*.vue', '*.css', '**/*.css'],
|
|
};
|