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

feat(utils.getRule): add function to get rule by id #2724

Merged
merged 2 commits into from
Jan 5, 2021
Merged

Conversation

straker
Copy link
Contributor

@straker straker commented Dec 24, 2020

Closes issue: #2642

@straker straker requested a review from a team as a code owner December 24, 2020 18:47
Copy link
Contributor

@WilcoFiers WilcoFiers left a comment

Choose a reason for hiding this comment

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

We should talk about if this should be axe.getRule() or axe.utils.getRule(). Implementation looks fine.

@@ -31,6 +31,7 @@ export { default as getFriendlyUriEnd } from './get-friendly-uri-end';
export { default as getNodeAttributes } from './get-node-attributes';
export { default as getNodeFromTree } from './get-node-from-tree';
export { default as getRootNode } from './get-root-node';
export { default as getRule } from './get-rule';
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are you putting this on .utils instead of on axe? Not objecting, to it, but would like to know the reason for it.

@straker straker merged commit 9d0af53 into develop Jan 5, 2021
@straker straker deleted the get-rule branch January 5, 2021 16:08
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.

2 participants