chore: add ESLint v9 config with typescript-eslint

- Add eslint.config.mjs with typescript-eslint integration
- Install typescript-eslint, @typescript-eslint/eslint-plugin, @typescript-eslint/parser
- Fix unused params warning in ipc-handlers.ts
This commit is contained in:
2026-03-12 13:54:56 +08:00
parent 0945d7f0b2
commit 7be6a3ff6a
5 changed files with 403 additions and 1 deletions

View File

@@ -42,6 +42,8 @@
"@types/node": "^22.0.0",
"@types/react": "^19.0.0",
"@types/react-dom": "^19.0.0",
"@typescript-eslint/eslint-plugin": "^8.57.0",
"@typescript-eslint/parser": "^8.57.0",
"@vitejs/plugin-react": "^4.3.0",
"electron": "^30.5.1",
"electron-builder": "^26.0.0",
@@ -51,6 +53,7 @@
"eslint-plugin-react-hooks": "^5.0.0",
"prettier": "^3.2.0",
"typescript": "^5.7.0",
"typescript-eslint": "^8.57.0",
"vite": "^5.4.0"
}
}