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

prefer-dom-node-dataset: Check .hasAttribute() and .getAttribute() #1673

Merged

Conversation

fisker
Copy link
Collaborator

@fisker fisker commented Dec 29, 2021

Fixes #1669

I just realized that we are not checking .getAttribute(), any reason behind this? I need a break...

@sindresorhus
Copy link
Owner

I just realized that we are not checking .getAttribute(), any reason behind this? I need a break...

No reason other than it not being thought of when the rule was initially added: #166

@fisker fisker marked this pull request as draft December 30, 2021 01:47
fisker and others added 3 commits December 30, 2021 09:48
@fisker fisker changed the title prefer-dom-node-dataset: Check .hasAttribute() prefer-dom-node-dataset: Check .hasAttribute() and .getAttribute() Dec 30, 2021
@fisker fisker marked this pull request as ready for review December 30, 2021 02:04
@sindresorhus sindresorhus merged commit 152f153 into sindresorhus:main Dec 30, 2021
@fisker fisker deleted the prefer-dom-node-dataset-has-attribute branch December 30, 2021 04:59
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.

Check .hasAttribute() in prefer-dom-node-dataset rule
2 participants