From 6089813da5f410fc17d359d745d9ea317770d747 Mon Sep 17 00:00:00 2001 From: m1m1sha <18262227804@163.com> Date: Tue, 7 May 2024 14:33:26 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=B3=20chore:=20eslint=20config=20and?= =?UTF-8?q?=20script?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `eslint` 只忽略 `tauri` 文件目录 增加 `eslint` 自动修复命令 --- easytier-gui/eslint.config.js | 2 -- easytier-gui/package.json | 3 ++- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/easytier-gui/eslint.config.js b/easytier-gui/eslint.config.js index a0739ab..28d0e49 100644 --- a/easytier-gui/eslint.config.js +++ b/easytier-gui/eslint.config.js @@ -8,7 +8,5 @@ export default antfu({ }, ignores: [ 'src-tauri/**', - '**/vite-env.d.ts', - '**/typed-router.d.ts', ], }) diff --git a/easytier-gui/package.json b/easytier-gui/package.json index 4bf7f27..263f61a 100644 --- a/easytier-gui/package.json +++ b/easytier-gui/package.json @@ -8,7 +8,8 @@ "build": "vue-tsc --noEmit && vite build", "preview": "vite preview", "tauri": "tauri", - "lint": "eslint . --ignore-pattern src-tauri --ignore-pattern src/**.d.ts" + "lint": "eslint . --ignore-pattern src-tauri", + "lint:fix": "eslint . --ignore-pattern src-tauri --fix" }, "dependencies": { "@tauri-apps/api": "^1",