diff --git a/.github/workflows/pull_request.yaml b/.github/workflows/pull_request.yaml index e031a93..c902e22 100644 --- a/.github/workflows/pull_request.yaml +++ b/.github/workflows/pull_request.yaml @@ -51,6 +51,9 @@ jobs: - run: yarn install --frozen-lockfile --network-timeout 120000 - run: yarn run typecheck - run: yarn run lint + # Windows checkouts get CRLF line endings, which prettier reports as unformatted. + - run: yarn run format:check + if: runner.os == 'Linux' - run: yarn run build # Sanity-check `npm pack` only once (Linux + Node 24) to avoid # 6-way artifact-name collisions; lint/build coverage is what diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..2e8551b --- /dev/null +++ b/.prettierignore @@ -0,0 +1,4 @@ +.scoria/ +scoria.config.json +dist/ +coverage/ diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..91a3517 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,3 @@ +{ + "printWidth": 160 +} diff --git a/demo/App.vue b/demo/App.vue index 9093c2d..9e81355 100644 --- a/demo/App.vue +++ b/demo/App.vue @@ -19,11 +19,7 @@

View Component

- +
@@ -44,12 +40,7 @@