Skip to content

Commit

Permalink
Fix selector-no-union-class-name end positions (#923)
Browse files Browse the repository at this point in the history
  • Loading branch information
ybiquitous committed Dec 13, 2023
1 parent 8491b10 commit 08734db
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/rules/selector-no-union-class-name/__tests__/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ testRule({
}
`,
line: 3,
column: 9,
endLine: 3,
endColumn: 16,
message: messages.rejected,
description: "when an ampersand is chained with union class name (hyphen)"
},
Expand Down
3 changes: 2 additions & 1 deletion src/rules/selector-no-union-class-name/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ function rule(actual) {
result,
node: rule,
message: messages.rejected,
index: node.sourceIndex
index: node.sourceIndex,
endIndex: node.sourceIndex + rule.selector.length
});
});
});
Expand Down

0 comments on commit 08734db

Please sign in to comment.