Skip to content
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

Merged
merged 19 commits into from
Apr 4, 2023
Merged

Conversation

dargmuesli
Copy link
Collaborator

@dargmuesli dargmuesli commented Apr 4, 2023

  • extend '@nuxtjs/eslint-config-typescript', 'plugin:prettier/recommended' with eslint
  • add a nuxt typecheck
  • use consola instead of console
  • add typescript configuration link to src for component type checking
  • add explicit plugin typing to fix a typecheck error in a depending project
  • remove husky postinstall script, as it's already run for prepare

if (process.server) return
await this.loadTurnstile()
return (window as any).turnstile.reset(element)
},
}
} satisfies $turnstile
Copy link
Collaborator

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.

Copy link
Collaborator Author

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.

Copy link
Collaborator

@danielroe danielroe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Beautiful. Thank you ❤️

@danielroe danielroe changed the title chore(package): add typecheck to lint script fix: restore $turnstile types, update and lint project Apr 4, 2023
@danielroe danielroe merged commit 0510083 into main Apr 4, 2023
@dargmuesli dargmuesli deleted the chore/lint branch April 4, 2023 09:03
package.json Show resolved Hide resolved
"@nuxt/module-builder": "0.2.1",
"@nuxt/schema": "3.3.2",
"@nuxt/test-utils": "3.3.2",
"@nuxtjs/eslint-config-typescript": "12.0.0",
Copy link
Collaborator Author

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/ 🙈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants