Skip to content

Commit ac5226e

Browse files
committed
wip
1 parent 7e163ce commit ac5226e

10 files changed

Lines changed: 102 additions & 563 deletions

package-lock.json

Lines changed: 11 additions & 523 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"build": "vite build",
1111
"build:preview": "vite preview",
1212
"start": "vite",
13-
"build:types": "tsc",
13+
"build:types": "tsc -b",
1414
"lint": "eslint",
1515
"lint:fix": "eslint --fix",
1616
"fmt": "prettier --write .",
@@ -76,6 +76,7 @@
7676
"@eslint/core": "^1.2.1",
7777
"@playwright/test": "^1.59.1",
7878
"@rolldown/plugin-babel": "^0.2.2",
79+
"@types/eslint-plugin-jsx-a11y": "^6.10.1",
7980
"@types/esquery": "^1.5.4",
8081
"@types/node": "^20.19.37",
8182
"@types/react": "^19.2.14",

src/components/labeled-select.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
SelectTrigger,
77
SelectValue,
88
} from "@/components/ui/select";
9-
import { Version } from "@/hooks/use-explorer";
9+
import { type Version } from "@/hooks/use-explorer";
1010

1111
type OnValueChangeType = (value: string) => void;
1212
type ItemsType = {

src/components/mode-toggle.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { MoonIcon, SunIcon, Monitor } from "lucide-react";
22
import { Button } from "@/components/ui/button";
3-
import { useTheme, Theme } from "@/components/theme-provider";
3+
import { useTheme, type Theme } from "@/components/theme-provider";
44
import {
55
DropdownMenu,
66
DropdownMenuContent,

src/components/ui/toggle-group.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as React from "react";
22
import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
3-
import { VariantProps } from "class-variance-authority";
3+
import { type VariantProps } from "class-variance-authority";
44

55
import { mergeClassNames } from "@/lib/utils";
66
import { toggleVariants } from "@/components/ui/toggle";

src/hooks/use-explorer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import { create } from "zustand";
22
import {
33
devtools,
44
persist,
5-
StateStorage,
65
createJSONStorage,
6+
type StateStorage,
77
} from "zustand/middleware";
88
import type { EcmaVersion, Options } from "espree";
99
import {

tailwind.config.js

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import tailwindcssAnimate from "tailwindcss-animate";
2+
import plugin from "tailwindcss/plugin.js";
23

34
/** @type {import('tailwindcss').Config} */
45
export default {
@@ -87,22 +88,19 @@ export default {
8788
},
8889
plugins: [
8990
tailwindcssAnimate,
90-
function ({ addUtilities, theme }) {
91-
addUtilities(
92-
{
93-
".scrollbar-thumb": {
94-
scrollbarColor: `${theme("colors.scrollbar-thumb")} ${theme("colors.scrollbar-track")}`,
95-
},
96-
".scrollbar-thumb-hover": {
97-
scrollbarColor: `${theme("colors.scrollbar-thumb-hover")} ${theme("colors.scrollbar-track")}`,
98-
},
99-
".scrollbar-track": {
100-
scrollbarWidth: "thin",
101-
},
91+
plugin(({ addUtilities, theme }) => {
92+
addUtilities({
93+
".scrollbar-thumb": {
94+
scrollbarColor: `${theme("colors.scrollbar-thumb")} ${theme("colors.scrollbar-track")}`,
10295
},
103-
["responsive", "hover"],
104-
);
105-
},
96+
".scrollbar-thumb-hover": {
97+
scrollbarColor: `${theme("colors.scrollbar-thumb-hover")} ${theme("colors.scrollbar-track")}`,
98+
},
99+
".scrollbar-track": {
100+
scrollbarWidth: "thin",
101+
},
102+
});
103+
}),
106104
],
107105
safelist: ["cm-editor", "cm-gutter", "ͼ1", "cm-focused"],
108106
};

tsconfig.app.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"include": ["src/**/*.ts", "src/**/*.tsx"],
3+
"compilerOptions": {
4+
/* Type Checking */
5+
"noFallthroughCasesInSwitch": true,
6+
7+
/* Modules */
8+
"module": "es2022",
9+
"moduleResolution": "bundler",
10+
"paths": {
11+
"@/*": ["./src/*"]
12+
},
13+
"types": ["vite/client"],
14+
15+
/* Emit */
16+
"noEmit": true,
17+
18+
/* Interop Constraints */
19+
"forceConsistentCasingInFileNames": true,
20+
"verbatimModuleSyntax": true,
21+
22+
/* Language and Environment */
23+
"jsx": "react-jsx",
24+
"lib": ["dom", "ES2022"],
25+
"target": "es2022",
26+
27+
/* Projects */
28+
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
29+
30+
/* Completeness */
31+
"skipLibCheck": true
32+
}
33+
}

tsconfig.json

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,7 @@
11
{
2-
"compilerOptions": {
3-
"target": "es2022",
4-
"lib": ["dom", "esnext"],
5-
"types": ["node", "vite/client"],
6-
"allowJs": true,
7-
"skipLibCheck": true,
8-
"strict": true,
9-
"forceConsistentCasingInFileNames": true,
10-
"noFallthroughCasesInSwitch": true,
11-
"module": "esnext",
12-
"moduleResolution": "bundler",
13-
"resolveJsonModule": true,
14-
"isolatedModules": true,
15-
"noEmit": true,
16-
"jsx": "react-jsx",
17-
"paths": {
18-
"@/*": ["./src/*"]
19-
}
20-
},
21-
"include": ["**/*.ts", "**/*.tsx"]
2+
"files": [],
3+
"references": [
4+
{ "path": "./tsconfig.app.json" },
5+
{ "path": "./tsconfig.node.json" }
6+
]
227
}

tsconfig.node.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"include": ["**/*.config.js", "**/*.config.ts"],
3+
"compilerOptions": {
4+
/* Type Checking */
5+
"noFallthroughCasesInSwitch": true,
6+
7+
/* Modules */
8+
"module": "nodenext",
9+
"moduleResolution": "nodenext",
10+
"types": ["node"],
11+
12+
/* Emit */
13+
"noEmit": true,
14+
15+
/* JavaScript Support */
16+
"allowJs": true,
17+
"checkJs": true,
18+
19+
/* Interop Constraints */
20+
"erasableSyntaxOnly": true,
21+
"verbatimModuleSyntax": true,
22+
"forceConsistentCasingInFileNames": true,
23+
24+
/* Language and Environment */
25+
"lib": ["ES2022"],
26+
"target": "es2022",
27+
28+
/* Projects */
29+
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
30+
31+
/* Completeness */
32+
"skipLibCheck": true
33+
}
34+
}

0 commit comments

Comments
 (0)