Skip to content

Commit

Permalink
fix: tsc
Browse files Browse the repository at this point in the history
  • Loading branch information
nigiwen committed Apr 29, 2024
1 parent fa2ec20 commit 8436038
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 92 deletions.
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@
"scripts": {
"build": "unbuild",
"dev": "unbuild --stub",
"lint": "eslint .",
"lint": "eslint --cache .",
"lint:fix": "nr lint --fix",
"prepublishOnly": "nr build",
"release": "bumpp && npm publish",
"start": "esno src/index.ts",
Expand Down Expand Up @@ -81,6 +82,8 @@
"pre-commit": "pnpm lint-staged"
},
"lint-staged": {
"*": "eslint --fix"
"*.{js,ts,tsx,vue,md}": [
"eslint --cache --fix"
]
}
}
112 changes: 24 additions & 88 deletions pnpm-lock.yaml

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

6 changes: 6 additions & 0 deletions shims.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
declare module '*.vue' {
import type { DefineComponent } from 'vue'

const component: DefineComponent<object, object, any>
export default component
}
3 changes: 1 addition & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@
"skipLibCheck": true
},
"include": [
"docs",
"docs/.vitepress/**/*",
"**/vite.config.*"
"**/*"
],
"exclude": [
"**/dist/**",
Expand Down

0 comments on commit 8436038

Please sign in to comment.