-
-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add no-multiple-whitespace rule #370
base: master
Are you sure you want to change the base?
Conversation
Hello @Ericlm, thanks for this patch. It seems working; any plans to release it? |
Any updates on this? would be nice to have 😄 |
@francoismassart What do you think of this rule? |
This rule is needed. can't wait :) |
very needed rule thanks for your efforts @Ericlm |
Hi, e.g. ctl(`
sm:w-6
w-8
container
w-12
flex
lg:w-4
`); Maybe you should detect if the current classlist contains new lines or carriages return and handle theses cases. |
I handled the case by returning if the classNames contains any line break/carriage return. It won't remove spaces around classes in this syntax, as it may contains leading whitespaces. At best, it could remove trailing whitespaces I think. 🤔 |
Whitespace automatic removal
Description
This PR implements a new rule called
no-multiple-whitespace
which removes unnecessary whitespaces between classes.Closes #263
Type of change
How Has This Been Tested?
I added a corresponding
no-multiple-whitespace
test file.Test Configuration:
Checklist: