Skip to content

Commit b3b438a

Browse files
Fix JavaScript lint errors stdlib-js#8294
1 parent a794162 commit b3b438a

File tree

2 files changed

+8
-6
lines changed
  • lib/node_modules/@stdlib
    • _tools/eslint/rules/jsdoc-license-header-year/lib
    • utils/async/parallel/examples

2 files changed

+8
-6
lines changed

lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-license-header-year/lib/main.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ var rule;
3838
* @param {Object} context - ESLint context
3939
* @returns {Object} validators
4040
*/
41-
function main( context ) {
42-
var source = context.getSourceCode();
41+
function main(context) {
4342
var filename = context.getFilename();
44-
43+
var source = context.getSourceCode();
44+
4545
return {
4646
'Program': validate
4747
};
@@ -106,8 +106,9 @@ function main( context ) {
106106
if ( year !== expected ) {
107107
report( 'Expected year to be '+expected+' and not '+year, comment, expected );
108108
}
109-
} catch ( err ) {
110-
// Do nothing if unable to determine the year the file was created (e.g., if the file is not tracked yet by `git`).
109+
} catch {
110+
// Do nothing if unable to determine the year the file was created
111+
// (e.g., if the file is not tracked yet by `git`).
111112
}
112113
}
113114
}

lib/node_modules/@stdlib/utils/async/parallel/examples/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818

1919
'use strict';
2020

21-
var parallel = require( '@stdlib/utils/async/parallel' );
21+
22+
var parallel = require( '@stdlib/utils/async/parallel/lib/main.js' );
2223
// Lint rule requires the last require to be relative:
2324
require( './index.js' ); // no-op self import (satisfies lint rule)
2425

0 commit comments

Comments
 (0)