francoismassart / eslint-plugin-tailwindcss

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

[BUG] enforces-shorthand misbehaves when you have more than one w- or h- of same unit #349

Open TheBinaryGuy opened 3 weeks ago

TheBinaryGuy commented 3 weeks ago

Describe the bug enforces-shorthand misbehaves when you have more than one w- or h- of same unit.

To Reproduce Steps to reproduce the behavior:

  1. Add 2 classes like this: w-full w-full
  2. The eslint complaints and suggests that they should be merged with size-full

Screenshots

image

Environment (please complete the following information):

kachkaev commented 3 weeks ago

Related issue: https://github.com/francoismassart/eslint-plugin-tailwindcss/issues/315