Commit 7192a72
committed
chore(lint): prefix unused args with _ and promote no-unused-vars to error
Cleanup flagged by the CI review, then harden the gate so unused
identifiers fail lint instead of merely warning:
- background.js: the two consent handlers (handleGetPublicKey,
handleSignEvent) receive `sender` but never use it -> `_sender`.
- nip98-interceptor.js: the XHR setRequestHeader override only inspects
the header `name` (and forwards `arguments`); the `value` arg is
unused -> `_value`.
- test/storage.test.js: drop the unused `before`/`after` imports (the
suite uses inline clearStorage() calls).
- .eslintrc.json: no-unused-vars "warn" -> "error", keeping the
^_ ignore patterns for args/vars/caught-errors.
Lint is 0 errors / 0 warnings; build and the 133-test suite stay green.
Co-Authored-By: jjohare <github@thedreamlab.uk>1 parent 5d9af02 commit 7192a72
4 files changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
| 154 | + | |
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
230 | | - | |
| 230 | + | |
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
0 commit comments