Fixed pre-commit lint hook for Tailwind v4 workspaces#26970
Fixed pre-commit lint hook for Tailwind v4 workspaces#26970kevinansfield wants to merge 1 commit intomainfrom
Conversation
Added apps/posts and apps/shade to scoped workspaces in lint-staged config so eslint runs from within each package directory, where eslint-plugin-tailwindcss can correctly resolve Tailwind v4 modules.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughThe 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
no issue
Added
apps/postsandapps/shadeto scoped workspaces in.lintstagedrc.cjsso eslint runs from within each package directory. This fixes the pre-commit hook failing becauseeslint-plugin-tailwindcss(viatailwind-api-utils) tries to requiretailwindcss/dist/lib/setupContextUtils.jswhich only exists in Tailwind v3.Renamed the constant from
FLAT_CONFIG_WORKSPACEStoSCOPED_WORKSPACESsince it now includes non-flat-config packages too.