Skip to content

Commit 576bf43

Browse files
addaleaxTimothyGu
authored andcommitted
fix linter errors for new linter rules on master
1 parent 23de46c commit 576bf43

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

lib/internal/loader/Loader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const ModuleWrap = process.binding('module_wrap').ModuleWrap;
77
const ModuleMap = require('internal/loader/ModuleMap');
88
const ModuleJob = require('internal/loader/ModuleJob');
99
const resolveRequestUrl = require('internal/loader/resolveRequestUrl');
10-
const {Error} = global;
10+
const { Error } = global;
1111

1212
const pathToFileURL = (pathname) => `file://${pathname}/`;
1313

lib/internal/loader/ModuleJob.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 {SafeSet, SafePromise} = require('internal/safe_globals');
3+
const { SafeSet, SafePromise } = require('internal/safe_globals');
44
const resolvedPromise = SafePromise.resolve();
55

66
class ModuleJob {

lib/internal/loader/ModuleMap.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22
const ModuleJob = require('internal/loader/ModuleJob');
3-
const {SafeMap} = require('internal/safe_globals');
4-
const {TypeError} = global;
3+
const { SafeMap } = require('internal/safe_globals');
4+
const { TypeError } = global;
55

66
// Tracks the state of the loader-level module cache
77
class ModuleMap extends SafeMap {

lib/internal/loader/resolveRequestUrl.js

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

3-
const {URL} = require('url');
3+
const { URL } = require('url');
44
const internalCJSModule = require('internal/module');
55
const NativeModule = require('native_module');
66
const Path = require('path');
77

8-
const {ModuleWrap} = process.binding('module_wrap');
8+
const { ModuleWrap } = process.binding('module_wrap');
99

1010
const search = require('internal/loader/search');
1111
const asyncReadFile = require('util').promisify(require('fs').readFile);
@@ -14,7 +14,7 @@ const debug = require('util').debuglog('esm');
1414
const ArrayJoin = Function.call.bind(Array.prototype.join);
1515
const ArrayMap = Function.call.bind(Array.prototype.map);
1616

17-
const {Error} = global;
17+
const { Error } = global;
1818

1919
const createDynamicModule = (exports, url = '', evaluate) => {
2020
debug(

lib/internal/loader/search.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
const { URL } = require('url');
44
const CJSmodule = require('module');
55
const resolve = process.binding('module_wrap').resolve;
6-
const {Error, JSON: {stringify: JSONStringify}} = global;
6+
const { Error, JSON: { stringify: JSONStringify } } = global;
77

88
module.exports = (target, base) => {
99
target = `${target}`;

0 commit comments

Comments
 (0)