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

Add ignoreFunctions: [] to value-keyword-case #4733

Merged
merged 1 commit into from May 12, 2020
Merged

Add ignoreFunctions: [] to value-keyword-case #4733

merged 1 commit into from May 12, 2020

Conversation

mattxwang
Copy link
Member

Hi there,

This is a PR that adds an ignoreFunctions: [] option to the value-keyword-case rule, as requested in #4648! I did this by adding the option to the valid option list, and then using matchesStringOrRegExp on the passed-in options. I also added tests based off of the discussion in the issue comments, and added documentation on the option to the rule's documentation page.

On my end, I ran npm run format and npm run test, and everything seems to work as intended. Let me know if there are any edge-cases/tests that I should add to the PR!

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

Closes #4648.

Is there anything in the PR that needs further explanation?

Nope!

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.

@malsf21 Looks good to me, thanks!

I was going to suggest using the optionsMatches util, but I see the rule doesn't use it yet for any of the ignore options. I'll create a follow-up refactor issue for that.

@jeddy3 jeddy3 mentioned this pull request May 6, 2020
6 tasks
Copy link
Member

@m-allanson m-allanson left a comment

Choose a reason for hiding this comment

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

Good stuff, thank you @malsf21.

@jeddy3 jeddy3 changed the title Adds ignoreFunctions: [] to value-keyword-case Add ignoreFunctions: [] to value-keyword-case May 12, 2020
@jeddy3 jeddy3 merged commit 900649d into stylelint:master May 12, 2020
@jeddy3
Copy link
Member

jeddy3 commented May 12, 2020

Changelog:

  • Added: ignoreFunctions: [] to value-keyword-case (#4733).

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.

Add ignoreFunctions: [] to value-keyword-case
3 participants