Skip to content

Commit 0855c53

Browse files
committed
Relax rule: Allow tagged template string expressions (no-unused-expressions)
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 } ` ```
1 parent 0f6fbaf commit 0855c53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
"no-unreachable": "error",
134134
"no-unsafe-finally": "error",
135135
"no-unsafe-negation": "error",
136-
"no-unused-expressions": ["error", { "allowShortCircuit": true, "allowTernary": true }],
136+
"no-unused-expressions": ["error", { "allowShortCircuit": true, "allowTernary": true, "allowTaggedTemplates": true }],
137137
"no-unused-vars": ["error", { "vars": "all", "args": "none", "ignoreRestSiblings": true }],
138138
"no-use-before-define": ["error", { "functions": false, "classes": false, "variables": false }],
139139
"no-useless-call": "error",

0 commit comments

Comments
 (0)