Skip to content

Commit

Permalink
Fix missing ident check for extends
Browse files Browse the repository at this point in the history
  • Loading branch information
bgriffith committed Nov 16, 2015
1 parent 0ead836 commit 250fe3e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/rules/mixin-name-format.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ module.exports = {
else {
// We're not linting extends here
if (node.contains('atkeyword')) {
if (node.first('atkeyword').content === 'extend') {
return false;
if (node.first('atkeyword').contains('ident')) {
if (node.first('atkeyword').first('ident').content === 'extend') {
return false;
}
}
}

Expand Down

0 comments on commit 250fe3e

Please sign in to comment.