-
Notifications
You must be signed in to change notification settings - Fork 10.4k
fix: update eslint-config-next to resolve pre-commit hook failures #22915
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
base: main
Are you sure you want to change the base?
Conversation
- Align all eslint-config-next versions to ^15.4.5 to match Next.js ^15.3.0 - Add eslint-config-next and eslint-plugin-unused-imports to root dependencies - Fix workspace dependency hoisting issues causing ESLint config resolution failures - Ensure pre-commit hooks can properly resolve 'next' ESLint configuration Co-Authored-By: zomars@cal.com <zomars@me.com>
Co-Authored-By: zomars@cal.com <zomars@me.com>
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing Touches🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
package.json
Outdated
@@ -123,6 +123,8 @@ | |||
"city-timezones": "^1.2.1", | |||
"date-fns-tz": "^3.2.0", | |||
"eslint": "^8.34.0", | |||
"eslint-config-next": "^15.4.5", | |||
"eslint-plugin-unused-imports": "latest", |
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.
DevinAI, avoid using latest
… latest Addresses GitHub comment feedback to avoid using 'latest' version specifier Co-Authored-By: zomars@cal.com <zomars@me.com>
The latest updates on your projects. Learn more about Vercel for Git ↗︎ |
…ascade - Revert massive yarn.lock changes and use targeted approach - Use eslint-config-next ^14.0.4 instead of ^15.4.5 to avoid cascading - Add yarn resolution to ensure consistent version across monorepo - Add required ESLint plugins to root dependencies for proper hoisting - Resolves ESLint configuration error blocking pre-commit hooks Co-Authored-By: zomars@cal.com <zomars@me.com>
This PR is being marked as stale due to inactivity. |
fix: update eslint-config-next to resolve pre-commit hook failures
Summary
This PR fixes the ESLint configuration error
"ESLint couldn't find the config 'next'"
that was blocking commits due to pre-commit hooks. The issue was caused by multiple conflicting versions ofeslint-config-next
across the monorepo preventing proper workspace dependency hoisting.Changes made:
eslint-config-next
versions to^15.4.5
across 4 packages to align with Next.js^15.3.0
eslint-config-next@^15.4.5
andeslint-plugin-unused-imports
to rootpackage.json
dependencies to force workspace hoistingyarn.lock
with new dependency resolutionsVerification:
yarn lint:report
resolves ESLint configurations properlyReview & Testing Checklist for Human
yarn lint:report
to ensure all ESLint rules work correctly across packagesyarn build
to ensure no regressions in build processyarn type-check:ci
output with main branch to confirm type errors existed before this changeRecommended test plan:
yarn install
to get updated dependencies.ts/.tsx
file inapps/
orpackages/
yarn lint:report
to ensure no ESLint configuration errorsDiagram
Notes
eslint-config-next
(13.2.1, 14.0.4, 15.1.6) prevented Yarn from hoisting the package to rootnode_modules
, causing ESLint to fail when running from root during pre-commit hookseslint-config-next@^15.4.5
and added it to root dependencies to force hoistingSession details: