1 Star 0 Fork 4K

18022062176/JeeSite

forked from 卓源软件/JeeSite 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
stylelint.config.mjs 3.10 KB
一键复制 编辑 原始数据 按行查看 历史
/**
* Copyright (c) 2013-Now http://jeesite.com All rights reserved.
* No deletion without permission, or be held responsible to law.
* @author ThinkGem
*/
export default {
root: true,
plugins: ['stylelint-prettier', 'stylelint-less', '@stylistic/stylelint-plugin'],
extends: ['stylelint-config-standard', 'stylelint-config-standard-less'],
ignoreFiles: ['**/*.js', '**/*.jsx', '**/*.tsx', '**/*.ts'],
overrides: [
{
files: ['*.(html|vue)', '**/*.(html|vue)'],
customSyntax: 'postcss-html',
extends: ['stylelint-config-recommended-vue'],
rules: {
'selector-pseudo-class-no-unknown': [
true,
{
ignorePseudoClasses: ['global', 'deep'],
},
],
'selector-pseudo-element-no-unknown': [
true,
{
ignorePseudoElements: ['v-deep', 'v-global', 'v-slotted'],
},
],
},
},
{
files: ['*.less', '**/*.less'],
customSyntax: 'postcss-less',
extends: ['stylelint-config-recommended-less'],
},
{
files: ['*.scss', '**/*.scss'],
customSyntax: 'postcss-scss',
extends: ['stylelint-config-recommended-scss', 'stylelint-config-recommended-vue/scss'],
},
],
rules: {
'prettier/prettier': [
true,
{
preferPositionShorthand: 'never',
preferOverflowShorthand: 'separate',
},
],
'media-feature-range-notation': null,
'selector-not-notation': null,
'import-notation': null,
'function-no-unknown': null,
'selector-class-pattern': null,
'at-rule-prelude-no-invalid': null,
'declaration-property-value-no-unknown': null,
'declaration-property-value-keyword-no-deprecated': null,
'declaration-property-value-disallowed-list': {
inset: [/.*/], // 禁止所有 inset 属性值
},
// 允许使用传统属性
'declaration-property-value-allowed-list': {
top: [/.*/],
right: [/.*/],
bottom: [/.*/],
left: [/.*/],
},
'selector-pseudo-class-no-unknown': [
true,
{
ignorePseudoClasses: ['global', 'deep'],
},
],
'selector-pseudo-element-no-unknown': [
true,
{
ignorePseudoElements: ['v-deep'],
},
],
'at-rule-no-unknown': [
true,
{
ignoreAtRules: [
'extends',
'ignores',
'include',
'mixin',
'if',
'else',
'media',
'for',
'at-root',
'unocss',
'apply',
'variants',
'responsive',
'screen',
'function',
'each',
'use',
'forward',
'return',
],
},
],
'no-empty-source': null,
'named-grid-areas-no-invalid': null,
'no-descending-specificity': null,
'font-family-no-missing-generic-family-keyword': null,
'media-query-no-invalid': null,
'rule-empty-line-before': [
'always',
{
ignore: ['after-comment', 'first-nested'],
},
],
'unit-no-unknown': [true, { ignoreUnits: ['rpx'] }],
'no-duplicate-selectors': null,
},
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/zhangzizixng/jeesite.git
git@gitee.com:zhangzizixng/jeesite.git
zhangzizixng
jeesite
JeeSite
main

搜索帮助