Skip to content

Commit 23fb457

Browse files
committed
nits
1 parent 7e67639 commit 23fb457

File tree

6 files changed

+11
-5
lines changed

6 files changed

+11
-5
lines changed

.eslintrc.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@
1515
},
1616
"rules": {
1717
"indent": ["error", 2],
18-
"no-extra-boolean-cast": [0],
19-
"no-console": [0],
2018
"linebreak-style": ["error", "unix"],
21-
"no-empty": 0
19+
"no-empty": ["error", { "allowEmptyCatch": true }]
2220
}
2321
}

src/Adapters/Storage/Postgres/PostgresStorageAdapter.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1147,6 +1147,7 @@ export class PostgresStorageAdapter {
11471147
throw err;
11481148
});
11491149
});
1150+
/* eslint-disable no-console */
11501151
promises = promises.concat([
11511152
this._client.any(json_object_set_key).catch((err) => {
11521153
console.error(err);
@@ -1167,6 +1168,7 @@ export class PostgresStorageAdapter {
11671168
console.error(err);
11681169
})
11691170
]);
1171+
/* eslint-enable no-console */
11701172
return Promise.all(promises).then(() => {
11711173
debug(`initialzationDone in ${new Date().getTime() - now}`);
11721174
}, () => {});

src/ParseServer.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,9 @@ class ParseServer {
306306
if (!process.env.TESTING) {
307307
process.on('uncaughtException', (err) => {
308308
if ( err.code === "EADDRINUSE" ) { // user-friendly message for this common error
309+
/* eslint-disable no-console */
309310
console.error(`Unable to listen on port ${err.port}. The port is already in use.`);
311+
/* eslint-enable no-console */
310312
process.exit(0);
311313
} else {
312314
throw err;

src/cli/parse-server.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable no-console */
12
import express from 'express';
23
import { ParseServer } from '../index';
34
import definitions from './definitions/parse-server';
@@ -133,5 +134,4 @@ runner({
133134
}
134135
})
135136

136-
137-
137+
/* eslint-enable no-console */

src/cli/utils/commander.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable no-console */
12
import { Command } from 'commander';
23
import path from 'path';
34
let _definitions;
@@ -124,3 +125,4 @@ Command.prototype.getOptions = function() {
124125
}
125126

126127
export default new Command();
128+
/* eslint-enable no-console */

src/cli/utils/runner.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ function logStartupOptions(options) {
1010
if (typeof value === 'object') {
1111
value = JSON.stringify(value);
1212
}
13+
/* eslint-disable no-console */
1314
console.log(`${key}: ${value}`);
15+
/* eslint-enable no-console */
1416
}
1517
}
1618

0 commit comments

Comments
 (0)