Skip to content

Commit 4142b62

Browse files
committed
linting issue fixed in main.js and index.js
1 parent 512334c commit 4142b62

2 files changed

Lines changed: 21 additions & 21 deletions

File tree

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

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
@@ -31,4 +31,4 @@ log( '%.2i', 2.2 );
3131
log( '%f', 3.14 );
3232
log( '%.2f', 4.13 );
3333
log( '%o', { 'foo': 'bar' } );
34-
log( '%O', [ 1, 2, 3, 4 ] );
34+
log( '%O', [ 1, 2, 3, 4 ]);

0 commit comments

Comments
 (0)