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 Nov 2, 2024
1 parent 57f5f44 commit 358fb0b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions benchmark/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ const readFileP = promisify(readFile);

// https://github.com/import-js/eslint-plugin-import/issues/2844
// eslint-disable-next-line import/extensions,n/no-unpublished-require
global.jsonReplaceExponentials = require('..');
global.toJsonNoExponential = require('./to-json-no-exponential.js');
globalThis.jsonReplaceExponentials = require('..');
globalThis.toJsonNoExponential = require('./to-json-no-exponential.js');

exports.createBenchmarkSuite =
function createBenchmarkSuite() {
Expand Down Expand Up @@ -85,8 +85,8 @@ function main(args, options, exit) {
{ encoding: 'utf8' },
)
.then((jsonStr) => {
global.jsonStr = jsonStr;
global.jsonValue = JSON.parse(jsonStr);
globalThis.jsonStr = jsonStr;
globalThis.jsonValue = JSON.parse(jsonStr);
return this.runSuite(this.createBenchmarkSuite(), options);
})
.then(
Expand Down

0 comments on commit 358fb0b

Please sign in to comment.