diff --git a/.eslintrc.js b/.eslintrc.js index 80990a68af65..bd69d9f1124f 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -62,6 +62,8 @@ const base = { 'no-unexpected-multiline': 'error', // disallow negation of the left operand of an in expression 'no-unsafe-negation': 'error', + // disallow use of optional chaining in contexts where the `undefined` value is not allowed + 'no-unsafe-optional-chaining': 'error', // disallow loops with a body that allows only one iteration 'no-unreachable-loop': 'error', // disallow useless backreferences in regular expressions diff --git a/package.json b/package.json index b1aa9b8512f8..e69b93c8ce8f 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "babel-plugin-transform-for-of-as-array": "^1.1.1", "david": "^12.0.0", "es-observable": "git+https://github.com/tc39/proposal-observable.git#d3404f06bc70c7c578a5047dfb3dc813730e3319", - "eslint": "^7.14.0", + "eslint": "^7.15.0", "eslint-import-resolver-webpack": "~0.13.0", "eslint-plugin-import": "^2.22.1", "eslint-plugin-node": "^11.1.0",