workspace: apply eslint edits

This commit is contained in:
undefined committed 2025-03-21 09:48:17 +08:00
1 parent 040f7d8863
commit 0e7f5fe635
63 files changed
+47 -96

No files matched your search

+1 -1
View File
@@ -12,7 +12,7 @@ const pm2: typeof import('pm2') | null = (() => {
const p = path.resolve(dir, info);
if (p.startsWith('/nix')) return require(`${p.split('/bin')[0]}/lib/node_modules/pm2`);
// installed by yarn
return require(`${p.split('.bin')[0]}pm2`); // eslint-disable-line import/no-dynamic-require
return require(`${p.split('.bin')[0]}pm2`);
} catch (e) { }
}
return null;
-1
View File
@@ -39,7 +39,6 @@ export const sha1 = (content: string) => encrypt('sha1', content);
export const md5 = (content: string) => encrypt('md5', content);
export function folderSize(folderPath: string) {
// eslint-disable-next-line @typescript-eslint/no-shadow
let size = 0;
const _next = function a(p: string) {
if (p) {