Skip to content

Commit

Permalink
feat: switch to markdownlint-cli2
Browse files Browse the repository at this point in the history
  • Loading branch information
indietyp committed Dec 18, 2024
1 parent 60e2a5a commit 7d74112
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 24 deletions.
3 changes: 1 addition & 2 deletions .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@
"/^vite-/",
"/vitest$/",
"/lint-staged/",
"/lockfile-lint/",
"/markdownlint-cli/",
"/markdownlint-cli2/",
"/^prettier/",
"/prettier$/",
"/rimraf/",
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#########################
## Keep in sync with
## - .prettierignore
## - .markdownlintignore
## - .dockerignore
#########################

Expand Down
2 changes: 1 addition & 1 deletion .lefthook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pre-commit:
markdownlint:
tags: frontend style
glob: "*.md"
run: yarn run markdownlint --fix {staged_files} || true
run: yarn run markdownlint --fix --no-globs {staged_files} || true
stage_fixed: true
prettier:
tags: frontend style
Expand Down
25 changes: 25 additions & 0 deletions .markdownlint-cli2.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"$schema": "https://raw.githubusercontent.com/DavidAnson/markdownlint-cli2/v0.16.0/schema/markdownlint-cli2-config-schema.json",
"config": {
"default": true,
"first-line-heading": false,
"line-length": false,
"list-marker-space": {
"ol_multi": 1,
"ol_single": 1,
"ul_multi": 1,
"ul_single": 1,
},
"no-alt-text": false,
"no-bare-urls": false,
"no-duplicate-heading": { "siblings_only": true },
"no-emphasis-as-heading": false,
"no-inline-html": false,
"no-trailing-punctuation": false,
"ol-prefix": { "style": "one" },
"single-title": false,
},
"gitignore": true,
"globs": ["*.md", "**/*.md"],
"ignores": ["**/LICENSE*.md"],
}
19 changes: 0 additions & 19 deletions .markdownlint.json

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
"@taplo/cli": "0.7.0",
"@yarnpkg/types": "^4.0.0",
"lefthook": "1.9.2",
"markdownlint-cli": "0.43.0",
"markdownlint-cli2": "0.16.0",
"npm-run-all2": "7.0.2",
"prettier": "3.4.2",
"prettier-plugin-packagejson": "2.5.6",
Expand Down

0 comments on commit 7d74112

Please sign in to comment.