Skip to content

Commit 762adeb

Browse files
committed
fix: reporter node position
1 parent 7dfb6dc commit 762adeb

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/linter/reporters/console.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const levelToColorMap = {
1616
*/
1717
export default issue => {
1818
const position = issue.location.position
19-
? ` (${issue.location.position.start}:${issue.location.position.end})`
19+
? ` (${issue.location.position.start.line}:${issue.location.position.end.line})`
2020
: '';
2121

2222
console.log(

src/linter/rules/invalid-change-version.mjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ export const invalidChangeVersion = entry => {
2727
message: LINT_MESSAGES.invalidChangeVersion.replace('{{version}}', version),
2828
location: {
2929
path: entry.api_doc_source,
30-
line: entry.yaml_position.start.line,
31-
column: entry.yaml_position.start.column,
30+
position: entry.yaml_position,
3231
},
3332
}));
3433
};

0 commit comments

Comments
 (0)