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

Extract hasParentTag utility function #2434

Merged
merged 2 commits into from
Aug 26, 2022

Conversation

JoaoDsv
Copy link
Contributor

@JoaoDsv JoaoDsv commented Mar 23, 2022

The hasFormParent function only exists in the lib/rules/require-button-type.js rule file.

We want to be able to reuse it in other rule, so we are extracting it in a more generic version.

FYI it will soon be used to complete this rule.

@JoaoDsv JoaoDsv changed the title Extract "hasParentTag" function DRAFT: Extract "hasParentTag" function Mar 23, 2022
@bmish
Copy link
Member

bmish commented Mar 23, 2022

This looks fine, is this still a draft?

@JoaoDsv JoaoDsv changed the title DRAFT: Extract "hasParentTag" function Extract "hasParentTag" function Aug 26, 2022
@JoaoDsv
Copy link
Contributor Author

JoaoDsv commented Aug 26, 2022

This looks fine, is this still a draft?

@bmish It's indeed not in draft anymore, I just wanted your opinion on it, as you was the requestor of this extraction. Feel free to approve it if it looks good to you, so we can unblock the "no-action-on-submit-button" MR 🙏

@bmish bmish changed the title Extract "hasParentTag" function Extract hasParentTag utility function Aug 26, 2022
@bmish bmish added the internal label Aug 26, 2022
Copy link
Member

@bmish bmish left a comment

Choose a reason for hiding this comment

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

Thanks!

@bmish bmish merged commit 829d3ed into ember-template-lint:master Aug 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants