Skip to content
This repository has been archived by the owner on Nov 19, 2019. It is now read-only.

Commit

Permalink
feat(typescript): allow unused rest siblings
Browse files Browse the repository at this point in the history
This allows us to use destructuring to remove an unwanted object member, without having to mutate the original object. E.g:

```javascript
  const { omit, ..newObject } = oldObject;
```
  • Loading branch information
AndrewLeedham committed Apr 11, 2019
1 parent 85a3ca3 commit a6fd755
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ module.exports = {
allowSingleExtends: true
}
],
'@typescript-eslint/no-unused-vars': [
'error',
{
ignoreRestSiblings: true
}
],
'jsdoc/check-examples': 'warn',
'jsdoc/check-param-names': 'error',
'jsdoc/check-tag-names': 'error',
Expand Down

0 comments on commit a6fd755

Please sign in to comment.