Skip to content

Commit

Permalink
Fix: Ignore any lines that are only made of empty elements (fixes esl…
Browse files Browse the repository at this point in the history
  • Loading branch information
boutahlilsoufiane committed Jul 25, 2021
1 parent 39115c8 commit bac30b0
Show file tree
Hide file tree
Showing 2 changed files with 450 additions and 241 deletions.
2 changes: 2 additions & 0 deletions lib/rules/comma-style.js
Expand Up @@ -216,6 +216,8 @@ module.exports = {
previousItemToken = tokenAfterItem
? sourceCode.getTokenBefore(tokenAfterItem)
: sourceCode.ast.tokens[sourceCode.ast.tokens.length - 1];
} else {
previousItemToken = currentItemToken;
}
});

Expand Down

0 comments on commit bac30b0

Please sign in to comment.