build(monorepo): catalog, typecheck/lint задачи, унификация версий

- pnpm catalog: один typescript 6.0.3 и vitest 4.1.10 на весь монорепо
- задача turbo typecheck; tsc вынесен из build web (блокировал vite build)
- eslint-конфиги для api/db/shared (бэкенд не линтился)
- turbo test больше не зависит от ^build (тесты идут по исходникам)
- react-day-picker перенесён из web в ui (потребитель calendar.tsx)
- из web удалены неиспользуемые motion/@dnd-kit×4/react-virtual/date-fns
This commit is contained in:
Denozordec
2026-09-23 14:51:38 +07:00
parent e135150c2d
commit 3cef8c33c2
14 changed files with 355 additions and 571 deletions
+21
View File
@@ -0,0 +1,21 @@
import js from '@eslint/js'
import globals from 'globals'
import tseslint from 'typescript-eslint'
import { defineConfig, globalIgnores } from 'eslint/config'
export default defineConfig([
globalIgnores(['dist']),
{
files: ['**/*.ts'],
extends: [js.configs.recommended, tseslint.configs.recommended],
languageOptions: {
globals: globals.node,
},
rules: {
'@typescript-eslint/no-unused-vars': [
'error',
{ ignoreRestSiblings: true, argsIgnorePattern: '^_', varsIgnorePattern: '^_' },
],
},
},
])
+14 -5
View File
@@ -3,7 +3,10 @@
"version": "0.0.0",
"private": true,
"type": "module",
"files": ["dist", "package.json"],
"files": [
"dist",
"package.json"
],
"exports": {
".": {
"types": "./dist/index.d.ts",
@@ -14,14 +17,20 @@
"scripts": {
"build": "tsup src/index.ts --format esm --dts",
"dev": "tsup src/index.ts --format esm --dts --watch",
"test": "vitest run --passWithNoTests"
"test": "vitest run --passWithNoTests",
"lint": "eslint .",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"zod": "^4.4.3"
"zod": "catalog:"
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"eslint": "^10.7.0",
"globals": "^17.7.0",
"tsup": "^8.5.0",
"typescript": "^5.8.3",
"vitest": "^3.2.4"
"typescript": "catalog:",
"typescript-eslint": "^8.64.0",
"vitest": "catalog:"
}
}
+2 -1
View File
@@ -7,7 +7,8 @@
"skipLibCheck": true,
"declaration": true,
"outDir": "dist",
"rootDir": "src"
"rootDir": "src",
"ignoreDeprecations": "6.0"
},
"include": ["src"]
}