Skip to content

Commit

Permalink
chore: tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-Hope committed May 11, 2023
1 parent b53a245 commit ce1d2de
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ module.exports = {
root: true,
extends: 'vuepress',
globals: {
// workaround for vue3.3 slots
defineSlots: 'readonly',
__VUEPRESS_VERSION__: 'readonly',
__VUEPRESS_BASE__: 'readonly',
__VUEPRESS_DEV__: 'readonly',
__VUEPRESS_SSR__: 'readonly',
__VUE_HMR_RUNTIME__: 'readonly',
__VUE_OPTIONS_API__: 'readonly',
__VUE_PROD_DEVTOOLS__: 'readonly',
// workaround for vue3.3 slots, should be removed once eslint-plugin-vue supports this
defineSlots: 'readonly',
},
overrides: [
{
Expand Down
1 change: 1 addition & 0 deletions ecosystem/theme-default/src/client/components/Navbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
defineEmits<{
(e: 'toggle-sidebar'): void
}>()
defineSlots<{
before?: (props: Record<never, never>) => any
after?: (props: Record<never, never>) => any
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ defineProps({
default: undefined,
},
})
defineSlots<{
default?: () => any
}>()
Expand Down

0 comments on commit ce1d2de

Please sign in to comment.