style: 💄 移除空行、优化注释

This commit is contained in:
ray
2025-02-12 17:22:08 +08:00
parent f5dbff0d9e
commit 94c815eb58
4 changed files with 1 additions and 4 deletions

View File

@@ -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)
// 允许使用未知伪类

View File

@@ -49,7 +49,7 @@ export default [
"no-unused-vars": [
"error",
{
argsIgnorePattern: "^_", // 忽略以 _ 开头的变量未使用警告
argsIgnorePattern: "^_", // 忽略参数名以 _ 开头的参数未使用警告
varsIgnorePattern: "^[A-Z0-9_]+$", // 忽略变量名为大写字母、数字或下划线组合的未使用警告(枚举定义未使用场景)
ignoreRestSiblings: true, // 忽略解构赋值中同级未使用变量的警告
},

View File

@@ -586,7 +586,6 @@ cols.value.forEach((item) => {
fields.push(item.prop);
}
});
const enum ExportsOriginEnum {
CURRENT = "current",
SELECTED = "selected",

View File

@@ -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 {