Skip to content

Commit

Permalink
fix(runtime-utils): ts-ignore #build/ import until nuxt v3.12 release
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed May 22, 2024
1 parent 293cead commit 66b23ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/runtime-utils/mount.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import type { RouteLocationRaw } from 'vue-router'

import { RouterLink } from './components/RouterLink'

// @ts-expect-error virtual file
// TODO: remove after Nuxt v3.12
// @ts-ignore for backwards compatibility

Check failure on line 11 in src/runtime-utils/mount.ts

View workflow job for this annotation

GitHub Actions / lint

Use "@ts-expect-error" instead of "@ts-ignore", as "@ts-ignore" will do nothing if the following line is error-free

Check failure on line 11 in src/runtime-utils/mount.ts

View workflow job for this annotation

GitHub Actions / lint

Use "@ts-expect-error" to ensure an error is actually being suppressed
import NuxtRoot from '#build/root-component.mjs'
import { tryUseNuxtApp, useRouter } from '#imports'

Expand Down
3 changes: 2 additions & 1 deletion src/runtime-utils/render.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import type { RouteLocationRaw } from 'vue-router'

import { RouterLink } from './components/RouterLink'

// @ts-expect-error virtual file
// TODO: remove after Nuxt v3.12
// @ts-ignore for backwards compatibility

Check failure on line 10 in src/runtime-utils/render.ts

View workflow job for this annotation

GitHub Actions / lint

Use "@ts-expect-error" instead of "@ts-ignore", as "@ts-ignore" will do nothing if the following line is error-free

Check failure on line 10 in src/runtime-utils/render.ts

View workflow job for this annotation

GitHub Actions / lint

Use "@ts-expect-error" to ensure an error is actually being suppressed
import NuxtRoot from '#build/root-component.mjs'
import { tryUseNuxtApp, useRouter } from '#imports'

Expand Down

0 comments on commit 66b23ae

Please sign in to comment.