Skip to content

Commit

Permalink
Update GH actions linter to chalk v5 standards
Browse files Browse the repository at this point in the history
  • Loading branch information
kraftbj committed Jan 9, 2025
1 parent 4391224 commit 1541a10
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tools/js-tools/lint-gh-actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

/* eslint-env node */

const fs = require( 'fs' );
const chalk = require( 'chalk' );
const { glob } = require( 'glob' );
const YAML = require( 'yaml' );
import fs from 'fs';
import chalk from 'chalk';
import { glob } from 'glob';
import YAML from 'yaml';

const isCI = !! process.env.CI;

Expand All @@ -31,7 +31,7 @@ process.argv.slice( 2 ).forEach( arg => {
const debug = msg => {
if ( verbose ) {
// Grey doesn't work well in GitHub's output
console.log( chalk[ isCI ? 'blue' : 'gray' ]( msg ) );
console.log( isCI ? chalk.blue( msg ) : chalk.gray( msg ) );
}
};
const error = ( file, line, msg, hint ) => {
Expand Down

0 comments on commit 1541a10

Please sign in to comment.