njakob / terminus

Universal terminal helper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ESLint error with no-unused-expressions

njakob opened this issue · comments

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).

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,
   }]
}