mirror of
https://github.com/filecoin-project/slate.git
synced 2024-12-26 02:24:44 +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": [
|
"prefer-destructuring": [
|
||||||
"error",
|
"error",
|
||||||
{
|
{
|
||||||
array: true,
|
VariableDeclarator: {
|
||||||
object: true,
|
array: false,
|
||||||
|
object: true,
|
||||||
|
},
|
||||||
|
AssignmentExpression: {
|
||||||
|
array: false,
|
||||||
|
object: false,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
enforceForRenamedProperties: false,
|
enforceForRenamedProperties: false,
|
||||||
|
Loading…
Reference in New Issue
Block a user