eslint-plugin-tailwindcss icon indicating copy to clipboard operation
eslint-plugin-tailwindcss copied to clipboard

[Feature request] Option to enable/disable features from `migration-from-tailwind-2` rule

Open lachieh opened this issue 2 years ago • 0 comments

Is your feature request related to a problem? Please describe. At the moment, it seems like the different features for migration-from-tailwind-2 are all or nothing. This is problematic when I want to actually use .overflow-clip { overflow: clip } but it keeps getting transformed incorrectly into text-clip due to auto-fix. I would rather not disable the rule and/or auto-fix for all the other benefits it has.

Since this change is not just a syntactic one, but it actually changes the outcome of the css, I wouldn't really consider it auto-fixable in the first place

Describe the solution you'd like It would be ideal if the rule options allowed for enabling/disabling specific migration features. For example, I want to keep/auto-fix the opacity feature but not the overflow-clip/text-clip one. Alternatively, it would be an idea to split the rule into multiple based on the feature so that each one can be turned on/fixed independently, though this is a little verbose in definition.

lachieh avatar Mar 16 '23 15:03 lachieh