mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-21 12:52:26 +00:00
1. 统一所有API文件的request导入路径,从@utils/http改为@utils 2. 合并工具类导出,将分散的工具模块整合到@utils统一出口 3. 重构状态管理导入路径,统一从@utils导入相关工具与store 4. 整理组件导入与样式引用,优化项目内组件与样式的引用路径 5. 新增部分基础组件与工具方法,完善项目基础能力 6. 修复部分样式类名的书写规范,统一类名格式
68 lines
1.5 KiB
JavaScript
68 lines
1.5 KiB
JavaScript
module.exports = {
|
|
extends: [
|
|
"stylelint-config-standard",
|
|
"stylelint-config-recommended-scss",
|
|
"stylelint-config-recess-order",
|
|
],
|
|
overrides: [
|
|
{
|
|
files: ["**/*.{vue,html}"],
|
|
customSyntax: "postcss-html",
|
|
},
|
|
{
|
|
files: ["**/*.{css,scss}"],
|
|
customSyntax: "postcss-scss",
|
|
},
|
|
],
|
|
rules: {
|
|
"import-notation": "string",
|
|
"selector-class-pattern": null,
|
|
"custom-property-pattern": null,
|
|
"keyframes-name-pattern": null,
|
|
"no-descending-specificity": null,
|
|
"no-empty-source": null,
|
|
"property-no-vendor-prefix": null,
|
|
"at-rule-empty-line-before": null,
|
|
// 允许 Vue SFC :deep() / ::deep / :global() / :slotted() 伪选择器
|
|
"selector-pseudo-class-no-unknown": [
|
|
true,
|
|
{
|
|
ignorePseudoClasses: ["global", "export", "deep", "slotted"],
|
|
},
|
|
],
|
|
"selector-pseudo-element-no-unknown": [
|
|
true,
|
|
{
|
|
ignorePseudoElements: ["deep"],
|
|
},
|
|
],
|
|
// 允许 SCSS + Tailwind CSS v4 专属 at-rules
|
|
"at-rule-no-unknown": null,
|
|
"scss/at-rule-no-unknown": [
|
|
true,
|
|
{
|
|
ignoreAtRules: [
|
|
"apply",
|
|
"use",
|
|
"mixin",
|
|
"include",
|
|
"extend",
|
|
"each",
|
|
"if",
|
|
"else",
|
|
"for",
|
|
"while",
|
|
"reference",
|
|
"tailwind",
|
|
"theme",
|
|
"utility",
|
|
"custom-variant",
|
|
"layer",
|
|
"config",
|
|
"plugin",
|
|
],
|
|
},
|
|
],
|
|
},
|
|
};
|