Skip to content

Commit 387160c

Browse files
chore: fix JavaScript lint errors
PR-URL: #10464 Closes: #10447 Co-authored-by: Philipp Burckhardt <pburckhardt@outlook.com> Reviewed-by: Philipp Burckhardt <pburckhardt@outlook.com> Signed-off-by: Philipp Burckhardt <pburckhardt@outlook.com>
1 parent 7f69289 commit 387160c

File tree

2 files changed

+21
-23
lines changed
  • lib/node_modules/@stdlib/_tools
    • eslint/rules/jsdoc-maximum-line-length/lib
    • makie/plugins/makie-view-cov/lib

2 files changed

+21
-23
lines changed

lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-maximum-line-length/lib/main.js

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -115,26 +115,6 @@ function main( context ) {
115115
}
116116
}
117117

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-
138118
/**
139119
* Reports an error message.
140120
*
@@ -151,6 +131,26 @@ function main( context ) {
151131
}
152132
}
153133

134+
/**
135+
* Copies AST node location info.
136+
*
137+
* @private
138+
* @param {Object} loc - AST node location
139+
* @returns {Object} copied location info
140+
*/
141+
function copyLocationInfo( loc ) {
142+
return {
143+
'start': {
144+
'line': loc.start.line,
145+
'column': loc.start.column
146+
},
147+
'end': {
148+
'line': loc.end.line,
149+
'column': loc.end.column
150+
}
151+
};
152+
}
153+
154154

155155
// MAIN //
156156

lib/node_modules/@stdlib/_tools/makie/plugins/makie-view-cov/lib/main.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,8 @@ function plugin( dir ) {
8989
opts = {};
9090
opts.cwd = dir;
9191

92-
args = new Array( 1 );
93-
9492
// Target:
95-
args[ 0 ] = 'view-cov';
93+
args = [ 'view-cov' ];
9694

9795
proc = spawn( 'make', args, opts );
9896
proc.on( 'error', onError );

0 commit comments

Comments
 (0)