-
Notifications
You must be signed in to change notification settings - Fork 215
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
Add clj-kondo support for cljs function schemas #833
Conversation
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.
Small tweaks, then it should be fine.
e392d0c
to
cca04b4
Compare
Thanks @thheller ! updated per your feedback : ) |
cca04b4
to
6f5c509
Compare
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.
Looks good. Although in plugin part you can just call the above function instead of repeating the code.
6f5c509
to
1c2a1ec
Compare
ah of course - updated |
1c2a1ec
to
7f681d8
Compare
This is really well though though, implemented and documented 🙇 |
Fixes #828
After lots of help from Thomas Heller here I was able to put together a much simpler dev experience for cljs.
This PR adds kondo config and updates the docs with Thomas' recommended setup using a preload and namespace ordering by the compiler to ensure your function schemas are up to date when
malli.dev.cljs/start!
is evaluated at compile-time.I updated the kondo
save!
function to emit to a different location for clj and cljs schemas so you can seamlessly use both during development. Let me know if you have any concerns or feedback about that .