From 8f3dd6264f975abf85155f0697a9e43bc8105215 Mon Sep 17 00:00:00 2001 From: winston Date: Sun, 19 Nov 2023 10:01:37 +0100 Subject: [PATCH] style: tweak prettier settings (#340) --- .github/workflows/format.yml | 2 +- .prettierignore | 6 +++--- .prettierrc | 6 ++---- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 53dffbb2..9bfdabdb 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -18,7 +18,7 @@ jobs: uses: actions/setup-node@v3 - name: Format userstyles - run: npx prettier --write styles/**/*.css + run: npx prettier --write . - name: Pull changes run: git pull diff --git a/.prettierignore b/.prettierignore index 6040c83a..3a574777 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,5 +1,5 @@ # Deno code is formatted with `deno fmt` -/src/*.ts +/scripts/ -# legacy stylus-preprocessor code -/styles/reddit/ +# auto-generated files +/styles/**/*.md diff --git a/.prettierrc b/.prettierrc index 9a8be122..304d4ef7 100644 --- a/.prettierrc +++ b/.prettierrc @@ -1,10 +1,8 @@ { "overrides": [ { - "files": "styles/**/*.css", - "options": { - "parser": "less" - } + "files": ["styles/**/*.css", "template/**/*.css"], + "options": { "parser": "less" } } ] }