chore: enable `noUncheckedSideEffectImports` (#28903)

This commit is contained in:
Daniel Roe 2024-09-09 23:23:30 +02:00
parent d507e659b2
commit 73d833f0ce
No known key found for this signature in database
GPG Key ID: CBC814C393D93268
3 changed files with 5 additions and 0 deletions

View File

@ -2,6 +2,7 @@ import { createApp, createSSRApp, nextTick } from 'vue'
import type { App } from 'vue' import type { App } from 'vue'
// This file must be imported first as we set globalThis.$fetch via this import // This file must be imported first as we set globalThis.$fetch via this import
// @ts-expect-error virtual file
import '#build/fetch.mjs' import '#build/fetch.mjs'
import { applyPlugins, createNuxtApp } from './nuxt' import { applyPlugins, createNuxtApp } from './nuxt'
@ -9,6 +10,7 @@ import type { CreateOptions } from './nuxt'
import { createError } from './composables/error' import { createError } from './composables/error'
// @ts-expect-error virtual file
import '#build/css' import '#build/css'
// @ts-expect-error virtual file // @ts-expect-error virtual file
import plugins from '#build/plugins' import plugins from '#build/plugins'

View File

@ -1,2 +1,4 @@
// @ts-expect-error untyped css file
import '@unocss/reset/tailwind.css' import '@unocss/reset/tailwind.css'
// @ts-expect-error untyped css file
import 'uno.css' import 'uno.css'

View File

@ -14,6 +14,7 @@
"strict": true, "strict": true,
// TODO: enable noUncheckedIndexedAccess // TODO: enable noUncheckedIndexedAccess
// "noUncheckedIndexedAccess": true, // "noUncheckedIndexedAccess": true,
"noUncheckedSideEffectImports": true,
"forceConsistentCasingInFileNames": true, "forceConsistentCasingInFileNames": true,
"noImplicitOverride": true, "noImplicitOverride": true,
/* If NOT transpiling with TypeScript: */ /* If NOT transpiling with TypeScript: */