vue-cli-plugin-tea
Version:
为项目初始化提供更好的 lint 支持与更全面的目录结构
49 lines (48 loc) • 1.19 kB
JavaScript
module.exports = {
defaultSeverity: 'error',
extends: [
'stylelint-config-standard',
'stylelint-config-recess-order'
],
plugins: [
'stylelint-order',
<%_ if (useSass) { _%>
'stylelint-scss',
<%_ } _%>
'stylelint-prettier'
],
rules: {
'no-empty-source': process.env.NODE_ENV === 'production' ? true : null,
'at-rule-no-unknown': null,
'at-rule-no-vendor-prefix': true,
'declaration-property-value-blacklist': {
'/^transition/': ['/all/'],
'/^background/': ['http:', 'https:'],
'/^border/': ['none'],
'/.+/': ['initial']
},
'media-feature-name-no-vendor-prefix': true,
'property-no-vendor-prefix': true,
<%_ if (useSass) { _%>
'scss/at-rule-no-unknown': [
true,
{
ignoreAtRules: [
'each',
'error',
'return'
]
}
],
<%_ } _%>
'selector-no-vendor-prefix': true,
'value-no-vendor-prefix': true,
'at-rule-empty-line-before': [
'always',
{
except: ['first-nested'],
ignore: ['blockless-after-same-name-blockless']
}
]
}
}