chore: rename lint script to format, tell prettier to ignore markdown files

This commit is contained in:
Tasia Iso 2024-05-11 19:48:47 +02:00
parent 34c7fa8312
commit 69b2e2a955
Signed by: tasiaiso
SSH Key Fingerprint: SHA256:KiRjUay5C9i6objsEOIycygBHn54pDBB3Lj7fyJ0Elw
2 changed files with 5 additions and 2 deletions

View File

@ -12,3 +12,6 @@ deps
apps/ssb/tribute.esm.js apps/ssb/tribute.esm.js
apps/api/app.js apps/api/app.js
**/emojis.json **/emojis.json
# only markdownlint should deal with the documentation
docs/**/*.md

View File

@ -1,8 +1,8 @@
{ {
"name": "tildefriends", "name": "tildefriends",
"scripts": { "scripts": {
"lint": "npm run prettier && npm run markdown", "format": "npm run prettier && npm run markdown",
"prettier": "prettier --cache --write --check .", "prettier": "npx prettier --cache --write --check .",
"markdown": "npx markdownlint-cli 'docs/**/*.md' -f" "markdown": "npx markdownlint-cli 'docs/**/*.md' -f"
}, },
"author": "Cory McWilliams", "author": "Cory McWilliams",