feat(check): adds dx check

At the moment this only checks the Rules of Hooks, ensuring that hook functions (i.e. `use_*`) are being called as expected.

https://dioxuslabs.com/docs/0.3/guide/en/interactivity/hooks.html

Closes #1202
This commit is contained in:
Brian Donovan committed 2023-07-23 16:06:55 -07:00
1 parent 915e79e3be
commit 2c2534d1cc
11 files changed
+1255

No files matched your search

+5
View File
@@ -103,6 +103,11 @@ async fn main() -> anyhow::Result<()> {
.await
.map_err(|e| anyhow!("🚫 Error autoformatting RSX: {}", e)),
Check(opts) => opts
.check()
.await
.map_err(|e| anyhow!("🚫 Error checking RSX: {}", e)),
Version(opt) => {
let version = opt.version();
println!("{}", version);