Skip to content

Commit 60f9068

Browse files
chore: fix JavaScript lint errors (issue #8559)
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: passed - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 974a2c4 commit 60f9068

File tree

3 files changed

+27
-24
lines changed
  • lib/node_modules/@stdlib
    • _tools
      • eslint/rules/jsdoc-ordered-list-marker-style/lib
      • lint/license-header-glob/lib
    • assert/is-enumerable-property/examples

3 files changed

+27
-24
lines changed

lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-ordered-list-marker-style/lib/main.js

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,29 @@ var DOPTS = {
3737
};
3838

3939

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

4265
/**
@@ -117,26 +140,6 @@ function main( context ) {
117140
}
118141
}
119142

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

lib/node_modules/@stdlib/_tools/lint/license-header-glob/lib/sync.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ var debug = logger( 'lint:license-header-glob:sync' );
5656
* };
5757
*
5858
* var errs = lint( opts );
59-
* // returns [...]
59+
* // returns []
6060
*/
6161
function lint( options ) {
6262
var names;

lib/node_modules/@stdlib/assert/is-enumerable-property/examples/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
var isEnumerableProperty = require( './../lib' );
2424

25-
var bool = isEnumerableProperty( { 'a': 'b' }, 'a' );
25+
var bool = isEnumerableProperty({ 'a': 'b' }, 'a');
2626
console.log( bool );
2727
// => true
2828

@@ -50,10 +50,10 @@ bool = isEnumerableProperty( void 0, 'a' );
5050
console.log( bool );
5151
// => false
5252

53-
bool = isEnumerableProperty( { 'null': false }, null );
53+
bool = isEnumerableProperty({ 'null': false }, null);
5454
console.log( bool );
5555
// => true
5656

57-
bool = isEnumerableProperty( { '[object Object]': false }, {} );
57+
bool = isEnumerableProperty({ '[object Object]': false }, {});
5858
console.log( bool );
5959
// => true

0 commit comments

Comments
 (0)