chore(*.md): lint markdown command + add to lint-staged

This commit is contained in:
Cory Dransfeldt 2025-06-14 17:22:27 -07:00
parent 1d7f13d1f5
commit b316c58b1a
No known key found for this signature in database
3 changed files with 879 additions and 25 deletions

4
.markdownlintignore Normal file
View file

@ -0,0 +1,4 @@
node_modules/
vendor/
dist/
generated/

892
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -1,6 +1,6 @@
{
"name": "coryd.dev",
"version": "10.3.4",
"version": "10.3.5",
"description": "The source for my personal site. Built using 11ty (and other tools).",
"type": "module",
"engines": {
@ -15,6 +15,7 @@
"clean": "rimraf dist .cache",
"format": "npx prettier --write '**/*.{js,ts,json,css,md}' && composer format:php && npm run format:sql",
"format:sql": "find queries -name '*.sql' -print0 | xargs -0 -n 1 sql-formatter --language postgresql --fix",
"lint:md": "markdownlint '**/*.md'",
"update": "composer update && npm upgrade && npm --prefix cli upgrade && ncu && ncu --cwd cli",
"setup": "sh ./scripts/setup.sh",
"setup:deploy": "sh ./scripts/setup.sh --deploy",
@ -22,7 +23,8 @@
},
"lint-staged": {
"*.{js,json,css,md}": "prettier --write",
"*.php": "composer format:php"
"*.php": "composer format:php",
"*.md": "markdownlint"
},
"keywords": [
"11ty",
@ -56,6 +58,8 @@
"markdown-it-footnote": "^4.0.0",
"markdown-it-link-attributes": "4.0.1",
"markdown-it-prism": "^3.0.0",
"markdownlint": "0.38.0",
"markdownlint-cli": "0.45.0",
"postcss": "^8.5.5",
"postcss-import": "^16.1.0",
"postcss-import-ext-glob": "^2.1.1",