🐳 chore: eslint config and script

`eslint` 只忽略 `tauri` 文件目录
增加 `eslint` 自动修复命令
This commit is contained in:
m1m1sha 2024-05-07 14:33:26 +08:00
parent 831ede7d35
commit 5605d239ce
2 changed files with 2 additions and 3 deletions

View File

@ -8,7 +8,5 @@ export default antfu({
},
ignores: [
'src-tauri/**',
'**/vite-env.d.ts',
'**/typed-router.d.ts',
],
})

View File

@ -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",