chore: format

This commit is contained in:
PalmDevs 2025-04-03 23:00:51 +07:00
parent 39ce6ee84b
commit c67b1f5821
No known key found for this signature in database
GPG key ID: 6FAE8F8677ACA8BA
8 changed files with 16 additions and 24 deletions

View file

@ -3,8 +3,8 @@ import './preinit'
import './patches/prevent-immutablize'
import './patches/proxy'
import { getErrorStack } from '@revenge-mod/utils/errors'
import { onModuleInitialized } from '@revenge-mod/modules/metro/subscriptions'
import { getErrorStack } from '@revenge-mod/utils/errors'
import { logger } from './shared'

View file

@ -22,4 +22,4 @@
"default": "./src/metro/_internal.ts"
}
}
}
}

View file

@ -13,4 +13,4 @@
"default": "./src/index.ts"
}
}
}
}

View file

@ -1,9 +1,9 @@
import {
type HookNode,
type PatchedFunctionProxyState,
createPatchedFunctionProxy,
patchedFunctionProxyStates,
unproxy,
type HookNode,
type PatchedFunctionProxyState,
} from '../_internal'
function unpatchAfter<T extends UnknownFunction>(

View file

@ -1,9 +1,9 @@
import {
type HookNode,
type PatchedFunctionProxyState,
createPatchedFunctionProxy,
patchedFunctionProxyStates,
unproxy,
type HookNode,
type PatchedFunctionProxyState,
} from '../_internal'
function unpatchBefore<T extends UnknownFunction>(

View file

@ -1,11 +1,11 @@
import {
type FunctionProxyState,
type InsteadHookNode,
type PatchedFunctionProxyState,
createPatchedFunctionProxy,
patchedFunctionProxyHandler,
patchedFunctionProxyStates,
unproxy,
type FunctionProxyState,
type InsteadHookNode,
type PatchedFunctionProxyState,
} from '../_internal'
const insteadHookProxyHandler = {

View file

@ -24,13 +24,6 @@
"react-native": "0.76.6",
"typescript": "^5.7.3"
},
"workspaces": [
"lib/*",
"plugins/*"
],
"trustedDependencies": [
"@biomejs/biome",
"@parcel/watcher",
"@swc/core"
]
}
"workspaces": ["lib/*", "plugins/*"],
"trustedDependencies": ["@biomejs/biome", "@parcel/watcher", "@swc/core"]
}

View file

@ -7,22 +7,21 @@
"moduleDetection": "force",
"jsx": "react-jsx",
"allowJs": true,
// Bundler mode
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"verbatimModuleSyntax": true,
"noEmit": true,
// Best practices
"strict": true,
"skipLibCheck": true,
"noFallthroughCasesInSwitch": true,
// Some stricter flags (disabled by default)
"noUnusedLocals": false,
"noUnusedParameters": false,
"noPropertyAccessFromIndexSignature": false
"noPropertyAccessFromIndexSignature": false,
// Other options
"types": []
},
"exclude": ["scripts/**"]
}