chore: update deps and fix lint errors (#41)

This commit is contained in:
guygubaby 2023-11-03 03:48:51 +08:00 committed by GitHub
parent 616b5d7fbf
commit 5b9db49647
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 1112 additions and 721 deletions

6
auto-imports.d.ts vendored
View File

@ -37,6 +37,7 @@ declare global {
const h: typeof import('vue')['h']
const ignorableWatch: typeof import('@vueuse/core')['ignorableWatch']
const inject: typeof import('vue')['inject']
const injectLocal: typeof import('@vueuse/core')['injectLocal']
const isDark: typeof import('./src/composables/dark')['isDark']
const isDefined: typeof import('@vueuse/core')['isDefined']
const isProxy: typeof import('vue')['isProxy']
@ -67,6 +68,7 @@ declare global {
const onUpdated: typeof import('vue')['onUpdated']
const pausableWatch: typeof import('@vueuse/core')['pausableWatch']
const provide: typeof import('vue')['provide']
const provideLocal: typeof import('@vueuse/core')['provideLocal']
const reactify: typeof import('@vueuse/core')['reactify']
const reactifyObject: typeof import('@vueuse/core')['reactifyObject']
const reactive: typeof import('vue')['reactive']
@ -324,6 +326,7 @@ declare module 'vue' {
readonly h: UnwrapRef<typeof import('vue')['h']>
readonly ignorableWatch: UnwrapRef<typeof import('@vueuse/core')['ignorableWatch']>
readonly inject: UnwrapRef<typeof import('vue')['inject']>
readonly injectLocal: UnwrapRef<typeof import('@vueuse/core')['injectLocal']>
readonly isDark: UnwrapRef<typeof import('./src/composables/dark')['isDark']>
readonly isDefined: UnwrapRef<typeof import('@vueuse/core')['isDefined']>
readonly isProxy: UnwrapRef<typeof import('vue')['isProxy']>
@ -354,6 +357,7 @@ declare module 'vue' {
readonly onUpdated: UnwrapRef<typeof import('vue')['onUpdated']>
readonly pausableWatch: UnwrapRef<typeof import('@vueuse/core')['pausableWatch']>
readonly provide: UnwrapRef<typeof import('vue')['provide']>
readonly provideLocal: UnwrapRef<typeof import('@vueuse/core')['provideLocal']>
readonly reactify: UnwrapRef<typeof import('@vueuse/core')['reactify']>
readonly reactifyObject: UnwrapRef<typeof import('@vueuse/core')['reactifyObject']>
readonly reactive: UnwrapRef<typeof import('vue')['reactive']>
@ -605,6 +609,7 @@ declare module '@vue/runtime-core' {
readonly h: UnwrapRef<typeof import('vue')['h']>
readonly ignorableWatch: UnwrapRef<typeof import('@vueuse/core')['ignorableWatch']>
readonly inject: UnwrapRef<typeof import('vue')['inject']>
readonly injectLocal: UnwrapRef<typeof import('@vueuse/core')['injectLocal']>
readonly isDark: UnwrapRef<typeof import('./src/composables/dark')['isDark']>
readonly isDefined: UnwrapRef<typeof import('@vueuse/core')['isDefined']>
readonly isProxy: UnwrapRef<typeof import('vue')['isProxy']>
@ -635,6 +640,7 @@ declare module '@vue/runtime-core' {
readonly onUpdated: UnwrapRef<typeof import('vue')['onUpdated']>
readonly pausableWatch: UnwrapRef<typeof import('@vueuse/core')['pausableWatch']>
readonly provide: UnwrapRef<typeof import('vue')['provide']>
readonly provideLocal: UnwrapRef<typeof import('@vueuse/core')['provideLocal']>
readonly reactify: UnwrapRef<typeof import('@vueuse/core')['reactify']>
readonly reactifyObject: UnwrapRef<typeof import('@vueuse/core')['reactifyObject']>
readonly reactive: UnwrapRef<typeof import('vue')['reactive']>

View File

@ -1,7 +1,7 @@
{
"type": "module",
"private": true,
"packageManager": "pnpm@8.8.0",
"packageManager": "pnpm@8.9.2",
"scripts": {
"build": "vite build",
"dev": "vite --port 3333 --open",
@ -13,36 +13,36 @@
"postinstall": "npx simple-git-hooks"
},
"dependencies": {
"@vueuse/core": "^10.4.1",
"vue": "^3.3.4",
"@vueuse/core": "^10.5.0",
"vue": "^3.3.7",
"vue-router": "^4.2.5"
},
"devDependencies": {
"@antfu/eslint-config": "^1.0.0-beta.12",
"@antfu/eslint-config": "^1.0.0-beta.28",
"@iconify-json/carbon": "^1.1.21",
"@types/node": "^20.7.1",
"@unocss/eslint-config": "^0.56.4",
"@unocss/eslint-plugin": "^0.56.4",
"@unocss/reset": "^0.56.4",
"@vitejs/plugin-vue": "^4.3.4",
"@vue-macros/volar": "^0.15.0",
"@types/node": "^20.8.8",
"@unocss/eslint-config": "^0.57.1",
"@unocss/eslint-plugin": "^0.57.1",
"@unocss/reset": "^0.57.1",
"@vitejs/plugin-vue": "^4.4.0",
"@vue-macros/volar": "^0.17.1",
"@vue/test-utils": "^2.4.1",
"eslint": "^8.50.0",
"eslint-define-config": "^1.23.0",
"eslint": "^8.52.0",
"eslint-define-config": "^1.24.1",
"jsdom": "^22.1.0",
"lint-staged": "^14.0.1",
"pnpm": "^8.8.0",
"lint-staged": "^15.0.2",
"pnpm": "^8.9.2",
"simple-git-hooks": "^2.9.0",
"taze": "^0.11.3",
"taze": "^0.11.4",
"typescript": "^5.2.2",
"unocss": "^0.56.4",
"unocss": "^0.57.1",
"unplugin-auto-import": "^0.16.6",
"unplugin-vue-components": "^0.25.2",
"unplugin-vue-macros": "^2.6.0",
"vite": "^4.4.9",
"unplugin-vue-macros": "^2.6.1",
"vite": "^4.5.0",
"vite-plugin-pages": "^0.31.0",
"vitest": "^0.34.5",
"vue-tsc": "^1.8.15"
"vitest": "^0.34.6",
"vue-tsc": "^1.8.20"
},
"simple-git-hooks": {
"pre-commit": "pnpm lint-staged"

1771
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
import { describe, expect, it } from 'vitest'
describe('Hi', () => {
describe('hi', () => {
it('should works', () => {
expect(1 + 1).toEqual(2)
})

View File

@ -2,7 +2,7 @@ import { mount } from '@vue/test-utils'
import { describe, expect, it } from 'vitest'
import TheCounter from '../src/components/TheCounter.vue'
describe('TheCounter.vue', () => {
describe('component of TheCounter.vue', () => {
it('should render', () => {
const wrapper = mount(TheCounter, { props: { initial: 10 } })
expect(wrapper.text()).toContain('10')

View File

@ -1,27 +1,27 @@
{
"compilerOptions": {
"target": "es2016",
"lib": ["DOM", "ESNext"],
"jsx": "preserve",
"lib": ["DOM", "ESNext"],
"baseUrl": ".",
"module": "ESNext",
"moduleResolution": "bundler",
"baseUrl": ".",
"paths": {
"~/*": ["src/*"]
},
"resolveJsonModule": true,
"types": [
"vite/client",
"vite-plugin-pages/client",
"unplugin-vue-macros/macros-global"
],
"resolveJsonModule": true,
"allowJs": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"strictNullChecks": true,
"noUnusedLocals": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"skipLibCheck": true
},
"exclude": ["dist", "node_modules"]
"exclude": ["dist", "node_modules", "eslint.config.js"]
}