mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
workspace: apply eslint edits
This commit is contained in:
63 files changed
+47
-96
No files matched your search
@@ -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;
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user