Skip to content

Commit

Permalink
feat: check if the node exists
Browse files Browse the repository at this point in the history
  • Loading branch information
cstrnt committed May 25, 2021
1 parent 67d96b1 commit 587dbb6
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ module.exports = {
// This rule should not be applied to subcommands and
// options on the root object
if (
node.parent &&
node.parent.parent &&
node.parent.parent.parent &&
node.parent.parent.parent.parent &&
node.parent.parent.parent.parent.type ===
"ExportNamedDeclaration" &&
keyName !== "args"
Expand Down

0 comments on commit 587dbb6

Please sign in to comment.