-
-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
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
fix: restore $turnstile
types, update and lint project
#199
Conversation
It's already running for `prepare`.
src/runtime/plugins/script.ts
Outdated
if (process.server) return | ||
await this.loadTurnstile() | ||
return (window as any).turnstile.reset(element) | ||
}, | ||
} | ||
} satisfies $turnstile |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note to self: We need to fix the lack of typed injection here upstream in nuxt/module-builder
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, that would be great! Had to change types in a few places for other modules / projects... and somehow adding types to one project-plugin made the types for all other become invalid 🤔 haven't investigated further on that end yet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Beautiful. Thank you ❤️
$turnstile
types, update and lint project
"@nuxt/module-builder": "0.2.1", | ||
"@nuxt/schema": "3.3.2", | ||
"@nuxt/test-utils": "3.3.2", | ||
"@nuxtjs/eslint-config-typescript": "12.0.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is https://github.com/nuxt/eslint-config/tree/main/packages/eslint-config#typescript outdated / can it be removed from the README? I did not notice the difference in nuxt/
vs nuxtjs/
🙈
'@nuxtjs/eslint-config-typescript', 'plugin:prettier/recommended'
with eslintnuxt typecheck
consola
instead of consolesrc
for component type checkingprepare