diff --git a/js/grunt/tasks/lint-all.ts b/js/grunt/tasks/lint-all.ts index 10c3cb28..b648f7a2 100644 --- a/js/grunt/tasks/lint-all.ts +++ b/js/grunt/tasks/lint-all.ts @@ -22,7 +22,7 @@ const brands = getBrands( repo ); */ export const lintAll = ( async () => { - const lintSuccess = await lint( getLintOptions( { repos: getPhetLibs( repo, brands ) } ) ); + const lintSuccess = await lint( getPhetLibs( repo, brands ), getLintOptions() ); // Output results on errors. if ( !lintSuccess ) { diff --git a/js/scripts/hook-pre-commit-task.ts b/js/scripts/hook-pre-commit-task.ts index 651a2f46..9e4663cc 100644 --- a/js/scripts/hook-pre-commit-task.ts +++ b/js/scripts/hook-pre-commit-task.ts @@ -43,7 +43,7 @@ const repo = getArg( 'repo' ); // Run lint tests if they exist in the checked-out SHAs. // lint() automatically filters out non-lintable repos - const lintSuccess = await lint( { repos: [ repo ] } ); + const lintSuccess = await lint( [ repo ] ); outputToConsole && console.log( `Linting had ${lintSuccess ? 'no ' : ''}errors.` ); process.exit( lintSuccess ? 0 : 1 ); }