Skip to content

Commit 0babe7e

Browse files
authored
style: remove prettier and migrate to antfu eslint config (#283)
1 parent ffd44c9 commit 0babe7e

22 files changed

+36479
-4166
lines changed

.claude/settings.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"permissions": {
3+
"allow": [
4+
"mcp__github__get_pull_request_files",
5+
"mcp__github__get_pull_request_comments",
6+
"mcp__github__get_pull_request"
7+
],
8+
"deny": [],
9+
"ask": []
10+
}
11+
}

.eslintrc.json

Lines changed: 0 additions & 15 deletions
This file was deleted.

.github/FUNDING.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
github: [amondnet]
44
patreon: amond
5-
open_collective: #amond
5+
open_collective: # amond
66
ko_fi: # Replace with a single Ko-fi username
77
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
88
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry

.github/workflows/ci.yml

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [master, main]
6+
pull_request:
7+
branches: [master, main]
8+
9+
jobs:
10+
lint:
11+
name: Lint
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
17+
- name: Setup Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: 20
21+
22+
- name: Setup pnpm
23+
uses: pnpm/action-setup@v4
24+
with:
25+
version: 10.15.0
26+
27+
- name: Install dependencies
28+
run: pnpm install
29+
30+
- name: Run ESLint
31+
run: pnpm run lint
32+
33+
test:
34+
name: Test
35+
runs-on: ubuntu-latest
36+
steps:
37+
- name: Checkout code
38+
uses: actions/checkout@v4
39+
40+
- name: Setup Node.js
41+
uses: actions/setup-node@v4
42+
with:
43+
node-version: 20
44+
45+
- name: Setup pnpm
46+
uses: pnpm/action-setup@v4
47+
with:
48+
version: 10.15.0
49+
50+
- name: Install dependencies
51+
run: pnpm install
52+
53+
- name: Run tests
54+
run: pnpm test
55+
56+
build:
57+
name: Build
58+
runs-on: ubuntu-latest
59+
steps:
60+
- name: Checkout code
61+
uses: actions/checkout@v4
62+
63+
- name: Setup Node.js
64+
uses: actions/setup-node@v4
65+
with:
66+
node-version: 20
67+
68+
- name: Setup pnpm
69+
uses: pnpm/action-setup@v4
70+
with:
71+
version: 10.15.0
72+
73+
- name: Install dependencies
74+
run: pnpm install
75+
76+
- name: Build distribution
77+
run: pnpm run package
78+
79+
- name: Verify dist folder exists
80+
run: |
81+
if [ ! -d "dist" ]; then
82+
echo "Error: dist folder was not created"
83+
exit 1
84+
fi
85+
echo "dist folder created successfully"
86+
ls -la dist/

.github/workflows/claude-code-review.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ jobs:
1717
# github.event.pull_request.user.login == 'external-contributor' ||
1818
# github.event.pull_request.user.login == 'new-developer' ||
1919
# github.event.pull_request.author_association == 'FIRST_TIME_CONTRIBUTOR'
20-
20+
2121
runs-on: ubuntu-latest
2222
permissions:
2323
contents: read
2424
pull-requests: read
2525
issues: read
2626
id-token: write
27-
27+
2828
steps:
2929
- name: Checkout repository
3030
uses: actions/checkout@v4
@@ -43,12 +43,11 @@ jobs:
4343
- Performance considerations
4444
- Security concerns
4545
- Test coverage
46-
46+
4747
Use the repository's CLAUDE.md for guidance on style and conventions. Be constructive and helpful in your feedback.
4848
4949
Use `gh pr comment` with your Bash tool to leave your review as a comment on the PR.
50-
50+
5151
# See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
5252
# or https://docs.anthropic.com/en/docs/claude-code/sdk#command-line for available options
5353
claude_args: '--allowed-tools "Bash(gh issue view:*),Bash(gh search:*),Bash(gh issue list:*),Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*),Bash(gh pr list:*)"'
54-

.github/workflows/claude.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
uses: anthropics/claude-code-action@v1
3636
with:
3737
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
38-
38+
3939
# This is an optional setting that allows Claude to read CI results on PRs
4040
additional_permissions: |
4141
actions: read
@@ -47,4 +47,3 @@ jobs:
4747
# See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
4848
# or https://docs.anthropic.com/en/docs/claude-code/sdk#command-line for available options
4949
# claude_args: '--model claude-opus-4-1-20250805 --allowed-tools Bash(gh pr:*)'
50-

.github/workflows/example-express-basic-auth.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ on:
55
- master
66
pull_request_target:
77

8-
98
jobs:
109
basic-auth:
1110
runs-on: ubuntu-latest
@@ -28,5 +27,5 @@ jobs:
2827
vercel-token: ${{ secrets.VERCEL_TOKEN }}
2928
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
3029
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID_AUTH }}
31-
vercel-args: '--prod'
30+
vercel-args: --prod
3231
working-directory: example/express-basic-auth

.github/workflows/example-scope.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ on:
55
- master
66
pull_request_target:
77

8-
9-
108
jobs:
119
static:
1210
runs-on: ubuntu-latest
@@ -30,6 +28,6 @@ jobs:
3028
vercel-token: ${{ secrets.VERCEL_TOKEN }}
3129
vercel-org-id: ${{ secrets.VERCEL_ORG_ID_TEAM_SCOPE }}
3230
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID_TEAM_SCOPE }}
33-
vercel-args: '--prod'
31+
vercel-args: --prod
3432
scope: ${{ secrets.VERCEL_SCOPE }}
3533
working-directory: example/team-scope

.github/workflows/test.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ on:
55
- master
66
pull_request_target:
77

8-
98
jobs:
109
deploy:
1110
runs-on: ubuntu-latest

.prettierrc.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)