francoismassart / eslint-plugin-tailwindcss

ESLint plugin for Tailwind CSS usage
https://www.npmjs.com/package/eslint-plugin-tailwindcss
MIT License
1.47k stars 70 forks source link

[BUG] last-child:mb-0 doesn't raise a warning about being invalid #305

Open sbdchd opened 8 months ago

sbdchd commented 8 months ago

Describe the bug

<div className="last-child:mb-0 mb-2" />

Doesn't raise a warning about being invalid, the correct name is last:mb-0

To Reproduce

Use the following css and find no error is raised

<div className="last-child:mb-0 mb-2" />

Expected behavior Raises error

Screenshots

Environment (please complete the following information):

Additional context Add any other context about the problem here.

eslint config file or live demo By providing a link to a live demo, a demo video or a github repo fixing the issue will be easier.

kachkaev commented 8 months ago

This feature request is reflected in README.md → Upcoming rules as validate-modifiers.