You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore: run eslint over test files and fix surfaced errors (#374)
* chore: run eslint over test files and fix surfaced errors
The `lint` script only scanned `src/`, so the jest config block for
`tests/**` in eslint.config.mjs never actually ran. Extend the script to
cover `tests/` and fix the 3 errors it surfaces:
- domHook.js: setter used `return` for control flow, but a setter's return
value is silently discarded (no-setter-return) -> use if/else
- scroll.test.js: oversized deltaY literal lost precision
(no-loss-of-precision) -> 1e20, same magnitude
- drop dead `eslint-disable no-param-reassign` directives in domHook.js and
useScrollTo.tsx (the rule isn't enabled)
* update
0 commit comments