I'm using Promise.all
to call a set of Promises. Our development version only supports ES5. Hence, the ESLINT throws an error when I use the following statement :
Promise.all([
service.document.getDocumentByPath( grantorPath ),
service.document.getDocumentByPath( synonymPath ),
service.document.getDocumentByPath( templatePath )
]).then(function([grantorDoc, synonymDoc, templateDoc]) {
ESLint error : Unexpected destructuring. eslint(es5/no-destructing)
I would like to
- remove the ESLINT error without touching the eslint rules.
- use the results (grantorDoc, synonymDoc, templateDoc) recevied after the Promises are resolved.