Skip to content

Commit ee2fc2e

Browse files
anikethsahabtmills
andauthored
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 <[email protected]>
1 parent d98152a commit ee2fc2e

2 files changed

Lines changed: 141 additions & 43 deletions

File tree

lib/rules/object-property-newline.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ module.exports = {
7777
if (lastTokenOfPreviousProperty.loc.end.line === firstTokenOfCurrentProperty.loc.start.line) {
7878
context.report({
7979
node,
80-
loc: firstTokenOfCurrentProperty.loc.start,
80+
loc: firstTokenOfCurrentProperty.loc,
8181
messageId,
8282
fix(fixer) {
8383
const comma = sourceCode.getTokenBefore(firstTokenOfCurrentProperty);

0 commit comments

Comments
 (0)