Skip to content

Commit e2260e3

Browse files
committed
chore: lint
1 parent 421d148 commit e2260e3

File tree

4 files changed

+27
-30
lines changed

4 files changed

+27
-30
lines changed

.gitignore

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1+
*.swp
2+
*.log
3+
*.lock
4+
5+
.idea
6+
17
package-lock.json
8+
29
dist
310
dist-dev
4-
yarn-error.log
5-
611
node_modules
7-
npm-debug.log
812
modules/jquery/external
913
modules/jquery/dist
1014
modules/jquery/src
11-
!modules/jquery/dist/jquery.slim.min.js
12-
1315
modules/jq-console/lib
1416
modules/jq-console/src
1517
modules/jq-console/test
16-
!modules/jq-console/jqconsole.min.js
17-
1818
server_
19-
*.swp
20-
21-
.idea
2219
coverage
20+
21+
!modules/jquery/dist/jquery.slim.min.js
22+
!modules/jq-console/jqconsole.min.js

.npmignore

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
1-
.*
1+
*.swp
2+
*.config.*
3+
*.log
4+
*.loc
25

3-
yarn-error.log
6+
.*
47

58
webpack.config.js
69

710
modules/jquery/external
811
modules/jquery/dist
912
modules/jquery/src
10-
!modules/jquery/dist/jquery.min.js
11-
1213
modules/jq-console/lib
1314
modules/jq-console/src
1415
modules/jq-console/test
15-
!modules/jq-console/jqconsole.min.js
16-
17-
*.swp
18-
1916
client
2017
coverage
21-
*.config.*
18+
19+
!modules/jquery/dist/jquery.min.js
20+
!modules/jq-console/jqconsole.min.js

bin/console.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,19 +38,19 @@ function start() {
3838
const server = http.createServer(app);
3939

4040
const port = process.env.PORT
41-
|| /* c9 */process.env.app_port
42-
|| /* nodester */process.env.VCAP_APP_PORT
43-
|| /* cloudfoundry */1337;
41+
|| /* c9 */process.env.app_port
42+
|| /* nodester */process.env.VCAP_APP_PORT
43+
|| /* cloudfoundry */1337;
4444

45-
const ip = process.env.IP || /* c9 */'0.0.0.0';
45+
const ip = process.env.IP || /* c9 */'0.0.0.0';
4646

4747
const online = false;
4848

4949
app
5050
.use('/', konsole({
51-
server,
52-
online,
53-
}))
51+
server,
52+
online,
53+
}))
5454
.use(express.static(DIR));
5555

5656
konsole.listen({

server/console.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ const cwd = (conNum) => (path) => {
2525
let Socket;
2626
let ConNum = -1;
2727

28-
export default
29-
30-
function Console(socket, options) {
28+
export default function Console(socket, options) {
3129
const o = options || {};
3230
const {prefixSocket = '/console'} = o;
3331

@@ -52,7 +50,7 @@ function Console(socket, options) {
5250
const reject = () => socket.emit('reject');
5351
socket.on('auth', auth(connection, reject));
5452
});
55-
};
53+
}
5654

5755
Console.getSocketPath = () => {
5856
return Socket.path();

0 commit comments

Comments
 (0)