Skip to content

Commit ce59abd

Browse files
authored
chore: resolve prettier/eslint-stylistic conflict (#401)
* antfu * lint * imports * git hooks * fix: buffer import * fix: lint * fix: husky * fix: dither types * fix: build deps first --------- Co-authored-by: Lucio Rubens <luciorubeens@users.noreply.github.com>
1 parent 940773f commit ce59abd

File tree

291 files changed

+10426
-8798
lines changed

Some content is hidden

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

291 files changed

+10426
-8798
lines changed

.github/workflows/frontend-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "Frontend Build Check"
1+
name: Frontend Build Check
22

33
on:
44
pull_request:
@@ -37,7 +37,7 @@ jobs:
3737
- uses: actions/setup-node@v4
3838
with:
3939
node-version-file: .nvmrc
40-
cache: "pnpm"
40+
cache: pnpm
4141

4242
- name: Install dependencies with pnpm
4343
run: pnpm install

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- uses: actions/setup-node@v4
2121
with:
2222
node-version-file: .nvmrc
23-
cache: 'pnpm'
23+
cache: pnpm
2424

2525
- name: Install dependencies with pnpm
2626
run: pnpm install
@@ -40,4 +40,4 @@ jobs:
4040
echo $mrdiff
4141
git diff
4242
exit 1
43-
fi
43+
fi

.github/workflows/mainnet-api-main.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ jobs:
2525
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN_API_MAIN }}
2626

2727
smoke-tests:
28-
needs: [ deploy-mainnet ]
28+
needs: [deploy-mainnet]
2929
if: needs.deploy-mainnet.result == 'success'
3030
uses: ./.github/workflows/smoke-tests.yml
3131
secrets: inherit
3232
with:
3333
app_name: dither-mainnet-api-main
3434

3535
notify:
36-
needs: [ smoke-tests ]
36+
needs: [smoke-tests]
3737
if: failure()
3838
runs-on: ubuntu-latest
3939
steps:
@@ -43,13 +43,13 @@ jobs:
4343
token: ${{ secrets.TELEGRAM_BOT_TOKEN }}
4444
message: |
4545
🚨 **Smoke Tests Failed** 🚨
46-
46+
4747
🔗 Repository: ${{ github.repository }}
4848
📝 Commit: ${{ github.event.commits[0].message }}
4949
👤 Author: ${{ github.actor }}
5050
⛓️‍💥 App: dither-mainnet-api-main
51-
52-
⚠️ **Failed Tests:**
51+
52+
⚠️ **Failed Tests:**
5353
🔍 [View Logs](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})
54-
54+
5555
Please investigate and fix ASAP! 🔧

.github/workflows/npm-publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_dispatch:
55
inputs:
66
package:
7-
description: "Package name to publish"
7+
description: Package name to publish
88
required: true
99
type: choice
1010
options:
@@ -22,8 +22,8 @@ jobs:
2222
uses: actions/setup-node@v4
2323
with:
2424
node-version: 20
25-
registry-url: "https://registry.npmjs.org/"
26-
scope: "@atomone"
25+
registry-url: 'https://registry.npmjs.org/'
26+
scope: '@atomone'
2727

2828
- name: Install pnpm
2929
run: npm install -g pnpm

.github/workflows/retype-action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ jobs:
2121

2222
- uses: retypeapp/action-github-pages@latest
2323
with:
24-
update-branch: true
24+
update-branch: true

.github/workflows/smoke-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- uses: actions/setup-node@v4
2121
with:
2222
node-version-file: .nvmrc
23-
cache: 'pnpm'
23+
cache: pnpm
2424

2525
- name: Install dependencies with pnpm
2626
run: pnpm install

.github/workflows/test.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,15 @@ jobs:
3737
- uses: actions/setup-node@v4
3838
with:
3939
node-version-file: .nvmrc
40-
cache: 'pnpm'
40+
cache: pnpm
4141

4242
- name: Install dependencies with pnpm
4343
run: pnpm install
4444

45+
- name: Build dependencies
46+
working-directory: packages/api-main
47+
run: pnpm build:deps
48+
4549
- name: Setup database schema
4650
working-directory: packages/api-main
4751
run: pnpm db:push:force

.github/workflows/testnet-api-main.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
uses: actions/setup-node@v4
4646
with:
4747
node-version-file: .nvmrc
48-
cache: "pnpm"
48+
cache: pnpm
4949

5050
- name: Install dependencies with pnpm
5151
run: pnpm install
@@ -75,7 +75,7 @@ jobs:
7575
pnpm test
7676
7777
deploy-testnet:
78-
needs: [ detect-changes, test ]
78+
needs: [detect-changes, test]
7979
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && needs.detect-changes.outputs.changed == 'true'
8080
runs-on: ubuntu-latest
8181
environment: testnet
@@ -94,15 +94,15 @@ jobs:
9494
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN_API_MAIN }}
9595

9696
smoke-tests:
97-
needs: [ deploy-testnet ]
97+
needs: [deploy-testnet]
9898
if: needs.deploy-testnet.result == 'success'
9999
uses: ./.github/workflows/smoke-tests.yml
100100
secrets: inherit
101101
with:
102102
app_name: dither-testnet-api-main
103103

104104
notify:
105-
needs: [ smoke-tests ]
105+
needs: [smoke-tests]
106106
if: failure()
107107
runs-on: ubuntu-latest
108108
steps:
@@ -112,13 +112,13 @@ jobs:
112112
token: ${{ secrets.TELEGRAM_BOT_TOKEN }}
113113
message: |
114114
🚨 **Smoke Tests Failed** 🚨
115-
115+
116116
🔗 Repository: ${{ github.repository }}
117117
📝 Commit: ${{ github.event.commits[0].message }}
118118
👤 Author: ${{ github.actor }}
119119
⛓️‍💥 App: dither-testnet-api-main
120-
121-
⚠️ **Failed Tests:**
120+
121+
⚠️ **Failed Tests:**
122122
🔍 [View Logs](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})
123-
123+
124124
Please investigate and fix ASAP! 🔧

.github/workflows/testnet-reader-main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
# Add reader-main specific test steps here
3838

3939
deploy-testnet:
40-
needs: [ detect-changes, test ]
40+
needs: [detect-changes, test]
4141
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && needs.detect-changes.outputs.changed == 'true'
4242
runs-on: ubuntu-latest
4343
environment: testnet

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pnpm lint-staged

0 commit comments

Comments
 (0)