mirror of
https://github.com/ansible/awx.git
synced 2026-02-22 05:30:18 -03:30
don't prefer destructuring for arrays within es-lint
This commit is contained in:
@@ -54,6 +54,18 @@ module.exports = {
|
|||||||
'no-multiple-empty-lines': ['error', { max: 1 }],
|
'no-multiple-empty-lines': ['error', { max: 1 }],
|
||||||
'object-curly-newline': 'off',
|
'object-curly-newline': 'off',
|
||||||
'space-before-function-paren': ['error', 'always'],
|
'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
|
||||||
|
}]
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user