Skip to content

Commit

Permalink
Fix end positions for at-rule-no-unknown (#6026)
Browse files Browse the repository at this point in the history
  • Loading branch information
ybiquitous committed Apr 20, 2022
1 parent 083779e commit 91f65fa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/rules/at-rule-no-unknown/__tests__/index.js
Expand Up @@ -90,6 +90,8 @@ testRule({
message: messages.rejected('@unknown-at-rule'),
line: 1,
column: 1,
endLine: 1,
endColumn: 17,
},
],
});
Expand Down
5 changes: 4 additions & 1 deletion lib/rules/at-rule-no-unknown/index.js
Expand Up @@ -55,11 +55,14 @@ const rule = (primary, secondaryOptions) => {
return;
}

const atName = `@${name}`;

report({
message: messages.rejected(`@${name}`),
message: messages.rejected(atName),
node: atRule,
ruleName,
result,
word: atName,
});
});
};
Expand Down

0 comments on commit 91f65fa

Please sign in to comment.