Skip to content

Commit ef6e2d4

Browse files
committed
Fix calculation of column location
1 parent 5ee85ed commit ef6e2d4

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-blockquote-indentation/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ console.log( result );
115115
'severity': 2,
116116
'message': 'Remove 3 spaces between blockquote and content',
117117
'line': 4,
118-
'column': 6,
118+
'column': 5,
119119
'nodeType': null,
120120
'source': '/**',
121121
'endLine': 13,

lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-blockquote-indentation/examples/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ console.log( result );
4444
'severity': 2,
4545
'message': 'Remove 3 spaces between blockquote and content',
4646
'line': 4,
47-
'column': 6,
47+
'column': 5,
4848
'nodeType': null,
4949
'source': '/**',
5050
'endLine': 13,

lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-blockquote-indentation/lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ function main( context ) {
9191
msg = err.message;
9292
loc = copyLocationInfo( location );
9393
loc.start.line = err.location.start.line + 1; // Note: we assume `/**` is on its own line
94-
loc.start.column = err.location.start.column + 2; // Note: we assume that 1 space separates `*` from JSDoc description content (e.g., `* ## Beep`)
94+
loc.start.column = err.location.start.column + 1; // Note: we assume that 1 space separates `*` from JSDoc description content (e.g., `* ## Beep`)
9595
report( msg, loc );
9696
}
9797
} // end FUNCTION reportErrors()

0 commit comments

Comments
 (0)