Skip to content

Commit 61e2e9d

Browse files
committed
Add treefmt, mdformat and typos
1 parent b8c2723 commit 61e2e9d

File tree

4 files changed

+79
-3
lines changed

4 files changed

+79
-3
lines changed

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,3 @@
33

44
# Direnv cache
55
/.direnv/
6-
7-
# Trivial flake, no need to check in lock file
8-
/flake.lock

flake.lock

Lines changed: 61 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@
2525
mdbook-katex
2626
mdbook-alerts
2727
mdbook-toc
28+
# formatting
29+
treefmt
30+
mdformat
31+
python3Packages.mdformat-footnote
32+
python3Packages.mdformat-gfm
33+
typos
2834
];
2935
phases = [ "unpackPhase" "buildPhase" ];
3036
buildPhase = ''

treefmt.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# The formatter multiplexer - https://github.com/numtide/treefmt
2+
[formatter.mdformat]
3+
command = "mdformat"
4+
excludes = []
5+
includes = ["*.md"]
6+
options = ["--extensions", "gfm", "--extensions", "footnote"]
7+
8+
[formatter.typos]
9+
command = "typos"
10+
excludes = []
11+
includes = ["*.md"]
12+
options = ["--write-changes"]

0 commit comments

Comments
 (0)