Skip to content
Closed
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
e7e8649
Create beep.js
SuYaSh-PaThAk04 Sep 25, 2025
ea32fcb
Create beep.js
SuYaSh-PaThAk04 Sep 25, 2025
38fa07e
Delete tools/make/lib/lint/javascript/beep.js
SuYaSh-PaThAk04 Sep 25, 2025
1cb0826
Merge branch 'stdlib-js:develop' into develop
SuYaSh-PaThAk04 Sep 26, 2025
23a2b4f
Update eslint.mk
SuYaSh-PaThAk04 Sep 26, 2025
2bd08ee
Delete beep.js
SuYaSh-PaThAk04 Sep 26, 2025
6d15877
Merge branch 'stdlib-js:develop' into develop
SuYaSh-PaThAk04 Sep 29, 2025
0185527
Merge branch 'stdlib-js:develop' into develop
SuYaSh-PaThAk04 Oct 23, 2025
9f8fca9
Add self-import to index.js for linting compliance
SuYaSh-PaThAk04 Oct 23, 2025
0878f6b
Update main.js
SuYaSh-PaThAk04 Oct 23, 2025
3ee6f99
Fix argument handling in async while function
SuYaSh-PaThAk04 Oct 23, 2025
662db12
Simplify linting logic in eslint.mk
SuYaSh-PaThAk04 Oct 23, 2025
c3839bf
Correct echo command in eslint.mk
SuYaSh-PaThAk04 Oct 23, 2025
a794162
Merge branch 'stdlib-js:develop' into develop
SuYaSh-PaThAk04 Nov 7, 2025
b3b438a
Fix JavaScript lint errors #8294
SuYaSh-PaThAk04 Nov 7, 2025
220f0ed
Update main.js
SuYaSh-PaThAk04 Nov 7, 2025
cbbe8b1
Fix indentation and formatting in main.js
SuYaSh-PaThAk04 Nov 7, 2025
77cba4d
Fix formatting issue in main.js
SuYaSh-PaThAk04 Nov 7, 2025
02fa6a7
Fix argument length check in main.js
SuYaSh-PaThAk04 Nov 7, 2025
ab21431
Merge branch 'develop' into sss
SuYaSh-PaThAk04 Nov 7, 2025
c335f53
Update main.js
SuYaSh-PaThAk04 Nov 7, 2025
9018d6f
Update main.js
SuYaSh-PaThAk04 Nov 7, 2025
a41e2fc
Update main.js
SuYaSh-PaThAk04 Nov 7, 2025
857e43e
Update main.js
SuYaSh-PaThAk04 Nov 7, 2025
911053a
Update main.js
SuYaSh-PaThAk04 Nov 7, 2025
12d1240
Update main.js
SuYaSh-PaThAk04 Nov 7, 2025
0750ccf
Update main.js
SuYaSh-PaThAk04 Nov 7, 2025
d8d6d75
Update main.js
SuYaSh-PaThAk04 Nov 7, 2025
e315bb2
Update main.js
SuYaSh-PaThAk04 Nov 7, 2025
14ca384
Update main.js
SuYaSh-PaThAk04 Nov 7, 2025
0921291
Update main.js
SuYaSh-PaThAk04 Nov 7, 2025
54dbf45
Update main.js
SuYaSh-PaThAk04 Nov 7, 2025
4385f8e
Update main.js
SuYaSh-PaThAk04 Nov 7, 2025
b107daf
Update main.js
SuYaSh-PaThAk04 Nov 7, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

// MODULES //

var execSync = require( 'child_process' ).execSync;

Check warning on line 23 in lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-license-header-year/lib/main.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Unexpected sync method: 'execSync'
var replace = require( '@stdlib/string/replace' );


Expand All @@ -39,8 +39,8 @@
* @returns {Object} validators
*/
function main( context ) {
var source = context.getSourceCode();
var filename = context.getFilename();
var source = context.getSourceCode();

return {
'Program': validate
Expand Down Expand Up @@ -71,8 +71,8 @@
*/
function fix( fixer ) {
var header = comment.value;
header = replace( header, RE_COPYRIGHT, 'Copyright (c) '+expected+' The Stdlib Authors.' );
return fixer.replaceTextRange( comment.range, '/*'+header+'*/' );
header = replace( header, RE_COPYRIGHT, 'Copyright (c) ' + expected + ' The Stdlib Authors.' );
return fixer.replaceTextRange( comment.range, '/*' + header + '*/' );
}
}

Expand Down Expand Up @@ -104,10 +104,14 @@
});
expected = expected.split( '-' )[ 0 ];
if ( year !== expected ) {
report( 'Expected year to be '+expected+' and not '+year, comment, expected );
report( 'Expected year to be ' + expected + ' and not ' + year, comment, expected );
}
} catch ( err ) {
// Do nothing if unable to determine the year the file was created (e.g., if the file is not tracked yet by `git`).
// Intentionally ignoring git errors (e.g., file not yet tracked).
// Referencing `err` satisfies ESLint and preserves debuggability if needed.
if ( process.env.DEBUG ) { // eslint-disable-line node/no-process-env
console.error( err ); // eslint-disable-line no-console
}
}
}
}
Expand Down