Skip to content
Merged
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/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ jobs:
- name: Lint
run: pnpm lint

# Check formatting with Prettier
# Check formatting with Oxfmt
- name: Check formatting
run: pnpm prettier
run: pnpm fmt:check

# Check for type and other errors
- name: Type and error check
Expand Down
50 changes: 50 additions & 0 deletions .oxfmtrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"trailingComma": "es5",
"semi": true,
"singleQuote": true,
"jsxSingleQuote": false,
"tabWidth": 2,
"printWidth": 80,
"sortImports": {
"customGroups": [
{
"groupName": "react",
"elementNamePattern": [
"react",
"react-dom",
"react-native",
"next",
"expo",
"expo-*"
]
}
],
"groups": [
"type-import",
"react",
["value-builtin", "value-external"],
"type-internal",
"value-internal",
["type-parent", "type-sibling", "type-index"],
["value-parent", "value-sibling", "value-index"],
"unknown"
],
"newlinesBetween": false
},
"sortTailwindcss": {},
"sortPackageJson": false,
"ignorePatterns": [
"pnpm-lock.yaml",
"package-lock.json",
"yarn.lock",
"node_modules/",
"dist/",
"_site/",
".astro/",
".netlify/",
".turbo/",
"*.log",
".DS_Store",
".github/CODEOWNERS"
]
}
58 changes: 58 additions & 0 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["typescript", "react", "unicorn"],
"jsPlugins": ["eslint-plugin-astro"],
"env": {
"builtin": true,
"browser": true,
"node": true,
"es2024": true
},
"ignorePatterns": [
"**/*.config.js",
"**/*.config.cjs",
"**/*.config.mjs",
"eslint.config.mjs",
"pnpm-lock.yaml",
"**/*.d.ts",
"dist/**",
".astro/**",
".netlify/**",
".vercel/**",
"_site/**",
"node_modules/**",
"scripts/**"
],
"rules": {
"no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_"
}
],
"react/rules-of-hooks": "error",
"react/exhaustive-deps": "warn",
"typescript/explicit-function-return-type": "off",
"typescript/no-explicit-any": "warn"
},
"overrides": [
{
"files": ["**/*.astro"],
"env": {
"astro": true,
"browser": true,
"node": true
}
},
{
"files": ["**/*.ts", "**/*.tsx", "**/*.mts", "**/*.cts"],
"rules": {
"no-var": "error",
"prefer-const": "error",
"prefer-rest-params": "error",
"prefer-spread": "error"
}
}
]
}
25 changes: 0 additions & 25 deletions .prettierignore

This file was deleted.

38 changes: 0 additions & 38 deletions .prettierrc.mjs

This file was deleted.

4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ All commands are run from the root of the project, from a terminal:
| `pnpm preview` | Preview your build locally, before deploying |
| `pnpm astro ...` | CLI commands like `astro add`, `astro check` |
| `pnpm astro -- --help` | Get help using the Astro CLI |
| `pnpm prettier-fix` | Format your code with Prettier |
| `pnpm lint` | Lint your code with ESLint |
| `pnpm fmt` | Format your code with Oxfmt |
| `pnpm lint` | Lint your code with OXLint |

## 👀 Want to learn more about Astro?

Expand Down
98 changes: 0 additions & 98 deletions eslint.config.mjs

This file was deleted.

2 changes: 2 additions & 0 deletions knip.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ const config: KnipConfig = {
'@radix-ui/react-scroll-area',
'framer-motion',
'posthog-js',
'eslint-plugin-astro',
'globals',
],

// Icon and UI components re-export named + default — this is intentional
Expand Down
32 changes: 16 additions & 16 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
[build]
command = "pnpm run build"
publish = "dist"
command = "pnpm run build"
publish = "dist"

[build.environment]
NODE_VERSION = "24"
NODE_VERSION = "24"

[build.processing.html]
pretty_urls = false
pretty_urls = false

# Cache static assets for 1 year
[[headers]]
for = "/_astro/*"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable"
for = "/_astro/*"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable"

[[headers]]
for = "/*.png"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable"
for = "/*.png"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable"

[[headers]]
for = "/*.svg"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable"
for = "/*.svg"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable"

[[headers]]
for = "/*.woff2"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable"
for = "/*.woff2"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable"
21 changes: 6 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
"preview": "astro preview",
"astro": "astro",
"sync": "astro sync",
"lint": "eslint .",
"lint-fix": "eslint --fix .",
"prettier": "prettier --check .",
"prettier-fix": "prettier --write .",
"lint": "oxlint",
"lint:fix": "oxlint --fix",
"fmt": "oxfmt",
"fmt:check": "oxfmt --check",
"check-links": "node scripts/check-tool-links.mjs",
"depcheck": "knip",
"test": "vitest run"
Expand Down Expand Up @@ -56,27 +56,18 @@
"tw-animate-css": "^1.3.0"
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"@ianvs/prettier-plugin-sort-imports": "^4.7.1",
"@tailwindcss/typography": "^0.5.19",
"@tailwindcss/vite": "^4.2.2",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.0",
"eslint": "^10.1.0",
"eslint-config-prettier": "^10.1.0",
"eslint-plugin-astro": "^1.6.0",
"eslint-plugin-jsx-a11y": "^6.10.2",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^7.0.0",
"globals": "^17.4.0",
"knip": "^6.0.1",
"open-graph-scraper": "^6.11.0",
"prettier": "^3.8.1",
"prettier-plugin-astro": "^0.14.1",
"prettier-plugin-tailwindcss": "^0.7.0",
"oxfmt": "^0.43.0",
"oxlint": "^1.58.0",
"tailwindcss": "^4.2.2",
"typescript": "5.9.3",
"typescript-eslint": "^8.57.1",
"vitest": "^4.1.0"
}
}
Loading