perf(noImportCycles): exclude node_modules from cycle detection#9326
perf(noImportCycles): exclude node_modules from cycle detection#9326
node_modules from cycle detection#9326Conversation
🦋 Changeset detectedLatest commit: d94f936 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 |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
WalkthroughThis pull request adds a changeset entry documenting a patch release for Biome and optimises the noImportCycles lint rule. The implementation excludes node_modules directories from cycle detection by introducing an Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Tip Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs). Comment |
Merging this PR will not alter performance
Comparing Footnotes
|
Summary
Any given project is going to have a pretty chunky
node_modules. I think it makes sense to explicitly forbid noImportCycles from going into the project's dependencies. My logic here is that is that dependencies don't import packages from user code, so it should be ok to skip evaluating for cycles once we get to a dependency.Users could get this behavior by excluding it with
!!node_modules/, but that means the scanner would never touch those files, and types wouldn't get resolved from their dependencies.Test Plan
snapshots
Docs