Skip to content

Commit

Permalink
fix linter errors for new linter rules on master
Browse files Browse the repository at this point in the history
  • Loading branch information
addaleax authored and TimothyGu committed Jul 24, 2017
1 parent 23de46c commit 576bf43
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lib/internal/loader/Loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const ModuleWrap = process.binding('module_wrap').ModuleWrap;
const ModuleMap = require('internal/loader/ModuleMap');
const ModuleJob = require('internal/loader/ModuleJob');
const resolveRequestUrl = require('internal/loader/resolveRequestUrl');
const {Error} = global;
const { Error } = global;

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

Expand Down
2 changes: 1 addition & 1 deletion lib/internal/loader/ModuleJob.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const {SafeSet, SafePromise} = require('internal/safe_globals');
const { SafeSet, SafePromise } = require('internal/safe_globals');
const resolvedPromise = SafePromise.resolve();

class ModuleJob {
Expand Down
4 changes: 2 additions & 2 deletions lib/internal/loader/ModuleMap.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';
const ModuleJob = require('internal/loader/ModuleJob');
const {SafeMap} = require('internal/safe_globals');
const {TypeError} = global;
const { SafeMap } = require('internal/safe_globals');
const { TypeError } = global;

// Tracks the state of the loader-level module cache
class ModuleMap extends SafeMap {
Expand Down
6 changes: 3 additions & 3 deletions lib/internal/loader/resolveRequestUrl.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
'use strict';

const {URL} = require('url');
const { URL } = require('url');
const internalCJSModule = require('internal/module');
const NativeModule = require('native_module');
const Path = require('path');

const {ModuleWrap} = process.binding('module_wrap');
const { ModuleWrap } = process.binding('module_wrap');

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

const {Error} = global;
const { Error } = global;

const createDynamicModule = (exports, url = '', evaluate) => {
debug(
Expand Down
2 changes: 1 addition & 1 deletion lib/internal/loader/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const { URL } = require('url');
const CJSmodule = require('module');
const resolve = process.binding('module_wrap').resolve;
const {Error, JSON: {stringify: JSONStringify}} = global;
const { Error, JSON: { stringify: JSONStringify } } = global;

module.exports = (target, base) => {
target = `${target}`;
Expand Down

0 comments on commit 576bf43

Please sign in to comment.