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

Fix false negatives for isStandardSyntaxDeclaration #3933

Merged
merged 1 commit into from Apr 4, 2019
Merged

Conversation

gucong3000
Copy link
Member

Which issue, if any, is this issue related to?

Closes #3930

Is there anything in the PR that needs further explanation?

No, it's self explanatory.

@gucong3000 gucong3000 force-pushed the issues_3930 branch 5 times, most recently from 9ff574b to 43f695c Compare January 30, 2019 17:07
Copy link
Member

@hudochenkov hudochenkov left a comment

Choose a reason for hiding this comment

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

Looks good! Thank you!

});
it("url with less interpolation at the end without quotes", () => {
expect(isStandardSyntaxUrl("some/@{less-variable}")).toBeTruthy();
expect(isStandardSyntaxUrl("some/@{less-variable}")).toBeFalsy();
Copy link
Member

Choose a reason for hiding this comment

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

Looks like a regression

Copy link
Member

Choose a reason for hiding this comment

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

Actually, it's a bug fix. Interpolation makes URL non-standard. There are tests for Sass interpolation and they all negative.

Copy link
Member

Choose a reason for hiding this comment

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

👍

@jeddy3 jeddy3 merged commit 4ec7170 into master Apr 4, 2019
@jeddy3 jeddy3 deleted the issues_3930 branch April 4, 2019 08:27
@jeddy3
Copy link
Member

jeddy3 commented Apr 4, 2019

  • Fixed: false negatives in declaration-based rules for CSS-in-JS (#3933).

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

Successfully merging this pull request may close these issues.

Fix false negatives for some rules when using CSS-in-JS parser
4 participants