From a7347bf5952f3074126feb96d7a530bba07f8302 Mon Sep 17 00:00:00 2001 From: Zsolt Ero Date: Wed, 25 Sep 2024 14:33:59 +0200 Subject: [PATCH] prettier on Markdown only --- .prettierrc.js | 18 ------------------ lint.sh | 3 +++ 2 files changed, 3 insertions(+), 18 deletions(-) delete mode 100644 .prettierrc.js diff --git a/.prettierrc.js b/.prettierrc.js deleted file mode 100644 index c16b819..0000000 --- a/.prettierrc.js +++ /dev/null @@ -1,18 +0,0 @@ -const config = { - printWidth: 100, - semi: false, - singleQuote: true, - arrowParens: 'avoid', - - plugins: ['prettier-plugin-astro'], - overrides: [ - { - files: '*.astro', - options: { - parser: 'astro', - }, - }, - ], -} - -module.exports = config diff --git a/lint.sh b/lint.sh index f8c8919..06b7f5b 100755 --- a/lint.sh +++ b/lint.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash + +node_modules/.bin/prettier -w "**/*.md" + # biome #pnpm biome check --write --unsafe --colors=off --log-level=info --log-kind=pretty . | grep path | sort pnpm biome check --write --unsafe .