Skip to content

Commit d4c12c4

Browse files
maxholmanclaude
andcommitted
chore(website): replace biome with oxlint/oxfmt, fix lint errors, update deps
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 67ebf9b commit d4c12c4

16 files changed

Lines changed: 1223 additions & 1132 deletions

website/.oxfmtrc.json

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"$schema": "./node_modules/oxfmt/configuration_schema.json",
3+
4+
"useTabs": true,
5+
"printWidth": 80,
6+
"ignorePatterns": [
7+
// build output
8+
"**/dist",
9+
"**/build",
10+
11+
// next.js
12+
"**/.next",
13+
"**/.open-next",
14+
15+
// wrangler generated
16+
"**/.wrangler",
17+
"**/worker-configuration.d.ts",
18+
19+
// payload cms generated
20+
"**/payload-types.ts",
21+
"**/importMap.js"
22+
],
23+
"sortPackageJson": {
24+
"sortScripts": true
25+
},
26+
27+
"sortImports": {
28+
"groups": [
29+
"builtin",
30+
"external",
31+
"internal",
32+
["parent", "sibling", "index"]
33+
],
34+
"newlinesBetween": false
35+
},
36+
37+
"overrides": [
38+
{
39+
"files": ["*.jsonc"],
40+
"options": {
41+
"trailingComma": "none"
42+
}
43+
}
44+
]
45+
}

website/.oxlintrc.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"$schema": "./node_modules/oxlint/configuration_schema.json",
3+
"plugins": ["react", "typescript"],
4+
"categories": {
5+
"correctness": "error",
6+
"suspicious": "warn",
7+
// "pedantic": "warn",
8+
"perf": "warn"
9+
// "style": "warn"
10+
},
11+
"rules": {
12+
"typescript/no-non-null-assertion": "error",
13+
14+
"react/rules-of-hooks": "error",
15+
16+
// we use react 19
17+
"react/react-in-jsx-scope": "off",
18+
19+
// testing this for pure functions
20+
"func-style": ["error", "declaration", { "allowArrowFunctions": true }],
21+
"prefer-arrow-callback": "error",
22+
23+
// JavaScript allows the omission of curly braces when a block contains only one statement. However, it is considered by many to be best practice to never omit curly braces around blocks, even when they are optional, because it can lead to bugs and reduces code clarity. So the following:
24+
"curly": ["error", "all"],
25+
26+
// allow .css imports without extension
27+
"import/extensions": [
28+
"error",
29+
{
30+
"css": "always"
31+
}
32+
]
33+
}
34+
}

website/WRITING.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,34 @@
33
Before making any changes or commits: STOP. `cat ../standards/writing/technical.md`
44

55
## 1. Frontmatter & SEO
6+
67
Every page requires metadata for navigation and search:
8+
79
- `title`: Short/concise. Used in sidebar and `<title>`.
810
- `description`: 1-2 sentence summary. **Do not repeat this as the first sentence of prose.**
911
- `order`: Integer for sidebar sorting.
1012

1113
### Heading SEO
14+
1215
- **H1 Start:** Every document must start with a single H1 (`#`) matching the `title`.
1316
- **Contextual H1s:** Include descriptive suffixes (e.g., "# [Feature] Reference") to distinguish page content from sidebar labels.
1417

1518
## 2. Custom Components (Markdoc/MDX)
19+
1620
Use these built-in tags to add structure:
21+
1722
- **Callouts:** `{% callout type="..." title="..." %}`. Types: `info`, `note`, `tip`, `warning`.
1823
- **Steps:** `{% steps %}` and `{% step %}` for ALL sequential processes.
1924
- **Grids/Cards:** `{% grid %}` and `{% card %}` for parallel comparisons only.
2025
- **Traffic Flows:** `{% trafficflow flow="..." label="..." /%}` for topology diagrams.
2126

2227
## 3. Code & CLI Conventions
28+
2329
- **Binary invocation:** Use the binary name directly (e.g., `[binary]`) — never `./[binary]`.
2430
- **IP Realism:** Use private IPs (`10.0.0.5`, `192.168.1.1`) and standard ports (`443`, `8080`).
2531
- **Formatting:** Use backticks for CLI flags (`--fast`), file paths (`/etc/config`), and env vars (`$HOME`).
2632

2733
## 4. Build-Time Rules (Technical)
34+
2835
- **Prop Consistency:** Component props for code tags must use `content` and `language` to match standard Markdown highlighters.
2936
- **Tailwind v4 Scoped Styles:** When using `@apply` in `<style>` blocks, include `@reference "../styles/global.css";` to avoid build errors.

website/astro.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import markdoc from "@astrojs/markdoc";
22
import sitemap from "@astrojs/sitemap";
33
import tailwindcss from "@tailwindcss/vite";
4-
import { defineConfig } from "astro/config";
54
import icon from "astro-icon";
65
import pagefind from "astro-pagefind";
6+
import { defineConfig } from "astro/config";
77
import { syncer } from "./vite-plugin-syncer.ts";
88

99
export default defineConfig({

website/biome.json

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

website/package.json

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
11
{
22
"name": "@wallhack/website",
3-
"type": "module",
43
"version": "0.0.1",
5-
"packageManager": "pnpm@10.30.2",
4+
"type": "module",
65
"scripts": {
7-
"dev": "astro dev",
6+
"astro": "astro",
87
"build": "astro build",
9-
"preview": "wrangler dev",
8+
"check": "oxlint && oxfmt --check .",
109
"deploy": "astro build && wrangler deploy",
11-
"astro": "astro",
12-
"check": "biome check",
13-
"format": "biome check --write"
14-
},
15-
"devDependencies": {
16-
"@biomejs/biome": "^2.4.7",
17-
"vite": "^7.3.1",
18-
"wrangler": "^4.73.0"
10+
"dev": "astro dev",
11+
"preview": "wrangler dev"
1912
},
2013
"dependencies": {
21-
"@astrojs/markdoc": "^0.15.11",
14+
"@astrojs/markdoc": "^1.0.2",
2215
"@astrojs/sitemap": "^3.7.1",
2316
"@fontsource-variable/jetbrains-mono": "^5.2.8",
2417
"@fontsource/dm-serif-display": "^5.2.8",
2518
"@fontsource/inter": "^5.2.8",
2619
"@iconify-json/lucide": "^1.2.98",
2720
"@iconify-json/ph": "^1.2.2",
2821
"@resvg/resvg-js": "^2.6.2",
29-
"@tailwindcss/vite": "^4.2.1",
30-
"astro": "^5.18.1",
22+
"@tailwindcss/vite": "^4.2.2",
23+
"astro": "^6.0.6",
3124
"astro-icon": "^1.1.5",
3225
"astro-pagefind": "^1.8.5",
3326
"class-variance-authority": "^0.7.1",
3427
"clsx": "^2.1.1",
35-
"satori": "^0.19.3",
36-
"shiki": "^3.23.0",
28+
"satori": "^0.25.0",
29+
"shiki": "^4.0.2",
3730
"tailwind-merge": "^3.5.0",
38-
"tailwindcss": "^4.2.1"
39-
}
31+
"tailwindcss": "^4.2.2"
32+
},
33+
"devDependencies": {
34+
"oxfmt": "^0.41.0",
35+
"oxlint": "^1.56.0",
36+
"vite": "^8.0.1",
37+
"wrangler": "^4.75.0"
38+
},
39+
"packageManager": "pnpm@10.30.2"
4040
}

0 commit comments

Comments
 (0)