Skip to content

Commit 8961529

Browse files
committed
Add a Makefile
1 parent db904f8 commit 8961529

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

Makefile

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
default: lint
2+
3+
# List available targets
4+
help:
5+
@echo "Available targets:"
6+
@echo " default - Run lint"
7+
@echo " lint - Run all lints"
8+
@echo " lint-spacing-and-indentation - Lint spacing and indentation conventions"
9+
@echo " lint-commit-messages - Lint commit message conventions"
10+
@echo " help - Show this help message"
11+
12+
lint: lint-spacing-and-indentation lint-commit-messages
13+
14+
# Lint spacing and indentation conventions defined in
15+
# the .editorconfig file.
16+
lint-spacing-and-indentation:
17+
eclint
18+
19+
# Lint commit message conventions defined in
20+
# the ./tools/commitlint/commitlint.config.js file.
21+
lint-commit-messages:
22+
commitlint --edit --config ./tools/commitlint/commitlint.config.js
23+
24+
.PHONY: default help lint lint-spacing-and-indentation lint-commit-messages

0 commit comments

Comments
 (0)