mirror of
https://github.com/J3vb/OwnCord.git
synced 2026-09-03 03:50:00 +03:00
The Client Typecheck & Test CI job was failing on the prettier format check. Two real root causes, fixed properly: 1. prettier endOfLine was set to 'crlf' but the repo stores files with LF (no .gitattributes forcing eol), so 'prettier --check' failed on 292 files on the Linux CI runner. Set endOfLine to 'lf' to match the on-disk reality. Also reformat the 2 files (pluginBridge.ts, solidAdapter.ts) that had genuine style issues. 2. 15 'eslint-disable-next-line' comments targeted oxlint-only rules (no-await-in-loop, no-unassigned-vars) that ESLint does not enable, so ESLint reported them as 'Unused eslint-disable directive' warnings. Switched the directive prefix to 'oxlint-disable-next-line' — oxlint still honors them (its native syntax), and ESLint no longer parses them as eslint directives, so the warnings are gone without suppressing the safety check or removing the directives that oxlint actually relies on. Verified locally: oxlint, tsc --noEmit, eslint, prettier --check, and npm audit --audit-level=high all exit 0.
79 lines
2.5 KiB
JSON
79 lines
2.5 KiB
JSON
{
|
|
"name": "owncord-client",
|
|
"private": true,
|
|
"version": "1.0.0",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "tsc -p tsconfig.build.json && vite build",
|
|
"preview": "vite preview",
|
|
"tauri": "tauri",
|
|
"test": "vitest run",
|
|
"test:unit": "vitest run tests/unit",
|
|
"test:integration": "vitest run tests/integration",
|
|
"test:e2e": "playwright test",
|
|
"test:e2e:prod": "npm run build && playwright test --config playwright.config.prod.ts",
|
|
"test:e2e:native": "playwright test --config playwright.config.native.ts",
|
|
"test:e2e:ui": "playwright test --ui",
|
|
"test:watch": "vitest",
|
|
"test:coverage": "vitest run --coverage",
|
|
"test:browser": "vitest run --config vitest.config.browser.ts",
|
|
"typecheck": "tsc --noEmit",
|
|
"typecheck:build": "tsc -p tsconfig.build.json --noEmit",
|
|
"lint": "oxlint src/ && eslint src/",
|
|
"lint:fix": "eslint src/ --fix",
|
|
"lint:ox": "oxlint src/",
|
|
"format": "prettier --write \"src/**/*.ts\" \"tests/**/*.ts\"",
|
|
"format:check": "prettier --check \"src/**/*.ts\" \"tests/**/*.ts\"",
|
|
"knip": "knip",
|
|
"test:mutate": "stryker run",
|
|
"test:mutate:dry": "stryker run --dryRunOnly"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^9.39.4",
|
|
"@playwright/test": "^1",
|
|
"@solidjs/testing-library": "^0.8.10",
|
|
"@stryker-mutator/core": "^9.6.0",
|
|
"@stryker-mutator/typescript-checker": "^9.6.0",
|
|
"@stryker-mutator/vitest-runner": "^9.6.0",
|
|
"@tauri-apps/cli": "^2",
|
|
"@vitest/browser": "^3.2.4",
|
|
"@vitest/coverage-v8": "^3",
|
|
"eslint": "^9.39.4",
|
|
"jsdom": "^29.0.0",
|
|
"knip": "^6.1.1",
|
|
"oxlint": "^1.58.0",
|
|
"prettier": "^3.8.1",
|
|
"typescript": "^5.7",
|
|
"typescript-eslint": "^8.58.0",
|
|
"vite": "^6",
|
|
"vite-plugin-solid": "^2.11.0",
|
|
"vitest": "^3"
|
|
},
|
|
"prettier": {
|
|
"singleQuote": false,
|
|
"semi": true,
|
|
"trailingComma": "all",
|
|
"printWidth": 100,
|
|
"tabWidth": 2,
|
|
"arrowParens": "always",
|
|
"endOfLine": "lf"
|
|
},
|
|
"dependencies": {
|
|
"@jitsi/rnnoise-wasm": "^0.2.1",
|
|
"@tauri-apps/api": "^2.10.1",
|
|
"@tauri-apps/plugin-dialog": "^2.6.0",
|
|
"@tauri-apps/plugin-fs": "^2.4.5",
|
|
"@tauri-apps/plugin-global-shortcut": "^2",
|
|
"@tauri-apps/plugin-http": "^2.5.7",
|
|
"@tauri-apps/plugin-notification": "^2",
|
|
"@tauri-apps/plugin-opener": "^2.5.3",
|
|
"@tauri-apps/plugin-process": "^2.3.1",
|
|
"@tauri-apps/plugin-store": "^2",
|
|
"@tauri-apps/plugin-updater": "^2.10.0",
|
|
"livekit-client": "^2.18.0",
|
|
"solid-js": "^1.9.3",
|
|
"zod": "^4.3.6"
|
|
}
|
|
}
|