Skip to content

Commit 98806da

Browse files
cjihrigtargos
authored andcommitted
tools: enable no-unsafe-optional-chaining lint rule
This rule is new in ESLint 7.15.0. PR-URL: #36411 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Daijiro Wachi <[email protected]>
1 parent 7d41192 commit 98806da

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.eslintrc.js

+1
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ module.exports = {
239239
'no-unreachable': 'error',
240240
'no-unsafe-finally': 'error',
241241
'no-unsafe-negation': 'error',
242+
'no-unsafe-optional-chaining': 'error',
242243
'no-unused-expressions': ['error', { allowShortCircuit: true }],
243244
'no-unused-labels': 'error',
244245
'no-unused-vars': ['error', { args: 'none', caughtErrors: 'all' }],

0 commit comments

Comments
 (0)