fix: resolve tsconfig parsing issues (#88)

This commit is contained in:
2025-07-14 20:57:43 +03:00
committed by GitHub
parent c1bbce8b54
commit eb99c59225
6 changed files with 37 additions and 6 deletions

View File

@@ -21,6 +21,10 @@ Install dependencies and run the dev server with Yarn:
yarn install yarn install
yarn dev yarn dev
# check code before committing
yarn lint
yarn type-lint
# build the app # build the app
yarn build yarn build
``` ```

View File

@@ -10,8 +10,8 @@
"build-only": "vite build", "build-only": "vite build",
"type-check": "vue-tsc --build --force", "type-check": "vue-tsc --build --force",
"lint": "eslint . --fix", "lint": "eslint . --fix",
"type-lint": "ts-standard", "type-lint": "vue-tsc --noEmit -p tsconfig.lint.json",
"type-fix": "ts-standard --fix", "type-fix": "ts-standard --fix --project tsconfig.lint.json",
"format": "prettier --write src/ index.html .github/ .vscode/" "format": "prettier --write src/ index.html .github/ .vscode/"
}, },
"dependencies": { "dependencies": {

View File

@@ -12,6 +12,8 @@
"compilerOptions": { "compilerOptions": {
"composite": true, "composite": true,
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo", "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
"strict": true,
"strictNullChecks": true,
"baseUrl": ".", "baseUrl": ".",
"paths": { "paths": {
"@/*": [ "@/*": [

View File

@@ -1,5 +1,4 @@
{ {
"extends": "./tsconfig.node.json",
"include": [ "include": [
"src/**/*.ts", "src/**/*.ts",
"src/**/*.tsx", "src/**/*.tsx",
@@ -12,6 +11,14 @@
"node_modules" "node_modules"
], ],
"compilerOptions": { "compilerOptions": {
"lib": ["es2023"] "target": "ES2022",
"lib": ["es2023"],
"module": "ESNext",
"moduleResolution": "Bundler",
"strict": true,
"strictNullChecks": true,
"esModuleInterop": true,
"skipLibCheck": true,
"types": ["node"]
} }
} }

14
tsconfig.lint.json Normal file
View File

@@ -0,0 +1,14 @@
{
"extends": "./tsconfig.app.json",
"include": [
"env.d.ts",
"src/**/*",
"src/**/*.vue",
"eslint.config.mjs",
"vite.config.ts"
],
"compilerOptions": {
"strict": true,
"strictNullChecks": true
}
}

View File

@@ -1,5 +1,4 @@
{ {
"extends": "@tsconfig/node22/tsconfig.json",
"include": [ "include": [
"vite.config.*", "vite.config.*",
"vitest.config.*", "vitest.config.*",
@@ -8,12 +7,17 @@
"playwright.config.*" "playwright.config.*"
], ],
"compilerOptions": { "compilerOptions": {
"target": "ES2022",
"strict": true,
"strictNullChecks": true,
"esModuleInterop": true,
"skipLibCheck": true,
"moduleResolution": "Bundler",
"composite": true, "composite": true,
"noEmit": true, "noEmit": true,
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo", "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
"lib": ["es2023"], "lib": ["es2023"],
"module": "ESNext", "module": "ESNext",
"moduleResolution": "Bundler",
"types": [ "types": [
"node" "node"
] ]