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

Improve message of function-url-quotes rule #5488

Merged
merged 1 commit into from Aug 20, 2021

Conversation

ybiquitous
Copy link
Member

@ybiquitous ybiquitous commented Aug 20, 2021

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

Related to #5487

Is there anything in the PR that needs further explanation?

This change is derived from the discussion:
https://github.com/stylelint/stylelint/pull/5487/files#r692264717

A new message will include a problematic function name like this:

-Expected quotes
+Expected quotes around "url" function argument

Note that these messages are consistent with other *-quotes rules:

const messages = ruleMessages(ruleName, {
expected: (family) => `Expected quotes around "${family}"`,
rejected: (family) => `Unexpected quotes around "${family}"`,
});

This change is derived from the discussion:
https://github.com/stylelint/stylelint/pull/5487/files#r692264717

A new message will include a problematic function name like this:

```diff
-Expected quotes
+Expected quotes around "url" function argument
```
@ybiquitous ybiquitous marked this pull request as ready for review August 20, 2021 00:08
Copy link
Member

@jeddy3 jeddy3 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@jeddy3 jeddy3 merged commit d555890 into v14 Aug 20, 2021
@jeddy3 jeddy3 deleted the improve-message-of-function-url-quotes-rule branch August 20, 2021 13:00
@ybiquitous
Copy link
Member Author

@jeddy3 Thank you! Do we need to update the changelog?

@jeddy3
Copy link
Member

jeddy3 commented Aug 20, 2021

SGTM. Added:

  • Fixed: function-url-quotes violation messages to be consistent with other *-quotes rules (#5488).

@ybiquitous
Copy link
Member Author

Thank you! 😄

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.

None yet

2 participants