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

Add options to @typescript-eslint/no-unused-expressions #24

Closed
yangmingshan opened this issue Mar 26, 2020 · 4 comments
Closed

Add options to @typescript-eslint/no-unused-expressions #24

yangmingshan opened this issue Mar 26, 2020 · 4 comments

Comments

@yangmingshan
Copy link

I think we should set all @typescript-eslint/no-unused-expressions options to true.

{
  '@typescript-eslint/no-unused-expressions': [
    'error',
    {
      allowShortCircuit: true,
      allowTernary: true,
      allowTaggedTemplates: true
    }
  ]
}
@sindresorhus
Copy link
Member

Why? Those are all anti-patterns.

@yangmingshan
Copy link
Author

The first two maybe, but even tagged templates?

@sindresorhus
Copy link
Member

Why would you use a tagged template without using it?

@yangmingshan
Copy link
Author

Oh, I didn't notice, sorry.

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

No branches or pull requests

2 participants