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

no-unused-expressions error when optional chaining #122

Closed
herberthenrique opened this issue Oct 1, 2020 · 0 comments
Closed

no-unused-expressions error when optional chaining #122

herberthenrique opened this issue Oct 1, 2020 · 0 comments

Comments

@herberthenrique
Copy link
Contributor

Describe the bug

We must disable the rule no-unused-expressions from our eslint configuration and enable babel/no-unused-expressions from your eslint-plugin-babel.

Reference:
babel/eslint-plugin-babel#185

Steps to reproduce

Steps to reproduce the behavior:

  1. Create a project with foundry optional chaining enabled
  2. Try to use with a function call, eg. myObject?.foo()
  3. ESLint will complain

Expected behavior

No eslint error for this use case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants