Skip to content

Commit

Permalink
build: add types check for vue (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
antonreshetov authored Apr 11, 2022
1 parent ec962ab commit c486fbf
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"dev:watch": "tsc-watch -p tsconfig.electron.json --onFirstSuccess \"npm run dev:server\"",
"dev:server": "node build/scripts/dev-server.js",
"dev:vue-devtools": "vue-devtools",
"build:ts": "tsc -p tsconfig.electron.json",
"build": "npm run build:ts && node build/scripts/build.js ",
"build:ts": "vue-tsc --noEmit --skipLibCheck && tsc -p tsconfig.electron.json",
"lint": "eslint --ext .js,.ts,.vue . src",
"lint:fix": "eslint --ext .js,.ts,.vue . --fix src",
"release": "bumpp -c 'build: release v' -t",
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/components/sidebar/SidebarListItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ const onClickContextMenu = async () => {
ContextMenuRequest,
ContextMenuResponse
>('context-menu:library', {
name2: props.name,
name: props.name,
type: 'trash',
data: {}
})
Expand Down
6 changes: 0 additions & 6 deletions src/renderer/components/snippets/SnippetsTags.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,6 @@ const tags = computed({
tagsIds.push(newTag.id)
if (snippetStore.selected?.tags) {
snippetStore.selected.tags.push(newTag)
} else {
snippetStore.selected!.tags = [newTag]
}
track('tags/add-new')
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/renderer/components/ui/AppTree/AppTreeNode.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@
:nodes="node.children"
:hovered-node-id="hoveredNodeId"
>
<!-- eslint-disable-next-line vue/no-template-shadow -->
<template #default="{ node, deep, hoveredNodeId }">
<!-- eslint-disable-next-line vue/no-template-shadow-->
<template #default="{ node, deep }">
<slot
:node="node"
:deep="deep"
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/store/snippets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ export const useSnippetStore = defineStore('snippets', {
body.content = content

await this.patchSnippetsById(id, body)
await this.getSnippetsByFolderIds(folderStore.selectedIds)
await this.getSnippetsByFolderIds(folderStore.selectedIds!)
await this.getSnippetsById(id)
},
async deleteCurrentSnippetFragmentByIndex (index: number) {
Expand Down

0 comments on commit c486fbf

Please sign in to comment.