fix: eslint no-restricted-imports app-store rule#23845
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
WalkthroughThe .eslintrc.js configuration was updated for the packages/app-store override of the no-restricted-imports rule. The allowTypeImports: false setting was removed from the outer rule options and added inside the single object within patterns that restricts @calcom/trpc/* and @trpc/* imports, alongside the existing group and message fields. No other changes were made to the ESLint configuration. Possibly related PRs
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ 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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
.eslintrc.js (1)
28-35: Block the bare '@calcom/trpc' root import in .eslintrc.jsVerified: no bare '@calcom/trpc' imports currently exist in packages/app-store; still add this lint rule to prevent regressions.
"no-restricted-imports": [ "error", { + paths: [ + { + name: "@calcom/trpc", + message: + "tRPC imports are blocked in packages/app-store. Move UI to apps/web/components/apps or introduce an API boundary.", + allowTypeImports: false, + }, + ], patterns: [ { group: ["@calcom/trpc/*", "@trpc/*"], message: "tRPC imports are blocked in packages/app-store. Move UI to apps/web/components/apps or introduce an API boundary.", allowTypeImports: false, }, ], }, ],
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Disabled knowledge base sources:
- Linear integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
📒 Files selected for processing (1)
.eslintrc.js(1 hunks)
⏰ Context from checks skipped due to timeout of 180000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: Install dependencies / Yarn install & cache
🔇 Additional comments (1)
.eslintrc.js (1)
32-33: Confirm allowTypeImports belongs to @typescript-eslint and verify package versionsFile: .eslintrc.js lines 32–33 — allowTypeImports is not a core ESLint top‑level option; it's provided by @typescript-eslint (no-restricted-imports) and is set per paths/patterns entry (not a global rule option). The verification script found no package.json to confirm versions — verify installed ESLint and @typescript-eslint versions and ensure the rule is the plugin variant (@typescript-eslint/no-restricted-imports). allowTypeImports defaults to false (redundant).
E2E results are ready! |
What does this PR do?
Visual Demo (For contributors especially)
A visual demonstration is strongly recommended, for both the original and new change (video / image - any one).
Video Demo (if applicable):
Image Demo (if applicable):
Mandatory Tasks (DO NOT REMOVE)
How should this be tested?
Checklist