mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 21:55:11 +00:00
chore: lint
This commit is contained in:
parent
221047b074
commit
f7b13427cf
@ -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) {
|
||||
|
@ -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
|
||||
|
@ -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, {
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user