Skip to content

Commit

Permalink
Fixes #656 - Should handle object-rest properties in namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
preco21 committed Mar 6, 2018
1 parent 196c238 commit f12f2a7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/rules/namespace.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,9 @@ module.exports = {
if (pattern.type !== 'ObjectPattern') return

for (let property of pattern.properties) {
if (property.type === 'ExperimentalRestProperty') {
continue
}

if (property.key.type !== 'Identifier') {
context.report({
Expand Down

0 comments on commit f12f2a7

Please sign in to comment.