feat: add format-posts srcipt

This commit is contained in:
radishzzz 2025-05-31 16:53:20 +01:00
parent 4d1e5b3054
commit 5ec894cd36
20 changed files with 232 additions and 89 deletions

View file

@ -12,6 +12,7 @@
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"new-post": "esno scripts/new-post.ts",
"format-posts": "esno scripts/format-posts.ts",
"update-theme": "esno scripts/update-theme.ts",
"update-vendors": "curl -L https://unpkg.com/@waline/client@latest/dist/waline.css -o public/vendors/waline/waline.css && curl -L https://unpkg.com/@waline/client@latest/dist/waline.js -o public/vendors/waline/waline.js"
},
@ -53,9 +54,11 @@
"@unocss/preset-attributify": "66.1.3",
"@unocss/reset": "66.1.3",
"astro-eslint-parser": "^1.2.2",
"autocorrect-node": "^2.14.0",
"eslint": "^9.28.0",
"eslint-plugin-astro": "^1.3.1",
"esno": "^4.8.0",
"fast-glob": "^3.3.2",
"lint-staged": "^16.1.0",
"typescript": "~5.8.3",
"unocss": "66.1.3",