Skip to content

Commit

Permalink
Fix function-unquote-no-unquoted-strings-inside end positions (#935)
Browse files Browse the repository at this point in the history
  • Loading branch information
ybiquitous committed Dec 20, 2023
1 parent 25b0672 commit d4c2adb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ testRule({
message: messages.rejected,
line: 3,
column: 24,
endLine: 3,
endColumn: 31,
fixed: `
p {
font-family: Helvetica;
Expand All @@ -58,6 +60,8 @@ testRule({
message: messages.rejected,
line: 4,
column: 24,
endLine: 4,
endColumn: 31,
fixed: `
$font: Helvetica;
p {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,12 @@ function rule(primary, _, context) {

decl.value = contents[1];
} else {
const index = declarationValueIndex(decl) + node.sourceIndex;
utils.report({
message: messages.rejected,
node: decl,
index: declarationValueIndex(decl) + node.sourceIndex,
index,
endIndex: index + node.value.length,
result,
ruleName
});
Expand Down

0 comments on commit d4c2adb

Please sign in to comment.