Skip to content

Commit 2379d8e

Browse files
committed
Disable destructuring enforcement on array
1 parent 9fb04ec commit 2379d8e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

esnext.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ module.exports = {
1919
'prefer-destructuring': [
2020
'error',
2121
{
22-
array: true,
22+
// Disabled because it forces destructuring on
23+
// stupid stuff like `foo.bar = process.argv[2];`
24+
// TODO: Open ESLint issue about this
25+
// array: true,
2326
object: true
2427
}
2528
]

0 commit comments

Comments
 (0)