Sign in
Explore
Prompts · RulesEveryday codingReviewed

no-inline-imports

Keeps imports at the top of the module, with no inline imports unless there is a specific reason.

Kind
Rules
Works with
Cursor
Source
cursor/plugins @ 9580c23696ac
Path
cursor-team-kit/rules/no-inline-imports.mdc
License
MIT
Jobs
Guardrails
InstallCopy it from the source repository, or sign in and let the assistant adapt it for your project.
# No inline imports

Always place imports at the top of the module. Avoid inline imports in function bodies, type annotations, or interface fields unless there is a strict circular-dependency reason and it is documented.