Skip to content
Discussion options

You must be logged in to vote

Finaly make it work by adding fileTypeAware(suggested by @Dimava) and also parserOption.project

Here is the eslint.config.js

import antfu from '@antfu/eslint-config'

export default antfu({
  vue: true,
  rules: {
    "@typescript-eslint/no-floating-promises": "error"
  },
  typescript: {
+    parserOptions: {
+      project: "./tsconfig.json",
+    },
+    filesTypeAware: ['**/*.ts', '**/*.tsx', '**/*.vue'],
  },
})

And nuxt.config.ts

export default defineNuxtConfig({
  compatibilityDate: "2025-02-11"
})

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@zecka
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by zecka
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants