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:
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"$schema": "./node_modules/knip/schema.json",
|
||||
"entry": ["src/main.ts", "src/cli.ts", "scripts/rea.mjs", "scripts/scan-todos.mjs"],
|
||||
"project": ["src/**/*.ts", "tests/**/*.ts", "scripts/**/*.mjs", "vitest.config.ts"],
|
||||
"ignore": ["dist/**", "docs/**", ".codex/**", ".devin/**"],
|
||||
"ignoreDependencies": [],
|
||||
"rules": {
|
||||
"files": "warn",
|
||||
"dependencies": "warn",
|
||||
"devDependencies": "warn",
|
||||
"unlisted": "error",
|
||||
"exports": "warn",
|
||||
"nsExports": "warn",
|
||||
"types": "warn",
|
||||
"nsTypes": "warn",
|
||||
"enumMembers": "warn",
|
||||
"duplicates": "error"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user