migrate eslint config to new format required since 9.0.0

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2025-12-15 22:55:44 +01:00
parent d82a614b83
commit a198dbc46d
22 changed files with 134 additions and 72 deletions

View File

@@ -82,7 +82,7 @@ export class Util {
let url;
try {
url = new URL(urlStr);
} catch (e) {
} catch {
return false;
}
return url.protocol === 'http:' || url.protocol === 'https:';
@@ -115,10 +115,10 @@ export class Util {
};
}
public static isDirectory(p) {
public static isDirectory(p: string) {
try {
return fs.lstatSync(p).isDirectory();
} catch (_) {
} catch {
// noop
}
return false;