Skip to content

Commit 1541a10

Browse files
committed
Update GH actions linter to chalk v5 standards
1 parent 4391224 commit 1541a10

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tools/js-tools/lint-gh-actions.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
/* eslint-env node */
44

5-
const fs = require( 'fs' );
6-
const chalk = require( 'chalk' );
7-
const { glob } = require( 'glob' );
8-
const YAML = require( 'yaml' );
5+
import fs from 'fs';
6+
import chalk from 'chalk';
7+
import { glob } from 'glob';
8+
import YAML from 'yaml';
99

1010
const isCI = !! process.env.CI;
1111

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

0 commit comments

Comments
 (0)