Repository navigation
chore: add flat ESLint config with typescript-eslint, react-hooks, an… - #1491
Merged
greatest0fallt1me merged 2 commits intoNov 26, 2026
Merged
Conversation
|
@p70436464-prog Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
pr-malware-guard: needs security reviewThese files need a maintainer's review before merge (the check passes with a warning):
|
Contributor
|
Thanks @p70436464-prog! Merged. 🎉 |
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.
Closes #1375
Summary
Adds a flat ESLint v9 configuration (
eslint.config.js) with@eslint/js,typescript-eslint,eslint-plugin-react-hooks, andeslint-plugin-jsx-a11y, addslintandlint:fixscripts topackage.json, fixes all production lint errors, audits existingeslint-disablecomments, and documents linting inCONTRIBUTING.md.Changes
eslint,@eslint/js,typescript-eslint,eslint-plugin-react-hooks,eslint-plugin-jsx-a11y, andglobalsasdevDependencies, plusnpm run lintandnpm run lint:fixscripts.eslint.config.js):dist,coverage,e2e, and*.config.*.*.test.{ts,tsx}andsetupTests.ts.react-hooks/rules-of-hooks(error) andreact-hooks/exhaustive-deps(warn); disables React 19 Compiler-only rules bundled ineslint-plugin-react-hooksv7 since this project runs React 18 without React Compiler.jsx-a11yrecommended rules aterrorfor all rules that currently pass, and tracks the 11 rules with existing violations atwarn.@typescript-eslint/no-explicit-anyand@typescript-eslint/no-unused-varsaterrorin production code andwarnin test files.react-hooks/rules-of-hooks) insrc/components/ApiCard.tsxandsrc/components/EmptyState.tsx.no-unsafe-finallyinsrc/hooks/useVaultBalances.tsand@typescript-eslint/no-unused-expressionsinsrc/state/pinnedApis.ts.no-useless-escape,prefer-const, and unused variables/catch bindings across production source files.eslint-disable-next-line no-control-regexinsrc/components/RequireAuth.tsx.eslint-disableaudit:src/pages/MyApis.tsx: removed unusedeslint-disable-next-line react-hooks/exhaustive-deps.src/hooks/useLocalStorage.ts: kept botheslint-disable-next-line react-hooks/exhaustive-depswith one-line justifications.src/components/ParamsBuilder.tsx: kept existing justifiedeslint-disable-next-line react-hooks/exhaustive-deps.Lintingsection and PR checklist item toCONTRIBUTING.md.Verification
npm run lintexits0(0 errors, 122 warnings across legacyjsx-a11y,react-hooks/exhaustive-deps, and test-onlyno-explicit-any/no-unused-vars).jsx-a11y/alt-textviolation (<img src="x.png" />) fails with exit code1.RequireAuth.test.tsx,EmptyState.test.tsx— 75/75 passed).Proposed CI Step
Per the issue notes,
.github/workflows/ci.ymlis untouched in this PR. Suggested addition afternpm ci: