id: prefer-nullish-coalescing
valid:
- |
const x = value ?? fallback;
- |
if (a || b) { doSomething(); }
invalid:
- |
const x = value || "default";
- |
const timeout = options.timeout || 5000;
- |
const x = a || b;
- |
const result = isActive || hasPermission;