Skip to content

Commit 2003ebe

Browse files
committed
chore: linting
1 parent c7633e1 commit 2003ebe

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

src/voyager.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import * as graphqlHTTP from 'express-graphql'
1313
import * as opn from 'opn'
1414
import { buildSchema } from 'graphql'
1515

16-
exports.handler = async function(context, argv) {
16+
exports.handler = async function (context, argv) {
1717
const config = await context.getProjectConfig()
1818
const schema = buildSchema(config.getSchemaSDL())
1919

@@ -28,7 +28,7 @@ exports.handler = async function(context, argv) {
2828

2929
app.use('/voyager', middleware({ endpointUrl: '/graphql' }))
3030

31-
const port = parseInt(argv.port) || 7000
31+
const port = parseInt(argv.port, 10) || 7000
3232
const listener = app.listen(port, () => {
3333
let host = listener.address().address
3434
if (host === '::') {

tslint.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@
44
"trailing-comma": [
55
true,
66
{
7-
"multiline": "always",
7+
"multiline": {
8+
"typeLiterals": "never"
9+
},
810
"singleline": "never"
911
}
10-
]
12+
],
13+
"space-before-function-paren": false
1114
}
1215
}

0 commit comments

Comments
 (0)