Skip to content

New rule: no-alias-methods#164

Merged
SimenB merged 5 commits intojest-community:masterfrom
garyking:no-alias-methods
Sep 30, 2018
Merged

New rule: no-alias-methods#164
SimenB merged 5 commits intojest-community:masterfrom
garyking:no-alias-methods

Conversation

@garyking
Copy link
Copy Markdown
Contributor

This rule ensures that only the canonical method name from the Jest docs are used for methods, rather than their alias forms. This ensures consistency in codebases, and makes it easier to search for all occurrences of a method.

Copy link
Copy Markdown
Member

@SimenB SimenB left a comment

Choose a reason for hiding this comment

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

I like it, thanks!

Thoughts on allowing people to whitelist matchers they do want to keep?

@SimenB
Copy link
Copy Markdown
Member

SimenB commented Sep 30, 2018

We can follow up with that later if people want it

@SimenB SimenB merged commit 2894eaa into jest-community:master Sep 30, 2018
@SimenB
Copy link
Copy Markdown
Member

SimenB commented Sep 30, 2018

🎉 This PR is included in version 21.24.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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