Skip to content
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

Browser prefix is operator #458

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

donotknow
Copy link

Which issue, if any, does this resolve?
#433

Is there anything in this PR that needs extra explaining or should something specific be focused on?
This is intended to work with shellscape/postcss-values-parser#45, so I’d expect any CI to fail on this PR, it is intended as more of an explanation of my shellscape/postcss-values-parser#38 (comment) rather than being ready to be merged.

If we decide this is the route to go down, I can update this PR after the fix for postcss-values-parser is published and update to the new version.

Update lesshint to work with shellscape/postcss-values-parser#45, which
will return a number for +5 instead of an operator and a number.

So, check both operators and numbers, ignore any numbers that don’t
start with an operator (+-*/), allow the node to be the last node (no
nextElement), and use a whitespace regex to check the none spacing
instead of the exact value.
Copy link
Member

@jwilsson jwilsson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, pending a solution in shellscape/postcss-values-parser#45.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants