-
Notifications
You must be signed in to change notification settings - Fork 5.1k
config: update eslint 8.57.1, pnpm 10.11.1 #15609
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
latest version with next.js support
✅ Deploy Preview for ethereumorg ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
unused-imports/no-unused-imports-ts -> unused-imports/no-unused-imports as of eslint-plugin-unused-imports v3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR updates development tooling versions and refactors lint/config settings for consistency.
- Bumps
eslint
to 8.57.1 andpnpm
to 10.11.1, plus adjusts related package versions. - Enables NVM in builds via
.mise.toml
and updates.nvmrc
node version. - Refactors code to use blank placeholders in destructuring and cleans up ESLint config.
Reviewed Changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
src/scripts/markdownChecker.ts | Commented-out unused constant; removed ESLint disable. |
src/lib/utils/wallets.ts | Replaced [_ , value] with [, value] for destructuring. |
src/hooks/useClipboard.ts | Replaced [_, copy] with [, copy] placeholder. |
src/components/ui/chart.tsx | Replaced [_, config] with [, config] placeholder. |
src/components/Quiz/QuizWidget/index.tsx | Replaced [_, updateUserStats] with [, updateUserStats] . |
src/components/FindWalletProductTable/hooks/useWalletFilters.tsx | Removed unused parameter in arrow func. |
package.json | Version bumps for ESLint plugins, ESLint, and pnpm in packageManager . |
.nvmrc | Updated Node version to 20.19.2. |
.mise.toml | Added NVM integration settings. |
.eslintrc.json | Refactored top-level extends, added parserOptions, and reorganized rules/overrides. |
// ! Current usage of this const is commented out | ||
// eslint-disable-next-line unused-imports/no-unused-vars | ||
const CASE_SENSITIVE_SPELLING_MISTAKES = ["Thereum", "Metamask", "Github"] | ||
// const CASE_SENSITIVE_SPELLING_MISTAKES = ["Thereum", "Metamask", "Github"] | ||
// Ideas: | ||
// Regex for explicit lang path (e.g. /en/) && for glossary links (trailing slash breaks links e.g. /glossary/#pos/ doesn't work) | ||
// We should have case sensitive spelling mistakes && check they are not in links. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider removing this commented-out constant (and its unused ESLint disable comment) entirely to keep the codebase clean, or reintroduce its usage if still intended.
Copilot uses AI. Check for mistakes.
Description
Originally included
node
bump to 22, but ran into memory issues related to static site generation that needs investigation first. (Ignore branch name 😄)