refactor: Upgrade to eslint 9.19.0 (#9580)

This commit is contained in:
Daniel
2025-02-02 01:32:43 +11:00
committed by GitHub
parent 239e692145
commit 889dbb5aee
18 changed files with 1265 additions and 770 deletions

View File

@@ -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`
);