Skip to content

Commit

Permalink
Improve options for lint, see #1520
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Nov 9, 2024
1 parent 3743333 commit 145e093
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/grunt/tasks/lint-all.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {
Expand Down
2 changes: 1 addition & 1 deletion js/scripts/hook-pre-commit-task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
Expand Down

0 comments on commit 145e093

Please sign in to comment.