fix(lint): remove import source check from is_global_react_import()#9023
fix(lint): remove import source check from is_global_react_import()#9023
Conversation
🦋 Changeset detectedLatest commit: 0a70067 The changes in this PR will be included in the next version bump. This PR includes changesets to release 13 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
WalkthroughThis change relaxes import-source validation in Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches🧪 Generate unit tests (beta)
No actionable comments were generated in the recent review. 🎉 Tip Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In @.changeset/funny-phones-read.md:
- Line 5: Replace the clunky sentence about jsxRuntime and import behavior with
a cleaner rewording: change the line that starts "When `javascript.jsxRuntime`
is set to `reactClassic`, `noUnusedImports` and `useImportType` rules now allows
..." to something like "When `javascript.jsxRuntime` is set to `reactClassic`,
the `noUnusedImports` and `useImportType` rules now allow importing the `React`
identifier from packages other than `react`, aligning the behavior with `tsc`
(`--jsx=react`), which also permits importing `React` from any package." Ensure
correct plural verb "allow" and remove "either"/"will" awkwardness so the
sentence reads fluently.
Merging this PR will not alter performance
Comparing Footnotes
|
Summary
Fixes #9020
Removed checking that the import source is
reactto align the behaviour with tsc, whenjsxRuntimeis set toreactClassic(equivalent tojsx: reactin tsconfig).Test Plan
Modified some snapshot tests.
Docs
N/A