mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-09-05 23:47:43 +08:00
119 lines
2.8 KiB
JavaScript
119 lines
2.8 KiB
JavaScript
module.exports = {
|
|
extends: ['stylelint-config-standard', 'stylelint-config-html/vue', 'stylelint-config-standard-vue'],
|
|
plugins: ['stylelint-order'],
|
|
rules: {
|
|
// 这里是允许了空的style标签
|
|
'no-empty-source': null,
|
|
'selector-class-pattern': null,
|
|
// 禁止空块
|
|
'block-no-empty': true,
|
|
// 颜色6位长度
|
|
'color-hex-length': 'long',
|
|
// 兼容自定义标签名
|
|
'selector-type-no-unknown': [
|
|
true,
|
|
{
|
|
ignoreTypes: [],
|
|
},
|
|
],
|
|
// 忽略伪类选择器 ::v-deep
|
|
'selector-pseudo-element-no-unknown': [
|
|
true,
|
|
{
|
|
ignorePseudoElements: ['v-deep'],
|
|
},
|
|
],
|
|
// 禁止低优先级的选择器出现在高优先级的选择器之后。
|
|
'no-descending-specificity': null,
|
|
// 不验证@未知的名字,为了兼容scss的函数
|
|
'at-rule-no-unknown': null,
|
|
// 禁止空注释
|
|
'comment-no-empty': true,
|
|
// 禁止简写属性的冗余值
|
|
'shorthand-property-no-redundant-values': true,
|
|
// 禁止值的浏览器引擎前缀
|
|
'value-no-vendor-prefix': true,
|
|
// property-no-vendor-prefix
|
|
'property-no-vendor-prefix': true,
|
|
// 属性的排序
|
|
'order/properties-order': [
|
|
'position',
|
|
'top',
|
|
'right',
|
|
'bottom',
|
|
'left',
|
|
'z-index',
|
|
'display',
|
|
'justify-content',
|
|
'align-items',
|
|
'float',
|
|
'clear',
|
|
'overflow',
|
|
'overflow-x',
|
|
'overflow-y',
|
|
'margin',
|
|
'margin-top',
|
|
'margin-right',
|
|
'margin-bottom',
|
|
'margin-left',
|
|
'border',
|
|
'border-style',
|
|
'border-width',
|
|
'border-color',
|
|
'border-top',
|
|
'border-top-style',
|
|
'border-top-width',
|
|
'border-top-color',
|
|
'border-right',
|
|
'border-right-style',
|
|
'border-right-width',
|
|
'border-right-color',
|
|
'border-bottom',
|
|
'border-bottom-style',
|
|
'border-bottom-width',
|
|
'border-bottom-color',
|
|
'border-left',
|
|
'border-left-style',
|
|
'border-left-width',
|
|
'border-left-color',
|
|
'border-radius',
|
|
'padding',
|
|
'padding-top',
|
|
'padding-right',
|
|
'padding-bottom',
|
|
'padding-left',
|
|
'width',
|
|
'min-width',
|
|
'max-width',
|
|
'height',
|
|
'min-height',
|
|
'max-height',
|
|
'font-size',
|
|
'font-family',
|
|
'font-weight',
|
|
'text-align',
|
|
'text-justify',
|
|
'text-indent',
|
|
'text-overflow',
|
|
'text-decoration',
|
|
'white-space',
|
|
'color',
|
|
'background',
|
|
'background-position',
|
|
'background-repeat',
|
|
'background-size',
|
|
'background-color',
|
|
'background-clip',
|
|
'opacity',
|
|
'filter',
|
|
'list-style',
|
|
'outline',
|
|
'visibility',
|
|
'box-shadow',
|
|
'text-shadow',
|
|
'resize',
|
|
'transition',
|
|
],
|
|
},
|
|
}
|