documentation: no-unsafe-optional-chaining - add needs ecmaVersion: 2020 #14029
The version of ESLint you are using.
The problem you want to solve.
And while you're there, please add to correct examples a simple
Your take on the correct solution to problem.
Are you willing to submit a pull request to implement this change?
The text was updated successfully, but these errors were encountered:
Hi @aavmurphy, thanks for the issue!
The rule itself doesn't require
I think that mentioning ecmaVersion in the documentation for a rule makes sense only if the rule auto-fixes code to a newer syntax. For example: prefer-object-spread#when-not-to-use-it
PR to add this example is welcome!
Thanks for adding the
I still think it worth mentioning: use
I was unaware of this config option, so didn't understand why my correct code was erroring with a syntax error until google came up with the eslint blog post which mentions
Aside: Some of the other 'correct' options are beginning to look a bit like line noise (and this from a perl programmer). Could almost do with a complexity/obfuscated warning.