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

ESLint error with no-unused-expressions #1

Closed
njakob opened this issue Jan 8, 2017 · 1 comment
Closed

ESLint error with no-unused-expressions #1

njakob opened this issue Jan 8, 2017 · 1 comment

Comments

@njakob
Copy link
Owner

njakob commented Jan 8, 2017

When the no-unused-expressions ESLint rule is enabled, it considers tagged template literals with side effects as unnecessary and raise an error (eslint/eslint#7632).

@njakob
Copy link
Owner Author

njakob commented Apr 5, 2017

Since ESLint 3.18.0, a new option called allowTaggedTemplates of the rule no-unused-expressions resolves this issue. See the following ESLint configuration example:

{
   'no-unused-expressions': ['error', {
      allowTaggedTemplates: true,
   }]
}

@njakob njakob closed this as completed Apr 5, 2017
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

1 participant