Skip to content

Commit

Permalink
chore: fix types and lint error
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <[email protected]>
  • Loading branch information
Innei committed Feb 4, 2025
1 parent ab0fbb6 commit a84a4d2
Show file tree
Hide file tree
Showing 10 changed files with 363 additions and 456 deletions.
2 changes: 1 addition & 1 deletion apps/main/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,4 @@
"electron-devtools-installer": "4.0.0",
"hono": "4.6.13"
}
}
}
7 changes: 6 additions & 1 deletion apps/main/src/lib/cleaner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,13 @@ import { getMainWindow } from "~/window"
import { t } from "./i18n"
import { store, StoreKey } from "./store"

const esModuleInterop = (module: any) => {
return module.default || module
}
const require = createRequire(import.meta.url)
const fastFolderSize = require("fast-folder-size") as any as typeof import("fast-folder-size")
const fastFolderSize = esModuleInterop(
require("fast-folder-size"),
) as typeof import("fast-folder-size").default

export const clearAllDataAndConfirm = async () => {
const win = getMainWindow()
Expand Down
1 change: 0 additions & 1 deletion apps/main/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export default defineProject({
},

plugins: [
// @ts-expect-error
tsconfigPath({
projects: ["./tsconfig.json"],
}),
Expand Down
2 changes: 1 addition & 1 deletion apps/mobile/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"expo-secure-store": "^14.0.1",
"expo-sharing": "~13.0.1",
"expo-splash-screen": "~0.29.21",
"expo-sqlite": "15.0.6",
"expo-sqlite": "15.1.1",
"expo-status-bar": "~2.0.1",
"expo-symbols": "~0.2.1",
"expo-system-ui": "~4.0.7",
Expand Down
3 changes: 0 additions & 3 deletions apps/renderer/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export default defineProject({
setupFiles: [resolve(__dirname, "./setup-file.ts")],
environment: "happy-dom",
includeSource: [resolve(__dirname, ".")],
dom: true,
},

define: {
Expand All @@ -31,9 +30,7 @@ export default defineProject({
},

plugins: [
// @ts-expect-error
astPlugin,
// @ts-expect-error
tsconfigPath({
projects: ["./tsconfig.json"],
}),
Expand Down
3 changes: 1 addition & 2 deletions configs/vite.render.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ export const viteRenderBaseConfig = {
disable: !isCI,
bundleSizeOptimizations: {
excludeDebugStatements: true,
// Only relevant if you added `browserTracingIntegration`
excludePerformanceMonitoring: true,

// Only relevant if you added `replayIntegration`
excludeReplayIframe: true,
excludeReplayShadowDom: true,
Expand Down
1 change: 1 addition & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export default defineConfig(
"apps/mobile/android/**",
"apps/mobile/ios/**",
"apps/mobile/.expo",
"apps/mobile/native/build/**",
],
preferESM: false,
tailwindCSS: {
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@
"electron": "33.2.0",
"esbuild": "npm:esbuild@^0.24.2",
"expo-modules-core": "npm:[email protected]",
"expo-sqlite": "npm:[email protected]",
"is-core-module": "npm:@nolyfill/is-core-module@^1",
"isarray": "npm:@nolyfill/isarray@^1",
"lightningcss": "npm:lightningcss@^1.29.1",
Expand Down
3 changes: 1 addition & 2 deletions packages/utils/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default defineProject({
test: {
globals: true,
includeSource: [resolve(__dirname, ".")],
dom: true,
environment: "happy-dom",
},

define: {
Expand All @@ -27,7 +27,6 @@ export default defineProject({
},

plugins: [
// @ts-expect-error
tsconfigPath({
projects: ["./tsconfig.json"],
}),
Expand Down
796 changes: 351 additions & 445 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

0 comments on commit a84a4d2

Please sign in to comment.