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

Remove remaining "bs." attributes #6643

Merged
merged 14 commits into from
Feb 20, 2024
Merged

Remove remaining "bs." attributes #6643

merged 14 commits into from
Feb 20, 2024

Conversation

cknitt
Copy link
Member

@cknitt cknitt commented Feb 18, 2024

Remove the remaining @bs.xxx attributes and clean up.
Also (mostly) fixes #6636.

The only remaining one is the deprecated @bs.send.pipe which is still in use in the Js module. Not sure how to proceed with that one.

@@ -27,12 +27,11 @@
it may fail third party ppxes
*)
let is_bs_attribute txt =
Copy link
Member Author

@cknitt cknitt Feb 18, 2024

Choose a reason for hiding this comment

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

This was not invoked for the non-bs attributes and therefore the unused attribute check was not working for those, see #6636.

Some more investigation needed though as adding "as" causes tests to fail. This should be done in a separate PR.

@cknitt cknitt merged commit 1bc9e03 into rescript-lang:master Feb 20, 2024
14 checks passed
@cknitt cknitt deleted the no-bs branch February 20, 2024 12:27
JonoPrest pushed a commit to JonoPrest/rescript-compiler that referenced this pull request Mar 21, 2024
* @bs.string -> @string

* @bs.this -> @this

* @bs.uncurry -> uncurry

* @bs.unwrap -> @unwrap

* @bs.val -> @Val

* @bs.debugger -> @debugger

* @bs.external -> @external

* @bs.raw -> @raw

* @bs.re -> @re

* @bs.time -> @time

* @bs.config -> @config

* Cleanup

* Changelog

* Deactivate unused argument check for @int
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.

No unused attribute warning for attributes without "bs." prefix
2 participants