Commit f12755c
chore: replace blanket no-unsafe-* ESLint disables with targeted suppressions (#60)
## Summary
- Remove 5 blanket `@typescript-eslint/no-unsafe-*` rule disables from
`eslint.config.js`
- Fix 6 of 9 violations structurally via better type annotations
- Add 3 targeted per-line suppressions for intentional CSP detection
code
### Structural fixes
- `broadcast/BroadcastManager.ts`: type `event.data` as `unknown` (type
guard validates)
- `request/RequestValidation.ts`: add `readonly string[]` annotation to
prevent `Array.isArray` `any[]` inference
### Targeted suppressions (DOM/CSP interop)
- `csp/CspUtils.ts`: dynamic `window` property access + `Function`
constructor call for CSP detection
Closes #3
## Test plan
- [x] ESLint passes with 0 errors/warnings
- [x] TypeScript strict mode passes
- [x] All 4155 tests pass with 100% line coverage
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent b8e1a6c commit f12755c
4 files changed
Lines changed: 7 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | 110 | | |
118 | 111 | | |
119 | 112 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
210 | | - | |
| 210 | + | |
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
182 | | - | |
| 182 | + | |
183 | 183 | | |
184 | | - | |
| 184 | + | |
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
| 208 | + | |
208 | 209 | | |
209 | 210 | | |
210 | 211 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
252 | | - | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
253 | 255 | | |
254 | 256 | | |
255 | 257 | | |
| |||
0 commit comments