From 69b2e2a955c20449075ce9593a7ba57fe7293d30 Mon Sep 17 00:00:00 2001 From: Tasia Iso Date: Sat, 11 May 2024 19:48:47 +0200 Subject: [PATCH] chore: rename `lint` script to `format`, tell prettier to ignore markdown files --- .prettierignore | 3 +++ package.json | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.prettierignore b/.prettierignore index 595b4cc1..2575e132 100644 --- a/.prettierignore +++ b/.prettierignore @@ -12,3 +12,6 @@ deps apps/ssb/tribute.esm.js apps/api/app.js **/emojis.json + +# only markdownlint should deal with the documentation +docs/**/*.md diff --git a/package.json b/package.json index 433f20ee..e54d10b0 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { "name": "tildefriends", "scripts": { - "lint": "npm run prettier && npm run markdown", - "prettier": "prettier --cache --write --check .", + "format": "npm run prettier && npm run markdown", + "prettier": "npx prettier --cache --write --check .", "markdown": "npx markdownlint-cli 'docs/**/*.md' -f" }, "author": "Cory McWilliams",