代码拉取完成,页面将自动刷新
// @ts-check
// @see https://stylelint.nodejs.cn/user-guide/rules#empty-lines
/** @type {import("stylelint").Config} */
export default {
// 继承推荐规范配置
extends: [
'stylelint-config-standard',
'stylelint-config-html/vue',
'stylelint-config-standard-scss',
'stylelint-config-recommended-vue/scss',
'stylelint-config-recess-order'
],
// 自定义规则
rules: {
'property-no-unknown': null, // 禁止未知的属性
'no-empty-source': null, // 禁止空源码
'block-no-empty': null, // 禁止空块。
// 'comment-empty-line-before': true, // 要求或禁止注释前有空行。
// 'at-rule-empty-line-before': null, // 要求或不允许 at 规则前有空行。
// 'declaration-empty-line-before': null, // 要求或不允许声明前有空行。
'rule-empty-line-before': null, //要求或不允许规则前有空行。
'no-descending-specificity': null, // 不允许较低特异性的选择器出现在覆盖较高特异性的选择器
'value-keyword-case': null, // 解决在 scss 中使用 v-bind 大写单词报错
'selector-class-pattern': null, // 强制选择器类名的格式
'font-family-no-missing-generic-family-keyword': null, // 禁止在字体族名称列表中缺少通用字体族关键字
'selector-pseudo-class-no-unknown': [
// 禁止未知的伪类选择器。
true,
{
ignorePseudoClasses: ['global', 'v-deep', 'deep', 'export']
}
]
},
// 排除文件
ignoreFiles: ['**/*.js', '**/*.jsx', '**/*.ts', '**/*.d.ts']
};
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。