这是indexloc提供的服务,不要输入任何密码
Skip to content

fix: exports for eslint-config-turbo #9978

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 11 commits into from
Feb 14, 2025
Merged

fix: exports for eslint-config-turbo #9978

merged 11 commits into from
Feb 14, 2025

Conversation

anthonyshew
Copy link
Contributor

@anthonyshew anthonyshew commented Feb 14, 2025

Description

Mis-mapped the exports conditions in package.json. 🤦

@anthonyshew anthonyshew requested a review from a team as a code owner February 14, 2025 20:40
@turbo-orchestrator turbo-orchestrator bot added the pkg: turbo-eslint eslint-config-turbo and eslint-plugin-turbo label Feb 14, 2025
Copy link

vercel bot commented Feb 14, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
examples-basic-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 14, 2025 10:01pm
examples-designsystem-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 14, 2025 10:01pm
examples-gatsby-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 14, 2025 10:01pm
examples-kitchensink-blog ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 14, 2025 10:01pm
examples-native-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 14, 2025 10:01pm
examples-nonmonorepo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 14, 2025 10:01pm
examples-svelte-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 14, 2025 10:01pm
examples-tailwind-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 14, 2025 10:01pm
examples-vite-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 14, 2025 10:01pm

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry if this is the wrong spot for this, but it helped resolve an issue. When I upgraded from turbo@2.4.2 to 2.4.4 my eslint config broke while following the listed docs for legacy usage.

I updated to use this files extends and my eslint config was resolved.

Old:

extends: ["turbo"]

Resulted in:

eslint-config-turbo is invalid:
  - Unexpected top-level property "default".

Should the docs be updated to suggest using this instead?

New:

extends: ["plugin:turbo/recommended"]

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry for tagging @anthonyshew, because this is important for people that not using eslint flat config

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No worries. Thanks for the tag. Will fix.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here's the fix: #10105

Sorry about that!

trunk-io bot pushed a commit to arcjet/arcjet-js that referenced this pull request Mar 4, 2025
This includes the turbo plugin correctly following [this comment](vercel/turborepo#9978 (comment)) from a user experiencing the same issue we encountered in #3337
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: turbo-eslint eslint-config-turbo and eslint-plugin-turbo
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants