wesbos / eslint-config-wesbos

No-Sweat™ Eslint and Prettier Setup - with or without VS Code
2.74k stars 419 forks source link

Add { "allowShortCircuit": true, "allowTernary": true } #124

Closed wesbos closed 1 year ago

wesbos commented 1 year ago

I wanna do this:

code === 0 ? resolve() : reject();
wesbos commented 1 year ago
      "no-unused-expressions": [
        "error",
        {
          "allowShortCircuit": true,
          "allowTernary": true
        }
      ]
wesbos commented 1 year ago

fixed in #e3285f7