Chore/lint cleanup - #189
Merged
elizabetheonoja-art merged 2 commits intoAug 22, 2026
Merged
Conversation
elizabetheonoja-art
merged commit Aug 22, 2026
105f46c
into
Utility-Protocol:main
13 of 14 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix ESLint and TypeScript Violations
Resolves #184
Summary
This PR cleans up the frontend codebase to resolve all ESLint and TypeScript errors, strictly adhering to type safety without introducing
anyor blindly silencing errors. The repository now passes all linting and type-checking out-of-the-box.Before → After
"strict": trueis active intsconfig.json.Changes & Fixes
eslint-plugin-react-hooksdefinition toeslint.config.mjswhich was causing thereact-hooks/exhaustive-depsrule to crash the linter.mockContainerReffromtests/hooks/useVirtualList.test.ts.// eslint-disable-next-line react-hooks/exhaustive-depsfromsrc/hooks/useVirtualList.tsthat was flagged as unused by ESLint once the config was fixed."typecheck": "tsc --noEmit"topackage.jsonto make CI verification easier.Exceptions / Review Notes
tsEslint.configs.recommendedconfig rather than upgrading torecommendedTypeChecked. Attempting the latter surfaced 244 test-related unsafe assignment errors which is well beyond the scope of a standard lint cleanup for this codebase.VirtualList,setupDev,preCommit), but they were verified as unrelated to the linting changes (zero application logic was modified). These should be tracked down in a follow-up test hygiene PR.Commits
fix(lint): resolve no-unused-vars and exhaustive-deps configchore(config): enable strict mode and tidy eslint config