Skip to content

Commit

Permalink
style: automatic fixes for new ESLint rules
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Locke <[email protected]>
  • Loading branch information
kevinoid committed Sep 15, 2023
1 parent ed4ac80 commit 40e723d
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
5 changes: 3 additions & 2 deletions benchmark/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@

'use strict';

const { readFile } = require('node:fs');
const { promisify } = require('node:util');

const Benchmark = require('benchmark');
const { readFile } = require('fs');
const { promisify } = require('util');

// Note: fs.promises.readFile only accepts FileHandle, not number FD
const readFileP = promisify(readFile);
Expand Down
3 changes: 2 additions & 1 deletion benchmark/to-json-no-exponential.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@

'use strict';

const assert = require('assert');
const assert = require('node:assert');

const jsonStringifyRaw = require('json-stringify-raw');

function getFixed(value) {
Expand Down
2 changes: 1 addition & 1 deletion bin/json-replace-exponentials.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@

'use strict';

const jsonReplaceExponentials = require('..');
const packageJson = require('../package.json');
// https://github.com/import-js/eslint-plugin-import/issues/2844
// eslint-disable-next-line import/extensions
const jsonReplaceExponentials = require('..');

/** Options for command entry points.
*
Expand Down
4 changes: 2 additions & 2 deletions test/bin/json-replace-exponentials.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

'use strict';

const assert = require('assert');
const { PassThrough } = require('stream');
const assert = require('node:assert');
const { PassThrough } = require('node:stream');

const jreBin = require('../../bin/json-replace-exponentials.js');
const packageJson = require('../../package.json');
Expand Down
2 changes: 1 addition & 1 deletion test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

'use strict';

const assert = require('assert');
const assert = require('node:assert');

// https://github.com/import-js/eslint-plugin-import/issues/2844
// eslint-disable-next-line import/extensions
Expand Down

0 comments on commit 40e723d

Please sign in to comment.