idearium / eslint-config-idearium

Idearium ESLint config.
MIT License
0 stars 1 forks source link

Consider allowing short circuit for no-unused-expressions #21

Open smebberson opened 5 years ago

smebberson commented 5 years ago

I think we should consider updating the no-unused-expressions rule to 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').