Skip to content

Commit

Permalink
hotfix, bump to 0.7.11
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswong committed May 6, 2016
1 parent 7a1782f commit 4b3c333
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/js/rules/no-extra-destructure.js
Expand Up @@ -41,7 +41,7 @@ module.exports = {
}

function validate(left, right) {
if (!hasSameStructure(left.type, right.type)) {
if (!left || !right || !hasSameStructure(left.type, right.type)) {
return;
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "fecs",
"version": "0.7.10",
"version": "0.7.11",
"description": "Front End Code Style Suite",
"main": "index.js",
"scripts": {
Expand Down
3 changes: 3 additions & 0 deletions test/lib/js/rules/no-extra-destructure.spec.js
Expand Up @@ -19,6 +19,9 @@ var ruleTester = new RuleTester({parser: 'babel-eslint'});

ruleTester.run('no-extra-destructure', rule, {
valid: [
'let a;',
'for (let a in b) {};',
'for (let a of b) {};',
'[a] = b;',
'[a, b] = c;',
'let [a] = b;',
Expand Down

0 comments on commit 4b3c333

Please sign in to comment.