chore: enable `noUncheckedSideEffectImports` (#28903)

This commit is contained in:
Daniel Roe 2024-09-09 23:23:30 +02:00 committed by GitHub
parent 3dc1bfcbd3
commit 06337da6a4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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'
// This file must be imported first as we set globalThis.$fetch via this import
// @ts-expect-error virtual file
import '#build/fetch.mjs'
import { applyPlugins, createNuxtApp } from './nuxt'
@ -9,6 +10,7 @@ import type { CreateOptions } from './nuxt'
import { createError } from './composables/error'
// @ts-expect-error virtual file
import '#build/css'
// @ts-expect-error virtual file
import plugins from '#build/plugins'

View File

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

View File

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