1 Star 3 Fork 1

xiaoyuan-zs/vue-spyro-admin

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
stylelint.config.js 1.48 KB
一键复制 编辑 原始数据 按行查看 历史
xiaoyuan-zs 提交于 2024-08-25 19:40 +08:00 . fix: 修复异常页面
// @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']
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/xiaoyuan-zs/vue-spyro-admin.git
git@gitee.com:xiaoyuan-zs/vue-spyro-admin.git
xiaoyuan-zs
vue-spyro-admin
vue-spyro-admin
master

搜索帮助