We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
no-unsafe-optional-chaining
1 parent fb3214c commit b9ff0aeCopy full SHA for b9ff0ae
1 file changed
packages/eslint-config-airbnb-base/rules/errors.js
@@ -149,6 +149,11 @@ module.exports = {
149
// https://eslint.org/docs/rules/no-unsafe-negation
150
'no-unsafe-negation': 'error',
151
152
+ // disallow use of optional chaining in contexts where the undefined value is not allowed
153
+ // https://eslint.org/docs/rules/no-unsafe-optional-chaining
154
+ // TODO: enable, semver-minor, once eslint v7.15 is required (which is major)
155
+ 'no-unsafe-optional-chaining': ['off', { disallowArithmeticOperators: true }],
156
+
157
// Disallow useless backreferences in regular expressions
158
// https://eslint.org/docs/rules/no-useless-backreference
159
// TODO: enable, semver-minor, once eslint v7 is required (which is major)
0 commit comments