File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,12 @@ build-wasm: ## Build WebAssembly node
24
24
check : # # Check code for compilation errors
25
25
cargo check --all-targets
26
26
27
+ .PHONY : check-md
28
+ check-md : # # Check if markdown files are properly formatted
29
+ @echo " Checking markdown formatting..."
30
+ npx prettier --check " **/*.md"
31
+ @echo " Markdown format check completed."
32
+
27
33
.PHONY : clean
28
34
clean : # # Clean build artifacts
29
35
cargo clean
@@ -32,6 +38,12 @@ clean: ## Clean build artifacts
32
38
fmt : # # Format code using rustfmt
33
39
cargo fmt --all
34
40
41
+ .PHONY : format-md
42
+ format-md : # # Format all markdown files to wrap at 80 characters
43
+ @echo " Formatting markdown files..."
44
+ npx prettier --write " **/*.md"
45
+ @echo " Markdown files have been formatted to 80 characters."
46
+
35
47
.PHONY : lint
36
48
lint : # # Run linter (clippy)
37
49
cargo clippy --all-targets -- -D warnings --allow clippy::mutable_key_type
You can’t perform that action at this time.
0 commit comments