Skip to content

chore: enforce noNamespaceImport with targeted exceptions#1047

Merged
fi3ework merged 1 commit intomainfrom
chore/ban-namespace-imports
Mar 12, 2026
Merged

chore: enforce noNamespaceImport with targeted exceptions#1047
fi3ework merged 1 commit intomainfrom
chore/ban-namespace-imports

Conversation

@fi3ework
Copy link
Copy Markdown
Member

@fi3ework fi3ework commented Mar 12, 2026

Summary

human input:

LLM sometimes intent to write namespace import syntax, adding a lint to maintain consistent code style.


  • enable Biome performance/noNamespaceImport and rewrite safe namespace imports across core, browser, browser-ui, browser-react, vscode, and website code
  • keep mock-sensitive e2e/mock/** cases under a directory override and use inline suppressions for intentional namespace imports such as jest-dom setup, spyOn, WASM modules, and the @rsbuild/core compatibility re-export
  • update the VS Code test mock shape to support default vscode imports and verify the workspace lint, typecheck, build, test, examples, e2e, and VS Code suites still pass

@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying rstest with  Cloudflare Pages  Cloudflare Pages

Latest commit: 3bd1e6c
Status: ✅  Deploy successful!
Preview URL: https://4bf4a93f.rstest.pages.dev
Branch Preview URL: https://chore-ban-namespace-imports.rstest.pages.dev

View logs

@fi3ework fi3ework requested a review from 9aoy March 12, 2026 05:54
@fi3ework fi3ework merged commit 01ff962 into main Mar 12, 2026
12 checks passed
@fi3ework fi3ework deleted the chore/ban-namespace-imports branch March 12, 2026 06:44
@9aoy 9aoy mentioned this pull request Mar 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants