Ai
1 Star 0 Fork 0

火力少年/vue3_backend-manage_project

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
.stylelintrc.cjs 1.95 KB
一键复制 编辑 原始数据 按行查看 历史
mikeylovegirl 提交于 2024-03-10 15:33 +08:00 . 项目初始化
module.exports = {
extends: [
'stylelint-config-standard', //配置stylelint拓展插件
'stylelint-config-html/vue', //配置vue中的template样式格式化
'stylelint-config-standard-scss', //配置stylelint scss插件
'stylelint-config-recommended-vue/scss', //配置vue中的scss样式格式化
'stylelint-config-recess-order', //配置stylelint css书写顺序插件
'stylelint-config-prettier', //配置stylelint和prettier兼容
],
overrides: [
{
files: ['**/*.(scss|css|vue|html)'],
customSyntax: 'postcss-scss',
},
{
files: ['**/*.(html|vue)'],
customSyntax: 'postcss-html',
},
],
ignoreFiles: [
'**/*.js',
'**/*.jsx',
'**/*.tsx',
'**/*.ts',
'**/*.json',
'**/*.md',
'**/*.yaml',
],
/*null->关闭该规则,always->必须*/
rules: {
'value-keyword-case': null, //在css中使用v-bind不报错
'no-descending-specificity': null, //禁止在具有较高优先级的选择器后出现被其覆盖的较低优先级的选择器
'fuction-url-quotes': 'always', //要求禁止URL的引号
'no-empty-source': null, //关闭禁止空源码
'selector-class-pattern': null, //关闭强制选择器类名的格式
'property-no-unknown': null, //禁止未知的属性
'block-opening-brace-space-before': 'always', //大括号之前必须有一个空格或不能有空白符
'value-no-vendor-prefix': null, //关闭属性值前缀 --webkit-box
'property-no-vendor-prefix': null, //关闭属性前缀 --webkit-mask
'selector-pseudo-class-no-unknown': [
//不允许未知的选择器
true,
{
ignorePseudoClasses: ['global', 'v-deep', 'deep'], //忽略属性,修改element默认样式的时候能使用到
}
]
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/firepower-boy/vue3_backend-manage_project.git
git@gitee.com:firepower-boy/vue3_backend-manage_project.git
firepower-boy
vue3_backend-manage_project
vue3_backend-manage_project
master

搜索帮助