Repository navigation
frontend: drop unused eslint-plugin-react-refres dev-dep - #4647
thisconnect wants to merge 4 commits into
Conversation
Replace eslint-plugin-react and eslint-plugin-react-hooks with @eslint-react/eslint-plugin and move JSX formatting rules to @stylistic/eslint-plugin. Update rule references and inline suppressions, and address new recommended lint rules by removing a redundant initial assignment and preserving caught errors when throwing new errors.
Use the Vitest-specific jest-dom entry point in the shared test setup and explicitly include its types in the TypeScript configuration. Remove redundant jest-dom imports from individual test files. Regenerate npm licenses.
| "name": "@jridgewell/sourcemap-codec", | ||
| "versions": [ | ||
| "1.5.5" | ||
| "1.6.0" |
There was a problem hiding this comment.
reason this surfaces in our prod deps is react-select
% npm list @jridgewell/sourcemap-codec
bitboxapp@0.0.0 /app/frontends/web
├─┬ react-select@5.10.2
│ └─┬ @emotion/react@11.11.4
│ └─┬ @emotion/babel-plugin@11.11.0
│ └─┬ @babel/helper-module-imports@7.29.7
│ └─┬ @babel/traverse@7.29.10
│ └─┬ @babel/generator@7.29.8
│ └─┬ @jridgewell/gen-mapping@0.3.13
│ └── @jridgewell/sourcemap-codec@1.6.0 deduped
└─┬ vitest@5.1.1
├─┬ @vitest/mocker@5.1.1
│ └─┬ @jridgewell/trace-mapping@0.3.31
│ └── @jridgewell/sourcemap-codec@1.6.0 deduped
└─┬ magic-string@1.4.5
└── @jridgewell/sourcemap-codec@1.6.0
| ], | ||
| "license": "MIT", | ||
| "repository": "https://github.com/colinhacks/zod", | ||
| "licenseText": "MIT License\n\nCopyright (c) 2025 Colin McDonnell\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n" |
There was a problem hiding this comment.
And this module was coming from @walletconnect/utils
% npm list zod
bitboxapp@0.0.0 /app/frontends/web
├─┬ @walletconnect/utils@2.21.7
│ └─┬ viem@2.31.0 overridden
│ └─┬ abitype@1.0.8
│ └── zod@3.25.76 deduped
└─┬ eslint-plugin-react-hooks@7.1.1
├─┬ zod-validation-error@4.0.2
│ └── zod@3.25.76 deduped
└── zod@3.25.76
| "@types/react-dom": "^18.3.7", | ||
| "@vitejs/plugin-react": "^6.1.2", | ||
| "eslint": "^9.39.5", | ||
| "eslint-plugin-react": "^7.37.5", |
There was a problem hiding this comment.
found that this is not maintained anymore and others migrate to @eslint-react/eslint-plugin
TypeScript 6.0 deprecates the legacy Node module resolution strategy and baseUrl. Switch to bundler resolution to align with Vite and adjust the @/ alias to preserve existing import paths without relying on baseUrl. Import the flag-icons stylesheet explicitly to satisfy the stricter side-effect import checks in TypeScript 6.0.
|
@coderabbitai review |
Action performed
|
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Before asking for reviews, here is a check list of the most common things you might need to consider: