Skip to content

Commit ef348ea

Browse files
committed
style: automatic fixes for new ESLint rules
Signed-off-by: Kevin Locke <[email protected]>
1 parent 927aaf5 commit ef348ea

File tree

7 files changed

+15
-15
lines changed

7 files changed

+15
-15
lines changed

index.js

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

77
'use strict';
88

9-
const { execFile } = require('child_process');
9+
const { execFile } = require('node:child_process');
1010

1111
/** Options for {@link gitBranchIs}.
1212
*

test-bin/set-up-test-repos.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77

88
'use strict';
99

10-
const { mkdir, rm } = require('fs/promises');
11-
const path = require('path');
10+
const { mkdir, rm } = require('node:fs/promises');
11+
const path = require('node:path');
1212

13-
const git = require('../test-lib/git.js');
1413
const constants = require('../test-lib/constants.js');
14+
const git = require('../test-lib/git.js');
1515

1616
// Local copy of shared constants
1717
const {

test-lib/assert-match.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 assert = require('assert').ok;
8+
const assert = require('node:assert').ok;
99

1010
/** Asserts that a value matches a regular expression.
1111
*

test-lib/constants.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

1010
module.exports = Object.freeze({
1111
/** Name of the current branch.

test-lib/git.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
'use strict';
77

8-
const { execFile } = require('child_process');
9-
const { promisify } = require('util');
8+
const { execFile } = require('node:child_process');
9+
const { promisify } = require('node:util');
1010

1111
const execFileP = promisify(execFile);
1212

test/git-branch-is-cmd.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@
55

66
'use strict';
77

8-
const assert = require('assert');
9-
const { execFile } = require('child_process');
8+
const assert = require('node:assert');
9+
const { execFile } = require('node:child_process');
10+
const path = require('node:path');
11+
1012
const escapeStringRegexp = require('escape-string-regexp');
11-
const path = require('path');
1213

14+
const gitBranchIsCmd = require('../bin/git-branch-is.js');
1315
const assertMatch = require('../test-lib/assert-match.js');
1416
const constants = require('../test-lib/constants.js');
15-
const gitBranchIsCmd = require('../bin/git-branch-is.js');
1617

1718
const isWindows = /^win/i.test(process.platform);
1819

test/git-branch-is.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,12 @@
55

66
'use strict';
77

8-
const assert = require('assert');
9-
const path = require('path');
8+
const assert = require('node:assert');
9+
const path = require('node:path');
1010

1111
// https://github.com/import-js/eslint-plugin-import/issues/2844
1212
// eslint-disable-next-line import/extensions
1313
const gitBranchIs = require('..');
14-
1514
const assertMatch = require('../test-lib/assert-match.js');
1615
const constants = require('../test-lib/constants.js');
1716

0 commit comments

Comments
 (0)