Skip to content

Commit 7542a3b

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 <rtrott@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
1 parent 26f8ccf commit 7542a3b

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
@@ -234,6 +234,7 @@ module.exports = {
234234
'no-unreachable': 'error',
235235
'no-unsafe-finally': 'error',
236236
'no-unsafe-negation': 'error',
237+
'no-unsafe-optional-chaining': 'error',
237238
'no-unused-expressions': ['error', { allowShortCircuit: true }],
238239
'no-unused-labels': 'error',
239240
'no-unused-vars': ['error', { args: 'none', caughtErrors: 'all' }],

0 commit comments

Comments
 (0)