Context
The eslint.config.js blanket-disables @typescript-eslint/no-unsafe-* rules for all of src/. Additionally, 6+ inline suppressions exist in source files. This weakens static analysis coverage for non-DOM code.
Goal
Replace blanket disables with per-line suppressions only where DOM API interop requires it. Reduce inline suppressions where structural changes can eliminate them.
Implementation
- Remove blanket
no-unsafe-* disable from eslint.config.js
- Run ESLint, categorize violations (DOM interop vs fixable)
- Fix fixable violations, add per-line suppressions with justification for DOM interop
- Review and reduce remaining inline suppressions across source files
Files
eslint.config.js
- Multiple
src/**/*.ts files
Source: AUDIT2 (-3 Security), AUDIT3 (noted), AUDIT4 (-1 Clean Code)
Context
The
eslint.config.jsblanket-disables@typescript-eslint/no-unsafe-*rules for all ofsrc/. Additionally, 6+ inline suppressions exist in source files. This weakens static analysis coverage for non-DOM code.Goal
Replace blanket disables with per-line suppressions only where DOM API interop requires it. Reduce inline suppressions where structural changes can eliminate them.
Implementation
no-unsafe-*disable fromeslint.config.jsFiles
eslint.config.jssrc/**/*.tsfilesSource: AUDIT2 (-3 Security), AUDIT3 (noted), AUDIT4 (-1 Clean Code)