@@ -5,10 +5,10 @@ import process from 'node:process';
5
5
6
6
import arrify from 'arrify' ;
7
7
import ciParallelVars from 'ci-parallel-vars' ;
8
- import del from 'del' ;
8
+ import { deleteAsync } from 'del' ;
9
9
import figures from 'figures' ;
10
10
import yargs from 'yargs' ;
11
- import { hideBin } from 'yargs/helpers' ; // eslint-disable-line node /file-extension-in-import
11
+ import { hideBin } from 'yargs/helpers' ; // eslint-disable-line n /file-extension-in-import
12
12
13
13
import Api from './api.js' ;
14
14
import { chalk } from './chalk.js' ;
@@ -124,7 +124,7 @@ export default async function loadCli() { // eslint-disable-line complexity
124
124
// run AVA with the debug command, though it's allowed.
125
125
let activeInspector = false ;
126
126
try {
127
- const { default : inspector } = await import ( 'node:inspector' ) ; // eslint-disable-line node/no-unsupported-features/es-syntax
127
+ const { default : inspector } = await import ( 'node:inspector' ) ;
128
128
129
129
activeInspector = inspector . url ( ) !== undefined ;
130
130
} catch { }
@@ -242,11 +242,11 @@ export default async function loadCli() { // eslint-disable-line complexity
242
242
243
243
const chalkOptions = { level : 0 } ;
244
244
if ( combined . color !== false ) {
245
- const { supportsColor : { level} } = await import ( 'chalk' ) ; // eslint-disable-line node/no-unsupported-features/es-syntax, unicorn/import-style
245
+ const { supportsColor : { level} } = await import ( 'chalk' ) ; // eslint-disable-line unicorn/import-style
246
246
chalkOptions . level = level ;
247
247
}
248
248
249
- const { set : setChalk } = await import ( './chalk.js' ) ; // eslint-disable-line node/no-unsupported-features/es-syntax
249
+ const { set : setChalk } = await import ( './chalk.js' ) ;
250
250
setChalk ( chalkOptions ) ;
251
251
252
252
if ( confError ) {
@@ -262,7 +262,7 @@ export default async function loadCli() { // eslint-disable-line complexity
262
262
const cacheDir = path . join ( projectDir , 'node_modules' , '.cache' , 'ava' ) ;
263
263
264
264
try {
265
- const deletedFilePaths = await del ( '*' , { cwd : cacheDir } ) ;
265
+ const deletedFilePaths = await deleteAsync ( '*' , { cwd : cacheDir } ) ;
266
266
267
267
if ( deletedFilePaths . length === 0 ) {
268
268
console . log ( `\n${ chalk . green ( figures . tick ) } No cache files to remove` ) ;
0 commit comments