This repository has been archived by the owner on Feb 9, 2023. It is now read-only.
Remove hardcoded transform from float to cssFloat #172
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 stylelint/stylelint#4490
Please let me know if I should open an issue in this repository, it's marked as an upstream issue there but I could not find a corresponding ticket.
The offending code has been around since the second commit and it's not explained, so I can only assume that it's to attempt to catch uses of the reserved Javascript keyword "float" and automatically transform them to "cssFloat", however given that it's currently causing issues that can break code on
--fix
it should be removed.Misuse of the keyword can be caught by Javascript code analysis tools.
The test case this removes appears to be a roundabout way of sort of testing the following transformation (by removing the raw value for "cssFloat"). This case has been removed since it's testing for behaviour that, according to this issue, we don't want: