Skip to content

Commit 7105a01

Browse files
committed
Add component detection for class expressions
1 parent 4e1bcc0 commit 7105a01

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/util/Components.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,13 @@ function componentRule(rule, context) {
339339

340340
// Component detection instructions
341341
var detectionInstructions = {
342+
ClassExpression: function(node) {
343+
if (!utils.isES6Component(node)) {
344+
return;
345+
}
346+
components.add(node, 2);
347+
},
348+
342349
ClassDeclaration: function(node) {
343350
if (!utils.isES6Component(node)) {
344351
return;

0 commit comments

Comments
 (0)