File tree Expand file tree Collapse file tree 6 files changed +11
-5
lines changed
Adapters/Storage/Postgres Expand file tree Collapse file tree 6 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 15
15
},
16
16
"rules" : {
17
17
"indent" : [" error" , 2 ],
18
- "no-extra-boolean-cast" : [0 ],
19
- "no-console" : [0 ],
20
18
"linebreak-style" : [" error" , " unix" ],
21
- "no-empty" : 0
19
+ "no-empty" : [ " error " , { "allowEmptyCatch" : true }]
22
20
}
23
21
}
Original file line number Diff line number Diff line change @@ -1147,6 +1147,7 @@ export class PostgresStorageAdapter {
1147
1147
throw err ;
1148
1148
} ) ;
1149
1149
} ) ;
1150
+ /* eslint-disable no-console */
1150
1151
promises = promises . concat ( [
1151
1152
this . _client . any ( json_object_set_key ) . catch ( ( err ) => {
1152
1153
console . error ( err ) ;
@@ -1167,6 +1168,7 @@ export class PostgresStorageAdapter {
1167
1168
console . error ( err ) ;
1168
1169
} )
1169
1170
] ) ;
1171
+ /* eslint-enable no-console */
1170
1172
return Promise . all ( promises ) . then ( ( ) => {
1171
1173
debug ( `initialzationDone in ${ new Date ( ) . getTime ( ) - now } ` ) ;
1172
1174
} , ( ) => { } ) ;
Original file line number Diff line number Diff line change @@ -306,7 +306,9 @@ class ParseServer {
306
306
if ( ! process . env . TESTING ) {
307
307
process . on ( 'uncaughtException' , ( err ) => {
308
308
if ( err . code === "EADDRINUSE" ) { // user-friendly message for this common error
309
+ /* eslint-disable no-console */
309
310
console . error ( `Unable to listen on port ${ err . port } . The port is already in use.` ) ;
311
+ /* eslint-enable no-console */
310
312
process . exit ( 0 ) ;
311
313
} else {
312
314
throw err ;
Original file line number Diff line number Diff line change
1
+ /* eslint-disable no-console */
1
2
import express from 'express' ;
2
3
import { ParseServer } from '../index' ;
3
4
import definitions from './definitions/parse-server' ;
@@ -133,5 +134,4 @@ runner({
133
134
}
134
135
} )
135
136
136
-
137
-
137
+ /* eslint-enable no-console */
Original file line number Diff line number Diff line change
1
+ /* eslint-disable no-console */
1
2
import { Command } from 'commander' ;
2
3
import path from 'path' ;
3
4
let _definitions ;
@@ -124,3 +125,4 @@ Command.prototype.getOptions = function() {
124
125
}
125
126
126
127
export default new Command ( ) ;
128
+ /* eslint-enable no-console */
Original file line number Diff line number Diff line change @@ -10,7 +10,9 @@ function logStartupOptions(options) {
10
10
if ( typeof value === 'object' ) {
11
11
value = JSON . stringify ( value ) ;
12
12
}
13
+ /* eslint-disable no-console */
13
14
console . log ( `${ key } : ${ value } ` ) ;
15
+ /* eslint-enable no-console */
14
16
}
15
17
}
16
18
You can’t perform that action at this time.
0 commit comments