Skip to content

Commit 0c956ed

Browse files
committed
Revert "chore(tooling): adopt vite+ checks and task runner"
This reverts commit adcb074.
1 parent adcb074 commit 0c956ed

12 files changed

Lines changed: 428 additions & 1289 deletions

File tree

apps/web/.oxfmtrc.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"$schema": "./node_modules/oxfmt/configuration_schema.json",
3+
"printWidth": 80,
4+
"experimentalSortPackageJson": false,
5+
"ignorePatterns": []
6+
}

apps/web/.oxlintrc.json

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
{
2+
"$schema": "./node_modules/oxlint/configuration_schema.json",
3+
"plugins": [],
4+
"categories": {
5+
"correctness": "off"
6+
},
7+
"env": {
8+
"builtin": true
9+
},
10+
"ignorePatterns": [
11+
"out/**",
12+
"build/**",
13+
"dist/**",
14+
".output/**",
15+
"**/node_modules/**"
16+
],
17+
"overrides": [
18+
{
19+
"files": ["**/*.{js,jsx,mjs,ts,tsx,mts,cts}"],
20+
"rules": {
21+
"react/display-name": "error",
22+
"react/jsx-key": "error",
23+
"react/jsx-no-comment-textnodes": "error",
24+
"react/jsx-no-duplicate-props": "error",
25+
"react/jsx-no-target-blank": "off",
26+
"react/jsx-no-undef": "error",
27+
"react/no-children-prop": "error",
28+
"react/no-danger-with-children": "error",
29+
"react/no-direct-mutation-state": "error",
30+
"react/no-find-dom-node": "error",
31+
"react/no-is-mounted": "error",
32+
"react/no-render-return-value": "error",
33+
"react/no-string-refs": "error",
34+
"react/no-unescaped-entities": "error",
35+
"react/no-unknown-property": "off",
36+
"react/no-unsafe": "off",
37+
"react/react-in-jsx-scope": "off",
38+
"react/require-render-return": "error",
39+
"react-hooks/rules-of-hooks": "error",
40+
"react-hooks/exhaustive-deps": "warn",
41+
"import/no-anonymous-default-export": "warn",
42+
"jsx-a11y/alt-text": [
43+
"warn",
44+
{
45+
"elements": ["img"],
46+
"img": ["Image"]
47+
}
48+
],
49+
"jsx-a11y/aria-props": "warn",
50+
"jsx-a11y/aria-proptypes": "warn",
51+
"jsx-a11y/aria-unsupported-elements": "warn",
52+
"jsx-a11y/role-has-required-aria-props": "warn",
53+
"jsx-a11y/role-supports-aria-props": "warn"
54+
},
55+
"globals": {
56+
"AudioWorkletGlobalScope": "readonly",
57+
"AudioWorkletProcessor": "readonly",
58+
"currentFrame": "readonly",
59+
"currentTime": "readonly",
60+
"registerProcessor": "readonly",
61+
"sampleRate": "readonly",
62+
"WorkletGlobalScope": "readonly"
63+
},
64+
"plugins": ["react", "react-perf", "import", "jsx-a11y"],
65+
"env": {
66+
"browser": true,
67+
"node": true
68+
}
69+
}
70+
]
71+
}

apps/web/package.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@
77
"build": "vite build && tsc -p tsconfig.start.json --noEmit",
88
"preview": "vite preview",
99
"start": "node .output/server/index.mjs",
10-
"routes:generate": "tsr generate"
10+
"routes:generate": "tsr generate",
11+
"lint": "pnpm routes:generate && oxlint --type-aware --format=stylish --type-check --report-unused-disable-directives",
12+
"lint:fix": "pnpm routes:generate && oxlint --type-aware --format=stylish --type-check --fix --report-unused-disable-directives",
13+
"lint:github": "pnpm routes:generate && oxlint --type-aware --type-check --format=github --report-unused-disable-directives",
14+
"fmt": "oxfmt",
15+
"fmt:check": "oxfmt --check"
1116
},
1217
"dependencies": {
1318
"@ariakit/react": "^0.4.21",
@@ -56,6 +61,9 @@
5661
"fontaine": "^0.8.0",
5762
"image-size": "^2.0.2",
5863
"nitro": "npm:nitro-nightly@3.0.1-20260508-123613-d2e64906",
64+
"oxfmt": "^0.28.0",
65+
"oxlint": "^1.43.0",
66+
"oxlint-tsgolint": "^0.11.5",
5967
"tailwindcss": "^4",
6068
"tw-animate-css": "^1",
6169
"typescript": "^5.9.3",

apps/web/src/routes/writing/dont-believe-in-yourself.tsx

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -39,22 +39,24 @@ function DontBelieveContent() {
3939
return (
4040
<>
4141
<MDX
42-
components={{
43-
Blur: (props) => (
44-
<Blur className="cursor-not-allowed" {...props} />
45-
// https://twitter.com/MarcosNASAG/status/1656626373534916608?s=20
46-
),
47-
blockquote: (props) => (
48-
<blockquote
49-
className="-indent-4 text-3xl text-gray-12 sm:-indent-6 sm:text-5xl"
50-
{...props}
51-
/>
52-
),
53-
strong: (props) => <span className="text-gray-12" {...props} />,
54-
em: (props) => <em className="italic text-gray-10" {...props} />,
55-
}}
56-
>
57-
{`
42+
components={{
43+
Blur: (props) => (
44+
<Blur className="cursor-not-allowed" {...props} />
45+
// https://twitter.com/MarcosNASAG/status/1656626373534916608?s=20
46+
),
47+
blockquote: (props) => (
48+
<blockquote
49+
className="-indent-4 text-3xl text-gray-12 sm:-indent-6 sm:text-5xl"
50+
{...props}
51+
/>
52+
),
53+
strong: (props) => <span className="text-gray-12" {...props} />,
54+
em: (props) => (
55+
<em className="italic text-gray-10" {...props} />
56+
),
57+
}}
58+
>
59+
{`
5860
> "Don't believe in yourself. Believe in the me that believes in you"
5961
6062
Is a cheesy quote from an over the top animation that had way too much of an impact on me recently.
@@ -69,7 +71,7 @@ function DontBelieveContent() {
6971
<br />
7072
I'll eventually outgrow this, but right now, I'm happy to use such amazing people as facades that enable trust in myself, even if indirectly.
7173
`}
72-
</MDX>
74+
</MDX>
7375
</>
7476
);
7577
}

0 commit comments

Comments
 (0)