jwbay / tslint-misc-rules

Collection of miscellaneous TSLint rules

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

no-unnecessary-parens-for-arrow-function-arguments destructuring

bookman25 opened this issue · comments

The following fails to lint and the parentheses are required in this case.

Promise.all([some, promises])
  .then(([result, values]) => {});

Never mind, this appears to be fixed. Editor had to be restarted to pick up new rules.

commented

function().then(({ x: y }) => (y))