chore: lint

This commit is contained in:
Daniel Roe 2023-09-05 12:02:12 +01:00
parent 221047b074
commit f7b13427cf
5 changed files with 1 additions and 7 deletions

View File

@ -31,7 +31,6 @@ export default defineComponent({
setup (props, ctx) {
const mounted = ref(false)
// This is deliberate - `uid` should not be provided by user but by a transform plugin and will not be reactive.
// eslint-disable-next-line vue/no-setup-props-destructure
const ssrFailed = useState(`${props.uid}`)
if (ssrFailed.value) {

View File

@ -10,7 +10,6 @@ const props = defineProps({
})
// Deliberately prevent reactive update when error is cleared
// eslint-disable-next-line vue/no-setup-props-destructure
const _error = props.error
// TODO: extract to a separate utility

View File

@ -26,7 +26,6 @@ const LayoutLoader = defineComponent({
// This is a deliberate hack - this component must always be called with an explicit key to ensure
// that setup reruns when the name changes.
// eslint-disable-next-line vue/no-setup-props-destructure
const LayoutComponent = await layouts[props.name]().then((r: any) => r.default || r)
return () => h(LayoutComponent, props.layoutProps, context.slots)
@ -103,7 +102,7 @@ const LayoutProvider = defineComponent({
},
setup (props, context) {
// Prevent reactivity when the page will be rerendered in a different suspense fork
// eslint-disable-next-line vue/no-setup-props-destructure
const name = props.name
if (props.shouldProvide) {
provide(LayoutMetaSymbol, {

View File

@ -27,7 +27,6 @@ export default defineComponent({
},
setup (props, { slots }) {
// TODO: use computed values in useLoadingIndicator
// eslint-disable-next-line vue/no-setup-props-destructure
const indicator = useLoadingIndicator({
duration: props.duration,
throttle: props.throttle

View File

@ -20,9 +20,7 @@ export const RouteProvider = defineComponent({
},
setup (props) {
// Prevent reactivity when the page will be rerendered in a different suspense fork
// eslint-disable-next-line vue/no-setup-props-destructure
const previousKey = props.renderKey
// eslint-disable-next-line vue/no-setup-props-destructure
const previousRoute = props.route
// Provide a reactive route within the page