From a26ae70f2b46c7ee7ab41e2346b4ac9763e675d9 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 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This rule is new in ESLint 7.15.0. PR-URL: /~https://github.com/nodejs/node/pull/36411 Reviewed-By: Rich Trott Reviewed-By: Michaƫl Zasso Reviewed-By: Luigi Pinca Reviewed-By: Antoine du Hamel Reviewed-By: James M Snell Reviewed-By: Daijiro Wachi --- .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' }],