Clean up and optimize code quality
Optimizes code quality by cleaning imports, sorting properties, removing debug code, and fixing linting errors.
/plugin marketplace add lenneTech/claude-code/plugin install lt-dev@lenne-techbackend/| Command | Purpose |
|---|---|
/lt-dev:backend:sec-review | Security review of code changes |
/lt-dev:backend:test-generate | Generate tests for changes |
Recommended workflow: test-generate → sec-review → code-cleanup
Perform a complete code cleanup:
For all modified TypeScript files:
For all Model/Input/Object files:
Check all descriptions:
Search for duplicated code:
Remove development code:
Check code formatting:
Run automatic checks:
# TypeScript Compilation
npm run build
# Linting
npm run lint
# Optional: Auto-Fix
npm run lint:fix
Fix all errors and warnings!
Only when everything is : Cleanup completed!