ux-mind-helpers
v1.4.1
Published
Reusable scripts for UX Mind projects. Zero dependencies.
Maintainers
Readme
ux-mind-helpers
Reusable codemod scripts for UX Mind projects. Zero dependencies, Node.js 18+.
Scripts
| Script | Description |
|--------|-------------|
| fix-relative-imports | Replace ../ relative imports with path alias (~/, @/) |
| migrate-tailwind-arbitraries | Convert arbitrary Tailwind values (gap-[16px]) to predefined classes (gap-4) |
| react-namespace-imports | Flatten import * as React to named imports; alias DOM event types used generically |
| lucide-icon-suffix | Append Icon suffix to lucide-react imports (Check → CheckIcon) |
| check-no-memo-carveout | React Compiler interior-mutability lint guard (TanStack Table/Virtual, react-hook-form, MobX, zustand, react-query) |
| check-icon-button-label | Flag icon-only <Button>s missing aria-label/aria-labelledby/title (polymorphic-donut systems) |
Usage
pnpm dlx github:antonchuvirau/ux-mind-helpers <script-name> [options]Most scripts default to an interactive flow: scan, print changes, prompt [Y/n]. Pass --dry-run to preview without prompting, or --yes to auto-apply (for CI).
Tests
pnpm testLicense
MIT
