imports-exports
CommunityStandardize TypeScript imports and exports.
Authorguicheffer
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill enforces consistent and maintainable import and export conventions in TypeScript projects, improving code readability and reducing errors.
Core Features & Use Cases
- ESLint-Enforced Ordering: Automatically organizes imports into predefined groups (React, external, internal, etc.) with blank lines between them.
- Named Exports Only: Enforces the use of named exports for better IDE support and tree-shaking.
- Path Aliases: Promotes the use of path aliases (e.g.,
@libs/,@modules/) over relative paths for cleaner, more stable imports. - Type-Only Imports: Encourages
import typefor better bundle size optimization. - Barrel Exports: Guides the creation of
index.tsfiles to simplify module APIs. - Use Case: When writing new TypeScript files or reviewing code, ensure all imports are correctly ordered, named exports are used, and path aliases are leveraged for internal modules.
Quick Start
Run yarn lint --fix to automatically format your imports and exports according to the defined standards.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 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: imports-exports Download link: https://github.com/guicheffer/devorch-cli/archive/main.zip#imports-exports 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 223,000+ vetted skills library on demand.