From 7321c77cc71daebe6f0392d1ba68a74cf0235c7f Mon Sep 17 00:00:00 2001 From: Alex Ackermann Date: Mon, 14 Jul 2025 16:19:37 +0200 Subject: [PATCH 1/2] simplify prettier config --- .prettierignore | 9 +-------- package.json | 6 +++--- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/.prettierignore b/.prettierignore index 471d4bf0..a787976f 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,12 +1,5 @@ -* - -!*.md -!*.mdx - -!*/ - assets/** static/** README.md CHANGELOG.md -Contributing.md \ No newline at end of file +CONTRIBUTING.md \ No newline at end of file diff --git a/package.json b/package.json index c300ca98..8430da7f 100644 --- a/package.json +++ b/package.json @@ -15,10 +15,10 @@ "typecheck": "tsc", "build-likec4": "likec4 build ./assets/likec4 --base /likec4 -o ./static/likec4", "build-git-batch": "docker run --rm -w $(pwd) -v $(pwd):$(pwd) quay.io/thegeeklab/git-batch", - "format:check": "prettier --check .", - "format:write": "prettier --write .", + "format:check": "prettier --check '**/*.{md,mdx,markdown}'", + "format:write": "prettier --write '**/*.{md,mdx,markdown}'", "lint:md": "markdownlint-cli2 '**/*.{md,markdown}'", - "lint:md:fix": "markdownlint-cli2 --fix '**/*.{md,markdown}'" + "lint:md:fix": "markdownlint-cli2 --fix '**/*.{md,mdx,markdown}'" }, "dependencies": { "@docusaurus/core": "3.7.0", From 50a1b8ee3fd8cf6aecda150993deab2f935ee4c2 Mon Sep 17 00:00:00 2001 From: Alex Ackermann Date: Mon, 14 Jul 2025 16:20:45 +0200 Subject: [PATCH 2/2] add mdx --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8430da7f..7258bf95 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "build-git-batch": "docker run --rm -w $(pwd) -v $(pwd):$(pwd) quay.io/thegeeklab/git-batch", "format:check": "prettier --check '**/*.{md,mdx,markdown}'", "format:write": "prettier --write '**/*.{md,mdx,markdown}'", - "lint:md": "markdownlint-cli2 '**/*.{md,markdown}'", + "lint:md": "markdownlint-cli2 '**/*.{md,mdx,markdown}'", "lint:md:fix": "markdownlint-cli2 --fix '**/*.{md,mdx,markdown}'" }, "dependencies": {