Skip to content

Commit b9dfdff

Browse files
committed
chore: add markdownlint to pre-commit hooks and enable format on save for markdown files
1 parent 52494a5 commit b9dfdff

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

.pre-commit-config.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,16 @@ repos:
111111
name: "🐚 shellcheck - Lint shell scripts"
112112
files: \.sh$
113113

114+
# --- Markdown ---
115+
- repo: https://github.com/igorshubovych/markdownlint-cli
116+
rev: v0.48.0
117+
hooks:
118+
- id: markdownlint
119+
name: "📝 markdownlint - Lint markdown files"
120+
args: ["--fix"]
121+
exclude: |
122+
(?x)^(docs/release-notes.md|CHANGELOG.md)$
123+
114124
# --- Python ---
115125
- repo: https://github.com/psf/black
116126
rev: 26.1.0

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"editor.insertSpaces": false,
1616
"editor.tabSize": 4,
1717
"[markdown]": {
18+
"editor.formatOnSave": true,
1819
"editor.insertSpaces": true,
1920
"files.trimTrailingWhitespace": false
2021
},

0 commit comments

Comments
 (0)