no-inline-imports
CommunityKeep imports clean, top-of-file only.
Software Engineering#typescript#code review#linting#dependency management#javascript#imports#module structure
Authorpaulbrittain
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Prevents messy, hard-to-review code by ensuring all module imports stay at the top of the file instead of being scattered inside function bodies or type definitions.
Core Features & Use Cases
- Enforces Top-of-File Imports: Requires
import/requirestatements to live only in the module header for consistency and readability. - Flags Inline Imports in Logic and Types: Detects inline
require(...)/import(...)within function bodies, type annotations, and interface fields. - Preserves Legitimate Exceptions: Allows inline imports only for documented circular-dependency reasons or intentional lazy-loading with measurable intent.
Quick Start
Use no-inline-imports when reviewing a TypeScript/JavaScript file that introduces require(...) or import(...) inside a function, type, or interface field.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: no-inline-imports Download link: https://github.com/paulbrittain/claude-team-kit/archive/main.zip#no-inline-imports Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.