Skip to content

Commit ba9b3cf

Browse files
Add pretty formatting (#29)
* Test * Add pretty formatting * Fix Tests * Fix Tests * Fix Tests * Fix * Add pretty formatting fix * Fix * Test * Fix tests * Clean typeckech * Add prettier check * Fix api tsconfig * Fix api tsconfig * Fix tsconfig * Fix * Fix * Prettier
1 parent 1994697 commit ba9b3cf

695 files changed

Lines changed: 22743 additions & 23570 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.aiassistant/rules/guidelines.md

Lines changed: 153 additions & 172 deletions
Large diffs are not rendered by default.

.github/ISSUE_TEMPLATE/other.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ body:
1212
attributes:
1313
label: Info
1414
description: |
15-
- Browser: [e.g. chrome, safari]
16-
- Device (if mobile): [e.g. iPhone6]
17-
- Build info
15+
- Browser: [e.g. chrome, safari]
16+
- Device (if mobile): [e.g. iPhone6]
17+
- Build info
1818
placeholder: |
1919
Build info from `Settings` -> `About`
2020
validations:

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
- [ ] Tests added and passed if fixing a bug or adding a new feature.
55

66
### Description
7-
<!-- Describe your changes in detail -->
87

8+
<!-- Describe your changes in detail -->

.github/copilot-instructions.md

Lines changed: 151 additions & 172 deletions
Large diffs are not rendered by default.

.github/workflows/cd-android-live-update.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
name: CD Android Live Update
22
on:
33
push:
4-
branches: [ main, master ]
4+
branches: [main, master]
55
paths:
6-
- "android/capawesome.json"
7-
- ".github/workflows/cd-android-live-update.yml"
6+
- 'android/capawesome.json'
7+
- '.github/workflows/cd-android-live-update.yml'
88

99
jobs:
1010
deploy:
@@ -15,7 +15,7 @@ jobs:
1515
- name: Checkout
1616
uses: actions/checkout@v4
1717
with:
18-
fetch-depth: 0 # we need full history for git log
18+
fetch-depth: 0 # we need full history for git log
1919

2020
- name: Install jq
2121
run: sudo apt-get install -y jq

.github/workflows/cd-api.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
name: CD API
22
on:
33
push:
4-
branches: [ main, master ]
4+
branches: [main, master]
55
paths:
6-
- "backend/api/package.json"
7-
- ".github/workflows/cd-api.yml"
6+
- 'backend/api/package.json'
7+
- '.github/workflows/cd-api.yml'
88

99
jobs:
1010
deploy:
@@ -15,7 +15,7 @@ jobs:
1515
- name: Checkout
1616
uses: actions/checkout@v4
1717
with:
18-
fetch-depth: 0 # we need full history for git log
18+
fetch-depth: 0 # we need full history for git log
1919

2020
- name: Install jq
2121
run: sudo apt-get install -y jq

.github/workflows/cd.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@ name: CD
22

33
# Must select "Read and write permissions" in GitHub → Repo → Settings → Actions → General → Workflow permissions
44

5-
65
on:
76
push:
8-
branches: [ main, master ]
7+
branches: [main, master]
98
paths:
10-
- "package.json"
11-
- ".github/workflows/cd.yml"
9+
- 'package.json'
10+
- '.github/workflows/cd.yml'
1211

1312
jobs:
1413
release:
@@ -18,7 +17,7 @@ jobs:
1817
- name: Checkout repo
1918
uses: actions/checkout@master
2019
with:
21-
fetch-depth: 0 # To fetch all history for tags
20+
fetch-depth: 0 # To fetch all history for tags
2221

2322
- name: Setup Node.js
2423
uses: actions/setup-node@v4
@@ -32,4 +31,4 @@ jobs:
3231
git config --global user.name "github-actions[bot]"
3332
git config --global user.email "github-actions[bot]@users.noreply.github.com"
3433
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
35-
./scripts/release.sh
34+
./scripts/release.sh

.github/workflows/ci-e2e.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: E2E Tests
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [main]
66
pull_request:
7-
branches: [ main ]
7+
branches: [main]
88

99
jobs:
1010
e2e:
@@ -26,7 +26,7 @@ jobs:
2626
uses: actions/setup-java@v4
2727
with:
2828
distribution: 'temurin'
29-
java-version: '21' # Required for firebase-tools@15+
29+
java-version: '21' # Required for firebase-tools@15+
3030

3131
- name: Setup Supabase CLI
3232
uses: supabase/setup-cli@v1
@@ -41,8 +41,8 @@ jobs:
4141

4242
- name: Run E2E tests
4343
env:
44-
SKIP_DB_CLEANUP: true # Don't try to stop Docker in CI
45-
FIREBASE_TOKEN: "dummy" # Suppresses auth warning
44+
SKIP_DB_CLEANUP: true # Don't try to stop Docker in CI
45+
FIREBASE_TOKEN: 'dummy' # Suppresses auth warning
4646
# or
4747
run: |
4848
yarn test:e2e
@@ -61,4 +61,4 @@ jobs:
6161
with:
6262
name: test-results
6363
path: test-results/
64-
retention-days: 7
64+
retention-days: 7

.github/workflows/ci.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Jest Tests
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [main]
66
pull_request:
7-
branches: [ main ]
7+
branches: [main]
88

99
jobs:
1010
ci:
@@ -29,22 +29,22 @@ jobs:
2929
run: yarn lint
3030

3131
- name: Type check
32-
run: npx tsc --noEmit
32+
run: yarn typecheck
3333

3434
- name: Run Jest tests
3535
env:
3636
NEXT_PUBLIC_FIREBASE_ENV: DEV
3737
run: |
3838
yarn test:coverage
39-
# npm install -g lcov-result-merger
40-
# mkdir coverage
41-
# lcov-result-merger \
42-
# "backend/api/coverage/lcov.info" \
43-
# "backend/shared/coverage/lcov.info" \
44-
# "backend/email/coverage/lcov.info" \
45-
# "common/coverage/lcov.info" \
46-
# "web/coverage/lcov.info" \
47-
# > coverage/lcov.info
39+
# npm install -g lcov-result-merger
40+
# mkdir coverage
41+
# lcov-result-merger \
42+
# "backend/api/coverage/lcov.info" \
43+
# "backend/shared/coverage/lcov.info" \
44+
# "backend/email/coverage/lcov.info" \
45+
# "common/coverage/lcov.info" \
46+
# "web/coverage/lcov.info" \
47+
# > coverage/lcov.info
4848

4949
- name: Upload coverage to Codecov
5050
uses: codecov/codecov-action@v5

0 commit comments

Comments
 (0)