diff options
author | cjihrig <cjihrig@gmail.com> | 2020-12-06 10:16:42 -0500 |
---|---|---|
committer | Node.js GitHub Bot <github-bot@iojs.org> | 2020-12-09 16:42:13 +0000 |
commit | a26ae70f2b46c7ee7ab41e2346b4ac9763e675d9 (patch) | |
tree | 3afa5cb68061c3fae2da00a3ee14614edae41113 /.eslintrc.js | |
parent | 514da3818062bd92f76251ee58d22cd7fdc64883 (diff) | |
download | ios-node-v8-a26ae70f2b46c7ee7ab41e2346b4ac9763e675d9.tar.gz ios-node-v8-a26ae70f2b46c7ee7ab41e2346b4ac9763e675d9.tar.bz2 ios-node-v8-a26ae70f2b46c7ee7ab41e2346b4ac9763e675d9.zip |
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>
Diffstat (limited to '.eslintrc.js')
-rw-r--r-- | .eslintrc.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/.eslintrc.js b/.eslintrc.js index edb2b6c1ee..af1249eae6 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' }], |