From aacd77d8bc494dad18633f53f71030bbabf70913 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4?= Date: Wed, 9 Sep 2020 21:25:55 +0900 Subject: [PATCH] no-undef: class proeprty --- src/rules/no_undef.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/rules/no_undef.rs b/src/rules/no_undef.rs index 0e252d456..012727dac 100644 --- a/src/rules/no_undef.rs +++ b/src/rules/no_undef.rs @@ -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);