Skip to content

Commit

Permalink
Fix update-rule-types script and prefer-arrow-callback
Browse files Browse the repository at this point in the history
  • Loading branch information
nzakas committed Oct 29, 2018
1 parent 9ce28ff commit 68dc204
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/rules/prefer-arrow-callback.js
Expand Up @@ -179,7 +179,7 @@ module.exports = {
* @returns {void}
*/
function enterScope() {
stack.push();
stack.push({ this: false, super: false, meta: false });
}

/**
Expand Down
2 changes: 1 addition & 1 deletion tools/update-rule-types.js
Expand Up @@ -27,7 +27,7 @@ module.exports = (fileInfo, api) => {

// if there's no properties, just exit
if (!metaNode.value.properties) {
return null;
return p.node;
}

const typeNode = metaNode.value.properties.find(node => node.key.name === "type");
Expand Down

0 comments on commit 68dc204

Please sign in to comment.