Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #184
Note: All of these rules can also be fixed automatically.
This seems a bit tricky right now.
prettier-plugin-tailwindcss
used to have this feature but it was quickly reverted because it was trimming more than it should have.See tailwindlabs/tailwindcss#7560
In lieu of other options, we would have to write our own rule. I found this (deprecated) plugin which maybe could be used for reference:
https://github.com/liferay/eslint-config-liferay/blob/master/plugins/eslint-plugin-liferay/lib/rules/trim-class-names.js
I'll make a new issue for that.
As we add more rules, I would like to stick to the convention that "stylistic" rules (i.e. those that do not catch bad runtime behavior) are marked as warnings instead of errors. We should still strive to have zero warnings in total and our CI usually enforces this; however, warnings are highlighted differently in IDEs and it is helpful to be able to differentiate them from "actual" errors. WDYT?