Open smebberson opened 5 years ago
I think we should consider updating the no-unused-expressions rule to no-unused-expressions: ["error", { "allowShortCircuit": true }].
no-unused-expressions
no-unused-expressions: ["error", { "allowShortCircuit": true }]
This would allow the following, which I consider to be a perfectly valid statement window.Intercom && window.Intercom('shutdown').
window.Intercom && window.Intercom('shutdown')
I think we should consider updating the
no-unused-expressions
rule tono-unused-expressions: ["error", { "allowShortCircuit": true }]
.This would allow the following, which I consider to be a perfectly valid statement
window.Intercom && window.Intercom('shutdown')
.