mirror of https://github.com/nodejs/node.git
tools: enable no-unsafe-optional-chaining lint rule
This rule is new in ESLint 7.15.0. PR-URL: https://github.com/nodejs/node/pull/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>pull/36436/head
parent
514da38180
commit
a26ae70f2b
|
@ -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' }],
|
||||
|
|
Loading…
Reference in New Issue