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

Change prefer-query-selector rule description to avoid confusion #408

Merged
merged 3 commits into from
Oct 4, 2019

Conversation

hkulur
Copy link
Contributor

@hkulur hkulur commented Oct 3, 2019

Removed the word consistent, which seemed to cause confusion.

Fix #342

Removed the word consistent, which seemed to cause confusion
@hkulur hkulur changed the title Fix for issue #342 Fix for issue #342 - Change the rule description to avoid confusion Oct 3, 2019
@fisker fisker changed the title Fix for issue #342 - Change the rule description to avoid confusion Change prefer-query-selector rule description to avoid confusion Oct 3, 2019
@@ -1,6 +1,6 @@
# Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()`

It's better to be consistent.
It's better to be use one method to query DOM elements.
Copy link
Collaborator

@fisker fisker Oct 3, 2019

Choose a reason for hiding this comment

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

I'm not a native speaker, but this sentence is not right

Copy link
Contributor Author

Choose a reason for hiding this comment

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

My bad. Fixed it now.

docs/rules/prefer-query-selector.md Outdated Show resolved Hide resolved
Co-Authored-By: fisker Cheung <lionkay@gmail.com>
@fisker fisker merged commit bee7653 into sindresorhus:master Oct 4, 2019
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.

Description of prefer-query-selector is misleading WRT “consistency”
2 participants