refactor: Upgrade to eslint 9.19.0 (#9580)
This commit is contained in:
@@ -201,6 +201,7 @@ class ParseServer {
|
||||
Config.put(this.config);
|
||||
return this;
|
||||
} catch (error) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.error(error);
|
||||
this.config.state = 'error';
|
||||
throw error;
|
||||
@@ -370,6 +371,7 @@ class ParseServer {
|
||||
try {
|
||||
await this.start();
|
||||
} catch (e) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.error('Error on ParseServer.startApp: ', e);
|
||||
throw e;
|
||||
}
|
||||
@@ -482,6 +484,7 @@ class ParseServer {
|
||||
};
|
||||
const url = `${Parse.serverURL.replace(/\/$/, '')}/health`;
|
||||
if (!isValidHttpUrl(url)) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.warn(
|
||||
`\nWARNING, Unable to connect to '${Parse.serverURL}' as the URL is invalid.` +
|
||||
` Cloud code and push notifications may be unavailable!\n`
|
||||
@@ -543,6 +546,7 @@ function injectDefaults(options: ParseServerOptions) {
|
||||
if (options.appId) {
|
||||
const regex = /[!#$%'()*+&/:;=?@[\]{}^,|<>]/g;
|
||||
if (options.appId.match(regex)) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.warn(
|
||||
`\nWARNING, appId that contains special characters can cause issues while using with urls.\n`
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user