Skip to content

Commit

Permalink
Add component detection for class expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
yannickcr committed Feb 22, 2016
1 parent 4e1bcc0 commit 7105a01
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/util/Components.js
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,13 @@ function componentRule(rule, context) {

// Component detection instructions
var detectionInstructions = {
ClassExpression: function(node) {
if (!utils.isES6Component(node)) {
return;
}
components.add(node, 2);
},

ClassDeclaration: function(node) {
if (!utils.isES6Component(node)) {
return;
Expand Down

0 comments on commit 7105a01

Please sign in to comment.