From 45d037a2cc9bd2139c647f3222f4388d9d4ee96e Mon Sep 17 00:00:00 2001 From: John Mitchell Date: Wed, 25 Apr 2018 21:12:13 -0400 Subject: [PATCH] don't prefer destructuring for arrays within es-lint --- awx/ui/.eslintrc.js | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/awx/ui/.eslintrc.js b/awx/ui/.eslintrc.js index 217601f5f9..9a42d34ab2 100644 --- a/awx/ui/.eslintrc.js +++ b/awx/ui/.eslintrc.js @@ -54,6 +54,18 @@ module.exports = { 'no-multiple-empty-lines': ['error', { max: 1 }], 'object-curly-newline': 'off', 'space-before-function-paren': ['error', 'always'], - 'no-trailing-spaces': ['error'] - } + 'no-trailing-spaces': ['error'], + 'prefer-destructuring': ['error', { + 'VariableDeclarator': { + 'array': false, + 'object': true + }, + 'AssignmentExpression': { + 'array': false, + 'object': true + } + }, { + 'enforceForRenamedProperties': false + }] + } };