Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

fix: 'import.meta' warning ts(1343),ts(2339) #126

Merged
merged 1 commit into from
Oct 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion configs/tsconfig/base.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@
"resolveJsonModule": true,
"removeComments": true,
"noImplicitAny": false,
"experimentalDecorators": true
"experimentalDecorators": true,
"target": "esnext",
"module": "esnext",
"types": ["node", "vite/client"],
"lib": ["dom", "esnext"]
},
"exclude": ["**/node_modules/**", "**/dist/**"]
}
4 changes: 0 additions & 4 deletions packages/hooks/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
{
"extends": "tsconfig/base.json",
"compilerOptions": {
"target": "esnext",
"module": "esnext",
"baseUrl": ".",
"paths": {
"@/*": ["src/*"]
},
"lib": ["dom", "esnext"],
"types": ["vite/client"]
},
"include": ["src"],
"exclude": ["**/node_modules/**", "**/dist/**"]
Expand Down
10 changes: 10 additions & 0 deletions packages/layouts/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"extends": "tsconfig/base.json",
"compilerOptions": {
"baseUrl": ".",
"paths": {
"#/*": ["src/*"]
},
},
"include": ["src"]
}
4 changes: 0 additions & 4 deletions packages/locale/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
{
"extends": "tsconfig/base.json",
"compilerOptions": {
"target": "esnext",
"module": "esnext",
"baseUrl": ".",
"paths": {
"@/*": ["src/*"]
},
"lib": ["dom", "esnext"],
"types": ["vite/client"]
},
"include": ["src"],
"exclude": ["**/node_modules/**", "**/dist/**"]
Expand Down
1 change: 0 additions & 1 deletion packages/stores/src/modules/siteGeneral.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import defaultLogo from '@/assets/images/logo.png'
import defaultAvatar from '@/assets/images/header.jpg'
import { getGlobalConfig } from '@vben/utils'

// @ts-ignore
const { title } = getGlobalConfig(import.meta.env)

// github repo url
Expand Down
1 change: 0 additions & 1 deletion packages/stores/src/pinia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { createStorageName } from '@vben/utils'
const pinia = createPinia()

pinia.use(
// @ts-ignore
createPersistedState(persistGlobalConfig(createStorageName(import.meta.env))),
)

Expand Down
10 changes: 10 additions & 0 deletions packages/stores/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"extends": "tsconfig/base.json",
"compilerOptions": {
"baseUrl": ".",
"paths": {
"#/*": ["src/*"]
},
},
"include": ["src"]
}
4 changes: 0 additions & 4 deletions packages/vbenComponents/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
{
"extends": "tsconfig/base.json",
"compilerOptions": {
"target": "esnext",
"module": "esnext",
"baseUrl": ".",
"paths": {
"#/*": ["src/*"]
},
"lib": ["dom", "esnext"],

},
"include": ["src"]
}