Tailwind ESLint Fix
Overview
Use this skill after frontend implementation or refactoring to resolve better-tailwindcss/* lint issues quickly and consistently.
It runs ESLint auto-fix on the target scope, then checks whether any better-tailwindcss warnings/errors still remain.
Workflow
- Choose scope:
- Default scope: all frontend source files (
src/**/*.{ts,tsx,js,jsx}). - Preferred scope: only changed files/directories to keep edits focused.
- Run the fixer script:
~/.codex/skills/tailwind-eslint-fix/scripts/fix_better_tailwind.sh \
--project-dir <frontend-package-dir> \
--pm <auto|pnpm|yarn|npm> \
--target "<eslint-glob-or-file-list>"
- Review results:
- If script reports no remaining
better-tailwindcssissues: done. - If issues remain: fix manually, then rerun script until clean.
- Keep scope strict:
- Do not treat unrelated eslint rules as part of this skill's success criteria.
- This skill targets only
better-tailwindcsswarnings/errors.
Quick Commands
Fix whole frontend package:
~/.codex/skills/tailwind-eslint-fix/scripts/fix_better_tailwind.sh \
--project-dir packages/eKoEN \
--pm auto
Force yarn:
~/.codex/skills/tailwind-eslint-fix/scripts/fix_better_tailwind.sh \
--project-dir packages/eKoEN \
--pm yarn
Force npm:
~/.codex/skills/tailwind-eslint-fix/scripts/fix_better_tailwind.sh \
--project-dir packages/eKoEN \
--pm npm
Fix specific directory:
~/.codex/skills/tailwind-eslint-fix/scripts/fix_better_tailwind.sh \
--project-dir packages/eKoEN \
--pm auto \
--target "src/RefactorComponents/**/*.{ts,tsx}"
Fix specific files:
~/.codex/skills/tailwind-eslint-fix/scripts/fix_better_tailwind.sh \
--project-dir packages/eKoEN \
--pm auto \
--target "src/components/LanguageSelector.tsx src/RefactorComponents/Selects/SelectButton/SingleValue.tsx"
Notes
- This skill supports
pnpm,yarn, andnpm. - Use
--pm autoto detect by lockfile (pnpm-lock.yaml,yarn.lock,package-lock.json) or available command.
Resources
scripts/
fix_better_tailwind.sh: runs eslint--fixon a target scope and verifies remainingbetter-tailwindcssfindings.