Skip to content
This repository was archived by the owner on Sep 12, 2024. It is now read-only.

Prettier husky #415

Closed
wants to merge 9 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Deploy Image to CapRrover
uses: caprover/[email protected]
with:
server: "${{ secrets.CAPROVER_SERVER }}"
server: '${{ secrets.CAPROVER_SERVER }}'
app: finder
token: "${{ secrets.CAPROVER_TOKEN }}"
token: '${{ secrets.CAPROVER_TOKEN }}'
image: ghcr.io/eddiehubcommunity/finder:latest
2 changes: 2 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
. "$(dirname "$0")/_/husky.sh"

npx lint-staged

npx prettier --ignore-path .prettierignore --check --plugin prettier-plugin-svelte .
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Ignoring CHANGELOG.md because it will get overwritten by the next release. We can commit it, but the changes won't be durable.
CHANGELOG.md
/CHANGELOG.md
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"preview": "vite preview",
"check": "svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-check --tsconfig ./tsconfig.json --watch",
"lint": "prettier --ignore-path .gitignore --check --plugin prettier-plugin-svelte . ; eslint --ignore-path .gitignore .",
"format": "prettier --ignore-path .gitignore --write --plugin prettier-plugin-svelte .",
"lint": "prettier --ignore-path .prettierignore --check --plugin prettier-plugin-svelte . ; eslint --ignore-path .gitignore .",
"format": "prettier --ignore-path .prettierignore --write --plugin prettier-plugin-svelte .",
"validate": "npx svelte-check --fail-on-warnings",
"prepare": "husky install",
"test": "playwright test",
Expand Down
3 changes: 1 addition & 2 deletions tests/docs/introduction.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ test('Introduction element has the same name as the page headline', async ({ pag
const introElement = await page.locator('.space-y-4 .active').innerHTML();
const introElementName = introElement.toString();
expect(introElementName).toEqual(pageHeadlineName);
},
);
});

test('Introduction element is highlighted as yellow when hovered-over', async ({ page }) => {
// navigate to the docs landing page /docs/testing
Expand Down
Loading