Skip to content

Commit 386f756

Browse files
committed
Update devDependencies and require Node.js >= 14.18
1 parent e445d4b commit 386f756

19 files changed

Lines changed: 1034 additions & 534 deletions

lib/getThreads.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
const os = require('os');
3+
const os = require('node:os');
44

55
const THREADS = Math.max(os.cpus().length - 1, 1);
66

@@ -11,16 +11,21 @@ function getThreads({ threads }) {
1111
case '':
1212
case true:
1313
case null:
14-
case undefined:
14+
case undefined: {
1515
return THREADS;
16+
}
17+
1618
case 0:
1719
case 1:
18-
case false:
20+
case false: {
1921
return 1;
20-
default:
22+
}
23+
24+
default: {
2125
if (threads > 1) {
2226
return threads;
2327
}
28+
}
2429
}
2530
}
2631

lib/htmllint.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22

3-
const path = require('path');
4-
const { execFile } = require('child_process');
3+
const path = require('node:path');
4+
const { execFile } = require('node:child_process');
55
const async = require('async');
66
const chunkify = require('./chunkify.js');
77
const getThreads = require('./getThreads.js');

lib/javaDetect.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
const { execFile } = require('child_process');
3+
const { execFile } = require('node:child_process');
44

55
function javaDetect(callback) {
66
execFile('java', ['-version'], (error, stdout, stderr) => {

lib/processErrorMessages.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
const path = require('path');
3+
const path = require('node:path');
44
const { normalizeQuotationMarks } = require('./util.js');
55

66
const processedMessages = (errors, config) => {

lib/reporters.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22

3-
const path = require('path');
4-
const process = require('process');
3+
const path = require('node:path');
4+
const process = require('node:process');
55
const picocolors = require('picocolors');
66

77
// Default Grunt reporter

lib/reporters/checkstyle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
'use strict';
1010

11-
const path = require('path');
11+
const path = require('node:path');
1212
const { encode } = require('../util.js');
1313

1414
function checkstyle(results) {

lib/reporters/junit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
'use strict';
77

8-
const path = require('path');
8+
const path = require('node:path');
99
const { encode } = require('../util.js');
1010

1111
function junit(results) {

0 commit comments

Comments
 (0)