Skip to content

Commit

Permalink
ci: use markdownlint-cli2 config file for better ignore patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
lumpinif committed Nov 21, 2024
1 parent 8859684 commit 08e7ced
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
id: markdownlint
run: |
bun install markdownlint-cli2
bunx --bun markdownlint-cli2 "**/*.md" --fix
bunx --bun markdownlint-cli2 --config .markdownlint-cli2.jsonc --fix
- name: Commit fixes
run: |
if [[ -n $(git status --porcelain) ]]; then
Expand Down
11 changes: 11 additions & 0 deletions .markdownlint-cli2.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"config": {
"default": true,
"MD013": false,
"MD033": false,
"MD041": false,
"MD032": true
},
"ignores": ["node_modules/**", "dist/**", ".git/**"],
"globs": ["**/*.md"]
}
8 changes: 0 additions & 8 deletions .markdownlint.json

This file was deleted.

0 comments on commit 08e7ced

Please sign in to comment.