Skip to content

Commit 59e6f68

Browse files
committed
chore: fix JavaScript lint errors (issue stdlib-js#9699)
1 parent a3ddcf5 commit 59e6f68

1 file changed

Lines changed: 21 additions & 19 deletions

File tree

  • lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-heading-content-indent/lib

lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-heading-content-indent/lib/main.js

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,26 @@ var rule;
3838

3939

4040
// FUNCTIONS //
41+
/**
42+
* Copies AST node location info.
43+
*
44+
* @private
45+
* @param {Object} loc - AST node location
46+
* @returns {Object} copied location info
47+
*/
48+
function copyLocationInfo( loc ) {
49+
return {
50+
'start': {
51+
'line': loc.start.line,
52+
'column': loc.start.column
53+
},
54+
'end': {
55+
'line': loc.end.line,
56+
'column': loc.end.column
57+
}
58+
};
59+
}
60+
4161

4262
/**
4363
* Rule to prevent indentation of Markdown heading content in JSDoc descriptions.
@@ -112,25 +132,7 @@ function main( context ) {
112132
}
113133
}
114134

115-
/**
116-
* Copies AST node location info.
117-
*
118-
* @private
119-
* @param {Object} loc - AST node location
120-
* @returns {Object} copied location info
121-
*/
122-
function copyLocationInfo( loc ) {
123-
return {
124-
'start': {
125-
'line': loc.start.line,
126-
'column': loc.start.column
127-
},
128-
'end': {
129-
'line': loc.end.line,
130-
'column': loc.end.column
131-
}
132-
};
133-
}
135+
134136

135137
/**
136138
* Reports an error message.

0 commit comments

Comments
 (0)