We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Darwin
v18.18.2
3.11.1
2.9.5
npm@9.8.1
-
ssr
app
modules
googleFonts
eslint
devtools
css
nitro
vite
@nuxtjs/google-fonts@3.1.3
@nuxt/eslint@0.3.0-beta.7
@nuxt/eslint
https://stackblitz.com/edit/github-11bgm1?file=eslint.config.mjs make sure running npx eslint composables/*.js will reproduce this.
npx eslint composables/*.js
emits no-undef error when composables using $fetch().
no-undef
$fetch()
using $fetch() in .vue file does not output lint error.
.vue
additionally it's workaround is below, adding globals into eslint config, can resolve this.
import withNuxt from './.nuxt/eslint.config.mjs'; export default withNuxt({ languageOptions: { globals: { $fetch: 'readonly' } }, });
No response
The text was updated successfully, but these errors were encountered:
e5b47de
Awesome reproduction, thanks :)
Sorry, something went wrong.
No branches or pull requests
Environment
Darwin
v18.18.2
3.11.1
3.11.1
2.9.5
npm@9.8.1
-
ssr
,app
,modules
,googleFonts
,eslint
,devtools
,css
,nitro
,vite
@nuxtjs/google-fonts@3.1.3
,@nuxt/eslint@0.3.0-beta.7
-
Package
@nuxt/eslint
Reproduction
https://stackblitz.com/edit/github-11bgm1?file=eslint.config.mjs
make sure running
npx eslint composables/*.js
will reproduce this.Describe the bug
emits
no-undef
error when composables using$fetch()
.Additional context
using
$fetch()
in.vue
file does not output lint error.additionally it's workaround is below, adding globals into eslint config, can resolve this.
Logs
No response
The text was updated successfully, but these errors were encountered: