Skip to content

Commit

Permalink
Update: object-property-newline end location (refs #12334)
Browse files Browse the repository at this point in the history
  • Loading branch information
anikethsaha committed Jun 6, 2020
1 parent f9c35f3 commit 5acc7cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rules/object-property-newline.js
Expand Up @@ -77,7 +77,7 @@ module.exports = {
if (lastTokenOfPreviousProperty.loc.end.line === firstTokenOfCurrentProperty.loc.start.line) {
context.report({
node,
loc: firstTokenOfCurrentProperty.loc.start,
loc: firstTokenOfCurrentProperty.loc,
messageId,
fix(fixer) {
const comma = sourceCode.getTokenBefore(firstTokenOfCurrentProperty);
Expand Down

0 comments on commit 5acc7cb

Please sign in to comment.