Skip to content

Commit 1e71623

Browse files
committed
Fix prettier conf
1 parent 5508db7 commit 1e71623

File tree

2 files changed

+19
-11
lines changed

2 files changed

+19
-11
lines changed

.prettierrc

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
{
2-
"singleQuote": true,
3-
"trailingComma": "es5",
4-
"tabWidth": 4
2+
"arrowParens": "avoid",
3+
"bracketSpacing": true,
4+
"printWidth": 80,
5+
"quoteProps": "as-needed",
6+
"rangeStart": 0,
7+
"semi": true,
8+
"singleQuote": true,
9+
"tabWidth": 4,
10+
"trailingComma": "es5",
11+
"useTabs": false
512
}

bin/json-graphql-server.js

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ var HOST = process.env.NODE_HOST || 'localhost';
1212
var app = express();
1313

1414
process.argv.forEach((arg, index) => {
15-
// allow a custom port via CLI
16-
if (arg === '--p' && process.argv.length > index + 1) {
17-
PORT = process.argv[index + 1];
18-
}
15+
// allow a custom port via CLI
16+
if (arg === '--p' && process.argv.length > index + 1) {
17+
PORT = process.argv[index + 1];
18+
}
1919

20-
if (arg === '--h' && process.argv.length > index + 1) {
21-
HOST = process.argv[index + 1];
22-
}
20+
if (arg === '--h' && process.argv.length > index + 1) {
21+
HOST = process.argv[index + 1];
22+
}
2323
});
2424

2525
app.use(cors());
@@ -29,5 +29,6 @@ var msg = `GraphQL server running with your data at http://${HOST}:${PORT}/`;
2929
console.log(msg); // eslint-disable-line no-console
3030

3131
process.on('unhandledRejection', (reason, p) => {
32-
console.log('Unhandled Rejection at: Promise', p, 'reason:', reason);
32+
// eslint-disable-next-line no-console
33+
console.log('Unhandled Rejection at: Promise', p, 'reason:', reason);
3334
});

0 commit comments

Comments
 (0)