Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update: object-property-newline end location (refs #12334) (#13399)
* Update: object-property-newline end location (refs #12334)

* Chore: tests changes

* Chore: Add endLine/Column to one more test

Co-authored-by: Brandon Mills <mills.brandont@gmail.com>
  • Loading branch information
anikethsaha and btmills committed Jun 19, 2020
1 parent d98152a commit ee2fc2e
Show file tree
Hide file tree
Showing 2 changed files with 141 additions and 43 deletions.
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 ee2fc2e

Please sign in to comment.