Skip to content

Commit ebb613d

Browse files
authored
Merge branch 'apisyouwonthate:main' into master
2 parents 613e451 + 4896302 commit ebb613d

92 files changed

Lines changed: 4498 additions & 4549 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.

.github/dependabot.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ updates:
55
directory: '/'
66
schedule:
77
interval: 'weekly'
8+
cooldown:
9+
default-days: 2
810
open-pull-requests-limit: 10
911
labels:
1012
- 'dependencies'

.github/workflows/build-and-test.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- uses: actions/checkout@v6
15+
- uses: actions/checkout@v7
1616
with:
1717
fetch-depth: 0
1818

@@ -24,11 +24,11 @@ jobs:
2424

2525
# Install pnpm (version from package.json packageManager field)
2626
- name: Install pnpm
27-
uses: pnpm/action-setup@v4
27+
uses: pnpm/action-setup@v6
2828

2929
# Cache pnpm modules
3030
- name: Cache pnpm modules
31-
uses: actions/cache@v5
31+
uses: actions/cache@v6
3232
with:
3333
path: ~/.pnpm-store
3434
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
@@ -51,9 +51,9 @@ jobs:
5151
- name: Lint
5252
run: pnpm lint
5353

54-
# Check formatting with Prettier
54+
# Check formatting with Oxfmt
5555
- name: Check formatting
56-
run: pnpm prettier
56+
run: pnpm fmt:check
5757

5858
# Check for type and other errors
5959
- name: Type and error check

.github/workflows/check-tool-links.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: actions/checkout@v6
14+
- uses: actions/checkout@v7
1515

1616
- name: Set up Node.js
1717
uses: actions/setup-node@v6
1818
with:
1919
node-version: '24'
2020

2121
- name: Install pnpm
22-
uses: pnpm/action-setup@v4
22+
uses: pnpm/action-setup@v6
2323

2424
- name: Install dependencies
2525
run: pnpm install
@@ -29,7 +29,7 @@ jobs:
2929

3030
- name: Create Issue if Links are Broken
3131
if: failure()
32-
uses: actions/github-script@v8
32+
uses: actions/github-script@v9
3333
with:
3434
script: |
3535
const fs = require('fs');

.gitignore

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ dist/
66

77
# dependencies
88
node_modules/
9+
.pnpm-store/
910

1011
# logs
1112
npm-debug.log*
@@ -28,8 +29,5 @@ coverage/
2829

2930
.turbo/
3031

31-
# build cache
32-
.cache/
33-
3432
# check errors
3533
.lint-check-errors.md

.oxfmtrc.json

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
"trailingComma": "es5",
3+
"semi": true,
4+
"singleQuote": true,
5+
"jsxSingleQuote": false,
6+
"tabWidth": 2,
7+
"printWidth": 80,
8+
"sortImports": {
9+
"customGroups": [
10+
{
11+
"groupName": "react",
12+
"elementNamePattern": [
13+
"react",
14+
"react-dom",
15+
"react-native",
16+
"next",
17+
"expo",
18+
"expo-*"
19+
]
20+
}
21+
],
22+
"groups": [
23+
"type-import",
24+
"react",
25+
["value-builtin", "value-external"],
26+
"type-internal",
27+
"value-internal",
28+
["type-parent", "type-sibling", "type-index"],
29+
["value-parent", "value-sibling", "value-index"],
30+
"unknown"
31+
],
32+
"newlinesBetween": false
33+
},
34+
"sortTailwindcss": {},
35+
"sortPackageJson": false,
36+
"ignorePatterns": [
37+
"pnpm-lock.yaml",
38+
"package-lock.json",
39+
"yarn.lock",
40+
"node_modules/",
41+
"dist/",
42+
"_site/",
43+
".astro/",
44+
".netlify/",
45+
".turbo/",
46+
"*.log",
47+
".DS_Store",
48+
".github/CODEOWNERS"
49+
]
50+
}

.oxlintrc.json

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
{
2+
"$schema": "./node_modules/oxlint/configuration_schema.json",
3+
"plugins": ["typescript", "react", "unicorn"],
4+
"jsPlugins": ["eslint-plugin-astro"],
5+
"env": {
6+
"builtin": true,
7+
"browser": true,
8+
"node": true,
9+
"es2024": true
10+
},
11+
"ignorePatterns": [
12+
"**/*.config.js",
13+
"**/*.config.cjs",
14+
"**/*.config.mjs",
15+
"eslint.config.mjs",
16+
"pnpm-lock.yaml",
17+
"**/*.d.ts",
18+
"dist/**",
19+
".astro/**",
20+
".netlify/**",
21+
".vercel/**",
22+
"_site/**",
23+
"node_modules/**",
24+
"scripts/**"
25+
],
26+
"rules": {
27+
"no-unused-vars": [
28+
"error",
29+
{
30+
"argsIgnorePattern": "^_",
31+
"varsIgnorePattern": "^_"
32+
}
33+
],
34+
"react/rules-of-hooks": "error",
35+
"react/exhaustive-deps": "warn",
36+
"typescript/explicit-function-return-type": "off",
37+
"typescript/no-explicit-any": "warn"
38+
},
39+
"overrides": [
40+
{
41+
"files": ["**/*.astro"],
42+
"env": {
43+
"astro": true,
44+
"browser": true,
45+
"node": true
46+
}
47+
},
48+
{
49+
"files": ["**/*.ts", "**/*.tsx", "**/*.mts", "**/*.cts"],
50+
"rules": {
51+
"no-var": "error",
52+
"prefer-const": "error",
53+
"prefer-rest-params": "error",
54+
"prefer-spread": "error"
55+
}
56+
}
57+
]
58+
}

.prettierignore

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

.prettierrc.mjs

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

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ All commands are run from the root of the project, from a terminal:
108108
| `pnpm preview` | Preview your build locally, before deploying |
109109
| `pnpm astro ...` | CLI commands like `astro add`, `astro check` |
110110
| `pnpm astro -- --help` | Get help using the Astro CLI |
111-
| `pnpm prettier-fix` | Format your code with Prettier |
112-
| `pnpm lint` | Lint your code with ESLint |
111+
| `pnpm fmt` | Format your code with Oxfmt |
112+
| `pnpm lint` | Lint your code with OXLint |
113113

114114
## 👀 Want to learn more about Astro?
115115

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,17 @@ OpenAPI.tools is maintained by [APIs You Won't Hate](https://apisyouwonthate.com
3737
- [Tailwind CSS](https://tailwindcss.com) — Styling
3838
- [Netlify](https://netlify.com) — Hosting
3939

40+
## Development
41+
42+
Run this first:
43+
44+
```sh
45+
corepack enable
46+
pnpm install
47+
```
48+
49+
Use Node.js 24 with this project. pnpm uses the package manager version pinned in `package.json`.
50+
4051
## License
4152

4253
MIT

0 commit comments

Comments
 (0)