fix: prefer const when all variables in destructuring should be const (#149)

This commit is contained in:
三咲智子 Kevin Deng 2023-01-09 17:58:26 +08:00 committed by GitHub
parent 42dddba96d
commit 2a224ef301
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -237,7 +237,7 @@ module.exports = {
'prefer-const': [ 'prefer-const': [
'error', 'error',
{ {
destructuring: 'any', destructuring: 'all',
ignoreReadBeforeAssign: true, ignoreReadBeforeAssign: true,
}, },
], ],