From 3521dc8a3b37947ecda500bc974807a881654db2 Mon Sep 17 00:00:00 2001 From: Ashton Jordan Date: Thu, 5 Dec 2024 11:33:56 -0600 Subject: [PATCH] feature: Exclude .md files from prettier linting --- .github/workflows/prettier.yml | 2 +- .prettierignore | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 .prettierignore diff --git a/.github/workflows/prettier.yml b/.github/workflows/prettier.yml index 7f54ebd..fdd6a74 100644 --- a/.github/workflows/prettier.yml +++ b/.github/workflows/prettier.yml @@ -19,4 +19,4 @@ jobs: run: npm ci - name: Check formatting - run: npx prettier --check . + run: npx prettier . '!**/*.md' --check diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..0bae21d --- /dev/null +++ b/.prettierignore @@ -0,0 +1,2 @@ +# ignoring the READEME file due to linting sometimes messing up Markdown Tables +**/*.md \ No newline at end of file