From fb102ffa11e947e897dbac2c83f0c0a2b309ba39 Mon Sep 17 00:00:00 2001 From: cjihrig Date: Sun, 6 Dec 2020 10:16:42 -0500 Subject: [PATCH] tools: enable no-unsafe-optional-chaining lint rule This rule is new in ESLint 7.15.0. --- .eslintrc.js | 1 + 1 file changed, 1 insertion(+) diff --git a/.eslintrc.js b/.eslintrc.js index edb2b6c1ee3419..af1249eae6436e 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -234,6 +234,7 @@ module.exports = { 'no-unreachable': 'error', 'no-unsafe-finally': 'error', 'no-unsafe-negation': 'error', + 'no-unsafe-optional-chaining': 'error', 'no-unused-expressions': ['error', { allowShortCircuit: true }], 'no-unused-labels': 'error', 'no-unused-vars': ['error', { args: 'none', caughtErrors: 'all' }],