Skip to content

Commit 6487f07

Browse files
committed
chore: migrate to tsgo for type declarations, enable type-aware oxlint
- Replace tsc with tsgo in all package build commands (2x faster declaration emit) - Install @typescript/native-preview (tsgo) and oxlint-tsgolint at workspace root - Enable typeAware: true and typeCheck: true in root lint config, powered by tsgolint - Add root tsconfig.json with project references to all 15 packages for unified type graph - Add vite-env.d.ts to packages with CSS side-effect imports (react, ariakit, mantine, shadcn, xl-ai) and to all 91 example directories - Remove baseUrl from shadcn and docs tsconfigs (removed in TypeScript 7/tsgo) - Fix tsgo-caught type errors: wrong destructuring patterns in ariakit/shadcn/mantine components, implicit any in react vitestSetup, stream.ts Symbol.asyncIterator type, wrong import path for YjsThreadStore in docs - Scope lint ignorePatterns to exclude examples, playground, tests, docs, fumadocs — cuts vp check from ~33s to ~16s by eliminating 91 per-example tsgolint invocations
1 parent 0443605 commit 6487f07

302 files changed

Lines changed: 565 additions & 252 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.

docs/app/demo/_components/DemoEditor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import {
99
import {
1010
CommentsExtension,
1111
DefaultThreadStoreAuth,
12-
YjsThreadStore,
1312
} from "@blocknote/core/comments";
13+
import { YjsThreadStore } from "@blocknote/core/yjs";
1414
import { filterSuggestionItems } from "@blocknote/core/extensions";
1515
import "@blocknote/core/fonts/inter.css";
1616
import * as locales from "@blocknote/core/locales";

docs/tsconfig.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"compilerOptions": {
3-
"baseUrl": ".",
43
"target": "ESNext",
54
"lib": ["dom", "dom.iterable", "esnext"],
65
"allowJs": true,
@@ -17,7 +16,7 @@
1716
"incremental": true,
1817
"paths": {
1918
"@/*": ["./*"],
20-
"fumadocs-mdx:collections/*": [".source/*"]
19+
"fumadocs-mdx:collections/*": ["./.source/*"]
2120
},
2221
"plugins": [
2322
{
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/// <reference types="vite-plus/client" />
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/// <reference types="vite-plus/client" />
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/// <reference types="vite-plus/client" />
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/// <reference types="vite-plus/client" />
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/// <reference types="vite-plus/client" />
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/// <reference types="vite-plus/client" />
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/// <reference types="vite-plus/client" />
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/// <reference types="vite-plus/client" />

0 commit comments

Comments
 (0)