Replace ESLint with oxlint and add code quality tooling

- Replace ESLint/typescript-eslint with oxlint (faster, zero-config TypeScript linting)
- Add oxlint config with complexity thresholds, max-lines, and TypeScript rules
- Add jscpd for duplicate code detection
- Add knip for dead code and unused dependency detection
- Add scripts/scan-todos.mjs for tech debt marker scanning
- Add Husky pre-commit hook running oxlint on staged files
- Fix unnecessary array spreads flagged by oxlint
This commit is contained in:
morluto
2026-07-12 10:14:37 +08:00
parent ff0cbf9ee2
commit 8a62075a8e
10 changed files with 1625 additions and 1217 deletions
+1 -1
View File
@@ -133,7 +133,7 @@ export class BinarySession implements HopperToolPort {
}
async #drainCalls(): Promise<void> {
await Promise.allSettled([...this.#calls]);
await Promise.allSettled(this.#calls);
}
async #restore(