mirror of
https://github.com/morluto/rea.git
synced 2026-10-12 02:19:24 +00:00
- 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
34 lines
807 B
JSON
34 lines
807 B
JSON
{
|
|
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
|
"plugins": ["typescript", "import", "unicorn", "oxc"],
|
|
"rules": {
|
|
"complexity": ["warn", 20],
|
|
"max-depth": ["warn", 4],
|
|
"max-lines": [
|
|
"warn",
|
|
{ "max": 500, "skipBlankLines": true, "skipComments": true }
|
|
],
|
|
"max-lines-per-function": [
|
|
"warn",
|
|
{ "max": 100, "skipBlankLines": true, "skipComments": true }
|
|
],
|
|
"max-params": ["warn", 4],
|
|
"no-var": "warn",
|
|
"no-var-requires": "error"
|
|
},
|
|
"overrides": [
|
|
{
|
|
"files": ["tests/**/*.ts"],
|
|
"rules": {
|
|
"max-lines-per-function": "off",
|
|
"max-lines": "off"
|
|
}
|
|
}
|
|
],
|
|
"env": {
|
|
"node": true,
|
|
"es2023": true
|
|
},
|
|
"ignorePatterns": ["dist", "node_modules", "docs/api", ".codex", ".devin"]
|
|
}
|