Skip to content

Commit 605703a

Browse files
manit2004kgryte
andauthored
chore: fix JavaScript lint errors
PR-URL: #9016 Closes: #9015 Co-authored-by: Athan Reines <kgryte@gmail.com> Reviewed-by: Athan Reines <kgryte@gmail.com>
1 parent 056b62b commit 605703a

File tree

2 files changed

+21
-21
lines changed
  • lib/node_modules/@stdlib
    • _tools/eslint/rules/jsdoc-no-heading-punctuation/lib
    • console/log/examples

2 files changed

+21
-21
lines changed

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

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,26 @@ var rule;
4040

4141
// FUNCTIONS //
4242

43+
/**
44+
* Copies AST node location info.
45+
*
46+
* @private
47+
* @param {Object} loc - AST node location
48+
* @returns {Object} copied location info
49+
*/
50+
function copyLocationInfo( loc ) {
51+
return {
52+
'start': {
53+
'line': loc.start.line,
54+
'column': loc.start.column
55+
},
56+
'end': {
57+
'line': loc.end.line,
58+
'column': loc.end.column
59+
}
60+
};
61+
}
62+
4363
/**
4464
* Rule to prevent Markdown headings in JSDoc descriptions from ending with specified characters.
4565
*
@@ -115,26 +135,6 @@ function main( context ) {
115135
}
116136
}
117137

118-
/**
119-
* Copies AST node location info.
120-
*
121-
* @private
122-
* @param {Object} loc - AST node location
123-
* @returns {Object} copied location info
124-
*/
125-
function copyLocationInfo( loc ) {
126-
return {
127-
'start': {
128-
'line': loc.start.line,
129-
'column': loc.start.column
130-
},
131-
'end': {
132-
'line': loc.end.line,
133-
'column': loc.end.column
134-
}
135-
};
136-
}
137-
138138
/**
139139
* Reports an error message.
140140
*

lib/node_modules/@stdlib/console/log/examples/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* limitations under the License.
1717
*/
1818

19-
/* eslint-disable object-curly-newline */
19+
/* eslint-disable object-curly-newline, stdlib/line-closing-bracket-spacing */
2020

2121
'use strict';
2222

0 commit comments

Comments
 (0)