Closed RutamBhagat closed 1 month ago
This PR adds ESLint with Tailwind CSS support for automatically sorting tailwind classes.
eslint-plugin-tailwindcss
package.json
pnpm install
pnpm run lint
pnpm run lint:fix
pnpm dev
pnpm build
@RutamBhagat Let's resolve conflicts 😸
@RutamBhagat
Can you take a look actions that are failing?
created a new PR for this #763
Add ESLint plugin with Tailwind CSS support and unify project configuration
Priority*
Purpose of the PR*
This PR adds ESLint with Tailwind CSS support for automatically sorting tailwind classes.
Changes*
eslint-plugin-tailwindcss
as a dev dependency in the rootpackage.json
.package.json
with new lint scripts for the entire project.How to check the feature
pnpm install
to update dependencies.pnpm run lint
to check if ESLint runs successfully across the entire project.pnpm run lint
again to verify that the Tailwind CSS linting catches the error.pnpm run lint:fix
to check if auto-fixable issues are corrected.pnpm dev
andpnpm build
to ensure the new setup doesn't break existing scripts.Reference