Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
farnabaz committed Apr 12, 2024
1 parent 7428bcf commit 41a49f5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ export default defineNuxtModule<ModuleOptions>({
nitroConfig.bundledStorage = nitroConfig.bundledStorage || []
nitroConfig.bundledStorage.push('/cache/content')

// @ts-ignore
// @ts-expect-error

Check failure on line 510 in src/module.ts

View workflow job for this annotation

GitHub Actions / ubuntu

Unused '@ts-expect-error' directive.
nitroConfig.externals = defu(typeof nitroConfig.externals === 'object' ? nitroConfig.externals : {}, {
inline: [
// Inline module runtime in Nitro bundle
Expand Down Expand Up @@ -760,7 +760,7 @@ export default defineNuxtModule<ModuleOptions>({
])
}

// @ts-ignore
// @ts-expect-error
await nuxt.callHook('content:context', contentContext)

contentContext.defaultLocale = contentContext.defaultLocale || contentContext.locales[0]
Expand Down Expand Up @@ -846,7 +846,7 @@ export default defineNuxtModule<ModuleOptions>({
})

// @nuxtjs/tailwindcss support
// @ts-ignore - Module might not exist
// @ts-expect-error - Module might not exist
nuxt.hook('tailwindcss:config', async (tailwindConfig) => {
const contentPath = resolve(nuxt.options.buildDir, 'content-cache', 'parsed/**/*.{md,yml,yaml,json}')
tailwindConfig.content = tailwindConfig.content ?? []
Expand All @@ -858,7 +858,7 @@ export default defineNuxtModule<ModuleOptions>({
tailwindConfig.content.files.push(contentPath)
}

// @ts-ignore
// @ts-expect-error
const [tailwindCssPath] = Array.isArray(nuxt.options.tailwindcss?.cssPath) ? nuxt.options.tailwindcss.cssPath : [nuxt.options.tailwindcss?.cssPath]
let cssPath = tailwindCssPath ? await resolvePath(tailwindCssPath, { extensions: ['.css', '.sass', '.scss', '.less', '.styl'] }) : join(nuxt.options.dir.assets, 'css/tailwind.css')
if (!fs.existsSync(cssPath)) {
Expand Down

0 comments on commit 41a49f5

Please sign in to comment.