Skip to content

Commit 206882b

Browse files
committed
chore: lint
1 parent 9922bb8 commit 206882b

4 files changed

Lines changed: 8 additions & 5 deletions

File tree

bin/console.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
'use strict';
44

5+
const process = require('process');
56
const {argv} = process;
67
const argvLast = argv
78
.slice()

server/console.js

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

3-
const isFn = (a) => typeof a === 'function';
3+
const process = require('process');
44
const io = require('socket.io');
55
const tildify = require('tildify');
66
const debug = require('debug');
77
const wraptile = require('wraptile');
8-
8+
const isFn = (a) => typeof a === 'function';
99
const logConsole = debug('console');
1010
const logClients = debug('console:clients');
1111
const rmLastSlash = (a) => a.replace(/\/$/, '') || '/';

server/index.js

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

3-
const isUndefined = (a) => typeof a === 'undefined';
4-
const isFn = (a) => typeof a === 'function';
3+
const process = require('process');
54
const path = require('path');
65
const spawnify = require('spawnify');
76
const rendy = require('rendy');
@@ -13,6 +12,8 @@ const {Router} = require('express');
1312
const modules = require('../json/modules');
1413

1514
const Console = require('./console');
15+
const isFn = (a) => typeof a === 'function';
16+
const isUndefined = (a) => typeof a === 'undefined';
1617
const konsoleFn = currify(_konsoleFn);
1718
const modulesFn = currify(_modulesFn);
1819
const addLastSlash = (a) => a.at(-1) === '/' ? a : `${a}/`;

webpack.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
'use strict';
22

33
const path = require('path');
4+
5+
const {env} = require('process');
46
const dir = './client';
5-
const {env} = process;
67
const isDev = env.NODE_ENV === 'development';
78

89
const dist = path.resolve(__dirname, 'dist');

0 commit comments

Comments
 (0)