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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(mutator): add the optional chaining mutator #2988

Merged
merged 16 commits into from Jul 2, 2021
Merged

Conversation

nicojs
Copy link
Member

@nicojs nicojs commented Jul 2, 2021

Add the "OptionalChaining" mutator:

  • foo?.bar -> foo.bar // 馃懡
  • foo?.[1] -> foo[1] // 馃懡
  • foo?.() -> foo() // 馃懡

If you don't want to use this mutator, you can exclude it with:

{
  "mutator": {
    "excludedMutations": ["OptionalChaining"]
  }
}

@nicojs nicojs enabled auto-merge (squash) July 2, 2021 19:07
@nicojs
Copy link
Member Author

nicojs commented Jul 2, 2021

This is attempt 2. Previous PR was on the wrong branch 馃檲

@nicojs nicojs merged commit 43ac767 into master Jul 2, 2021
@nicojs nicojs deleted the feat/optional-chaining branch July 2, 2021 19:34
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.

None yet

1 participant