Skip to content

Commit

Permalink
fix umami defination for eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
zyxkad committed Jan 15, 2024
1 parent 364ecac commit 79a991e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,8 @@
},
"env": {
"browser": true
},
"globals": {
"umami": "readonly"
}
}
2 changes: 2 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

echo "running docs:tsc"
pnpm run docs:tsc
echo "running docs:eslint --fix"
pnpm run docs:eslint --fix
echo "running docs:zhlint"
Expand Down
1 change: 0 additions & 1 deletion docs/.vitepress/theme/components/Analyzer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { TarReader } from "@gera2ld/tarjs"
import { useRouter } from "vitepress"
import { type Ref, ref, watch, onBeforeMount, onUnmounted } from "vue"
import axios from "axios"
import umami from "@types/umami"
import AnalyzingIcon from "./icons/AnalyzingIcon.vue"
import OpenTabIcon from "./icons/OpenTabIcon.vue"
import UploadIcon from "./icons/UploadIcon.vue"
Expand Down

0 comments on commit 79a991e

Please sign in to comment.