-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (28 loc) · 1.08 KB
/
Makefile
File metadata and controls
37 lines (28 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
.PHONY: setup lint lint-md lint-fix format format-check lint-links lint-frontmatter clean
## Setup development environment
setup:
npm install
@command -v pre-commit >/dev/null 2>&1 && pre-commit install || echo "Optional: install pre-commit (pip install pre-commit) for git hooks"
## Run all linters
lint: lint-md lint-frontmatter
## Markdown linting
lint-md:
npx markdownlint '**/*.md' --config .markdownlint.json --ignore node_modules
## Fix auto-fixable markdown lint issues
lint-fix:
npx markdownlint '**/*.md' --config .markdownlint.json --ignore node_modules --fix
## Check formatting
format-check:
npx prettier --check '**/*.md' '**/*.json' '**/*.yml' --ignore-path .prettierignore
## Auto-format files
format:
npx prettier --write '**/*.md' '**/*.json' '**/*.yml' --ignore-path .prettierignore
## Check links (requires lychee: brew install lychee or cargo install lychee)
lint-links:
lychee --no-progress '**/*.md'
## Validate YAML frontmatter in EVES specs
lint-frontmatter:
node scripts/validate-frontmatter.mjs
## Remove generated files
clean:
rm -rf node_modules .lycheecache