Skip to content

Commit

Permalink
ts
Browse files Browse the repository at this point in the history
  • Loading branch information
SeryiBaran committed May 10, 2023
1 parent 42ea75f commit 88a36eb
Show file tree
Hide file tree
Showing 5 changed files with 69 additions and 25 deletions.
22 changes: 18 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@
"@antfu/eslint-config": "^0.38.4",
"@iconify/tailwind": "^0.1.2",
"@tailwindcss/forms": "^0.5.3",
"@types/node": "^18.15.11",
"@tsconfig/node18": "^2.0.0",
"@types/node": "^18.16.6",
"@vitejs/plugin-vue": "^4.1.0",
"@vue/test-utils": "^2.3.2",
"@vue/tsconfig": "^0.3.2",
"autoprefixer": "^10.4.14",
"eslint": "^8.38.0",
"eslint-config-prettier": "^8.8.0",
Expand Down
26 changes: 26 additions & 0 deletions tsconfig.app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"extends": "@vue/tsconfig/tsconfig.dom.json",
"include": [
"env.d.ts",
"src/**/*",
"src/**/*.ts",
"src/**/*.json",
"src/**/*.vue"
],
"compilerOptions": {
"composite": true,
"baseUrl": ".",
"moduleResolution": "node",

"strict": true,
"esModuleInterop": true,
"resolveJsonModule": true,
"noUnusedLocals": true,
"strictNullChecks": true,
"forceConsistentCasingInFileNames": true,

"paths": {
"@/*": ["./src/*"]
}
}
}
28 changes: 8 additions & 20 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,11 @@
{
"compilerOptions": {
"baseUrl": ".",
"module": "ESNext",
"target": "es2016",
"lib": ["DOM", "ESNext"],
"strict": true,
"jsx": "preserve",
"esModuleInterop": true,
"skipLibCheck": true,
"moduleResolution": "node",
"resolveJsonModule": true,
"noUnusedLocals": true,
"strictNullChecks": true,
"allowJs": true,
"forceConsistentCasingInFileNames": true,
"paths": {
"@/*": ["./src/*"]
"files": [],
"references": [
{
"path": "./tsconfig.node.json"
},
{
"path": "./tsconfig.app.json"
}
},
"include": ["env.d.ts", "./src/**/*"],
"exclude": ["dist", "node_modules", "*.cjs"]
]
}
14 changes: 14 additions & 0 deletions tsconfig.node.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"extends": "@tsconfig/node18/tsconfig.json",
"include": [
"vite.config.*",
"vitest.config.*",
"cypress.config.*",
"playwright.config.*"
],
"compilerOptions": {
"composite": true,
"module": "ESNext",
"types": ["node"]
}
}

0 comments on commit 88a36eb

Please sign in to comment.