diff --git a/.stylelintrc.cjs b/.stylelintrc.cjs index 427857df..215713f3 100644 --- a/.stylelintrc.cjs +++ b/.stylelintrc.cjs @@ -22,7 +22,6 @@ module.exports = { ], rules: { "prettier/prettier": true, // 强制执行 Prettier 格式化规则(需配合 .prettierrc 配置文件) - "no-empty-source": null, // 允许空的样式文件 "declaration-property-value-no-unknown": null, // 允许非常规数值格式 ,如 height: calc(100% - 50) // 允许使用未知伪类 diff --git a/eslint.config.js b/eslint.config.js index 10453720..d952d1e7 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -49,7 +49,7 @@ export default [ "no-unused-vars": [ "error", { - argsIgnorePattern: "^_", // 忽略以 _ 开头的变量未使用警告 + argsIgnorePattern: "^_", // 忽略参数名以 _ 开头的参数未使用警告 varsIgnorePattern: "^[A-Z0-9_]+$", // 忽略变量名为大写字母、数字或下划线组合的未使用警告(枚举定义未使用场景) ignoreRestSiblings: true, // 忽略解构赋值中同级未使用变量的警告 }, diff --git a/src/components/CURD/PageContent.vue b/src/components/CURD/PageContent.vue index a65e3c78..f079d934 100644 --- a/src/components/CURD/PageContent.vue +++ b/src/components/CURD/PageContent.vue @@ -586,7 +586,6 @@ cols.value.forEach((item) => { fields.push(item.prop); } }); - const enum ExportsOriginEnum { CURRENT = "current", SELECTED = "selected", diff --git a/vite.config.ts b/vite.config.ts index 9b3e3927..02dfbd4f 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -20,7 +20,6 @@ const __APP_INFO__ = { const pathSrc = resolve(__dirname, "src"); // Vite配置 https://cn.vitejs.dev/config - export default defineConfig(({ mode }: ConfigEnv) => { const env = loadEnv(mode, process.cwd()); return {