mirror of
https://github.com/filecoin-project/slate.git
synced 2024-12-25 18:13:10 +03:00
fix: only prefer-destructuring for object variables
This commit is contained in:
parent
8c67e06706
commit
59bbd14e42
10
.eslintrc.js
10
.eslintrc.js
@ -39,8 +39,14 @@ module.exports = {
|
||||
"prefer-destructuring": [
|
||||
"error",
|
||||
{
|
||||
array: true,
|
||||
object: true,
|
||||
VariableDeclarator: {
|
||||
array: false,
|
||||
object: true,
|
||||
},
|
||||
AssignmentExpression: {
|
||||
array: false,
|
||||
object: false,
|
||||
},
|
||||
},
|
||||
{
|
||||
enforceForRenamedProperties: false,
|
||||
|
Loading…
Reference in New Issue
Block a user