Skip to content

Commit

Permalink
no-undef: class proeprty
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Sep 9, 2020
1 parent ea30fb8 commit aacd77d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/rules/no_undef.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,10 @@ impl Visit for NoGlobalAssignVisitor {
}
}

fn visit_class_prop(&mut self, p: &ClassProp, _: &dyn Node) {
p.value.visit_with(p, self)
}

fn visit_assign_pat_prop(&mut self, p: &AssignPatProp, _: &dyn Node) {
p.visit_children_with(self);

Expand Down

0 comments on commit aacd77d

Please sign in to comment.