From 98806da81026af6cee17deb5690d36d32c9259e4 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 15125ff33949cc..244aed86cd1c91 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -239,6 +239,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' }],