Skip to content

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

Merged
merged 6 commits into from
Jun 10, 2025
Merged

config: update eslint 8.57.1, pnpm 10.11.1 #15609

merged 6 commits into from
Jun 10, 2025

Conversation

wackerow
Copy link
Member

@wackerow wackerow commented Jun 4, 2025

Description

  • config: bump corepack pnpm version to 10.11.1
  • enable nvm at build with mise toml
  • build: migrate to eslint ^8.57.1 (not latest, but latest supported by Next.js); refactor config

Originally included node bump to 22, but ran into memory issues related to static site generation that needs investigation first. (Ignore branch name 😄)

Copy link

netlify bot commented Jun 4, 2025

Deploy Preview for ethereumorg ready!

Name Link
🔨 Latest commit 976bebc
🔍 Latest deploy log https://app.netlify.com/projects/ethereumorg/deploys/6841bad5640be80008922bce
😎 Deploy Preview https://deploy-preview-15609--ethereumorg.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
7 paths audited
Performance: 44 (🔴 down 6 from production)
Accessibility: 95 (🟢 up 1 from production)
Best Practices: 89 (🔴 down 9 from production)
SEO: 99 (no change from production)
PWA: 59 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions bot added config ⚙️ Changes to configuration files dependencies 📦 Changes related to project dependencies tooling 🔧 Changes related to tooling of the project labels Jun 4, 2025
@wackerow wackerow changed the title config: node 22, eslint 8.57.1 config: node 22.16.0, eslint 8.57.1 Jun 4, 2025
wackerow added 3 commits June 5, 2025 08:40
unused-imports/no-unused-imports-ts -> unused-imports/no-unused-imports as of eslint-plugin-unused-imports v3
@wackerow wackerow changed the title config: node 22.16.0, eslint 8.57.1 config: update eslint 8.57.1, pnpm 10.11.1 Jun 5, 2025
@wackerow wackerow requested a review from Copilot June 6, 2025 13:52
@wackerow wackerow marked this pull request as ready for review June 6, 2025 13:52
Copy link

@Copilot Copilot AI left a 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 and pnpm 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.

Comment on lines 70 to 74
// ! 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.
Copy link
Preview

Copilot AI Jun 6, 2025

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.

@corwintines corwintines self-assigned this Jun 10, 2025
@corwintines corwintines merged commit 06dc866 into dev Jun 10, 2025
11 checks passed
@corwintines corwintines deleted the node-22 branch June 10, 2025 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
config ⚙️ Changes to configuration files dependencies 📦 Changes related to project dependencies tooling 🔧 Changes related to tooling of the project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants