infra: cleanup tsconfig and add typecheck to desktop #253

Merged
talksik merged 1 commits from add-typecheck into main 2026-06-09 17:47:48 +00:00
4 changed files with 7 additions and 5 deletions
+3
View File
@@ -59,6 +59,9 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: yarn install --immutable run: yarn install --immutable
- name: Typecheck
run: yarn typecheck
- name: Run Code Linter - name: Run Code Linter
run: yarn lint run: yarn lint
+1 -2
View File
@@ -6,7 +6,6 @@ import { MakerRpm } from '@electron-forge/maker-rpm';
import { VitePlugin } from '@electron-forge/plugin-vite'; import { VitePlugin } from '@electron-forge/plugin-vite';
import { FusesPlugin } from '@electron-forge/plugin-fuses'; import { FusesPlugin } from '@electron-forge/plugin-fuses';
import { FuseV1Options, FuseVersion } from '@electron/fuses'; import { FuseV1Options, FuseVersion } from '@electron/fuses';
import type { SignToolOptions } from '@electron/windows-sign';
// Windows code signing via Azure Trusted Signing. Dormant unless the workflow // Windows code signing via Azure Trusted Signing. Dormant unless the workflow
// provisions the dlib + metadata file and exports these env vars, so local // provisions the dlib + metadata file and exports these env vars, so local
@@ -17,7 +16,7 @@ import type { SignToolOptions } from '@electron/windows-sign';
const windowsSign = process.env.AZURE_METADATA_JSON_PATH ? { const windowsSign = process.env.AZURE_METADATA_JSON_PATH ? {
debug: true, debug: true,
signToolPath: process.env.SIGNTOOL_PATH, signToolPath: process.env.SIGNTOOL_PATH,
hashes: ['sha256'] as SignToolOptions['hashes'], hashes: ['sha256'] as any, // eslint-disable-line @typescript-eslint/no-explicit-any
timestampServer: 'http://timestamp.acs.microsoft.com', timestampServer: 'http://timestamp.acs.microsoft.com',
signWithParams: [ signWithParams: [
'/v', '/v',
+1 -1
View File
@@ -17,7 +17,7 @@
"lint": "eslint --ext .ts,.tsx .", "lint": "eslint --ext .ts,.tsx .",
"format": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json,css,md}\"", "format": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json,css,md}\"",
"format:check": "prettier --check \"src/**/*.{ts,tsx,js,jsx,json,css,md}\"", "format:check": "prettier --check \"src/**/*.{ts,tsx,js,jsx,json,css,md}\"",
"compile": "npx tsc --noEmit 2>&1 | grep '^src/'", "typecheck": "npx tsc --noEmit",
"web:dev": "cross-env APP_ENV=dev vite --config vite.web.config.mts", "web:dev": "cross-env APP_ENV=dev vite --config vite.web.config.mts",
"web:build": "cross-env APP_ENV=prod vite build --config vite.web.config.mts", "web:build": "cross-env APP_ENV=prod vite build --config vite.web.config.mts",
"web:build:ci": "vite build --config vite.web.config.mts", "web:build:ci": "vite build --config vite.web.config.mts",
+2 -2
View File
@@ -1,14 +1,14 @@
{ {
"compilerOptions": { "compilerOptions": {
"target": "ESNext", "target": "ESNext",
"module": "commonjs", "module": "ESNext",
"allowJs": true, "allowJs": true,
"skipLibCheck": true, "skipLibCheck": true,
"esModuleInterop": true, "esModuleInterop": true,
"noImplicitAny": true, "noImplicitAny": true,
"sourceMap": true, "sourceMap": true,
"outDir": "dist", "outDir": "dist",
"moduleResolution": "node", "moduleResolution": "bundler",
"resolveJsonModule": true, "resolveJsonModule": true,
"jsx": "react-jsx", "jsx": "react-jsx",
"strict": true, "strict": true,