Skip to content
This repository was archived by the owner on Feb 28, 2019. It is now read-only.

Commit d61f22d

Browse files
author
MuRye
committed
lint fix
1 parent 1ef9a52 commit d61f22d

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@
1313
"type": "git",
1414
"url": "git+https://github.com/D01T/Avoido.git"
1515
},
16-
"keywords": ["online", "web-game"],
16+
"keywords": [
17+
"online",
18+
"web-game"
19+
],
1720
"contributors": [
1821
{
1922
"name": "Astro36",
@@ -50,7 +53,7 @@
5053
"socket.io": "^2.0.3"
5154
},
5255
"devDependencies": {
53-
"eslint": "^4.3.0",
56+
"eslint": "^4.4.1",
5457
"eslint-config-airbnb-base": "^11.3.1",
5558
"eslint-plugin-import": "^2.7.0"
5659
}

src/game/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,11 @@ class Game {
3737
// entityName: string
3838
// }
3939
this.connection.send('remove', {
40-
entityName
40+
entityName,
4141
});
4242
break;
43+
default:
44+
break;
4345
}
4446
}
4547
});

src/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const Game = require('./game');
99

1010
const root = path.join(__dirname, '../');
1111
const app = new Koa();
12-
const port = process.env.PORT || 4000
12+
const port = process.env.PORT || 4000;
1313
const pug = new Pug({
1414
viewPath: path.join(root, 'view/'),
1515
app,
@@ -24,6 +24,6 @@ app
2424
.use(async (ctx, next) => {
2525
ctx.body = pug.render('index');
2626
})
27-
.use(serve(path.join('..', 'public'),))
27+
.use(serve(path.join('..', 'public')));
2828

2929
app.listen(port, () => console.log(`Listening on port ${port}`));

0 commit comments

Comments
 (0)