# disallow nullish coalescing operators (es/no-nullish-coalescing-operators)

This rule reports ES2020 Nullish Coalescing operators as errors.

# Examples

⛔ Examples of incorrect code for this rule:

/*eslint es/no-nullish-coalescing-operators: error */ var x = a ?? b
Now loading...

👌 Examples of correct code for this rule:

/*eslint es/no-nullish-coalescing-operators: error */ var x = a || b var x = a != null ? a : b
Now loading...

# 📚 References