Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Relax rule: Allow tagged template string expressions (no-unused-expre…
…ssions)

Fixes: standard/standard#822

Fixes "Expected an assignment or function call and instead saw an
expression." error when using a standalone tagged template string like:

```js
var css = require('sheetify')

css`
  .js-yellow { color: #f7df1e }
  .bg-js-yellow { background-color: #f7df1e }
`
```
  • Loading branch information
feross committed Mar 18, 2017
1 parent 0f6fbaf commit 0855c53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eslintrc.json
Expand Up @@ -133,7 +133,7 @@
"no-unreachable": "error",
"no-unsafe-finally": "error",
"no-unsafe-negation": "error",
"no-unused-expressions": ["error", { "allowShortCircuit": true, "allowTernary": true }],
"no-unused-expressions": ["error", { "allowShortCircuit": true, "allowTernary": true, "allowTaggedTemplates": true }],
"no-unused-vars": ["error", { "vars": "all", "args": "none", "ignoreRestSiblings": true }],
"no-use-before-define": ["error", { "functions": false, "classes": false, "variables": false }],
"no-useless-call": "error",
Expand Down

0 comments on commit 0855c53

Please sign in to comment.