From da7c560c104e79dbb55757fe97ba6afaf2bf5ae6 Mon Sep 17 00:00:00 2001 From: Simon Farshid Date: Sat, 3 Aug 2024 22:57:42 -0700 Subject: [PATCH] examples: inline-suggestions tsconfig update (#636) --- examples/with-inline-suggestions/package.json | 1 + .../with-inline-suggestions/tsconfig.json | 23 ++++++++----------- pnpm-lock.yaml | 9 +++++--- 3 files changed, 17 insertions(+), 16 deletions(-) diff --git a/examples/with-inline-suggestions/package.json b/examples/with-inline-suggestions/package.json index 8a8e88136..f9b212803 100644 --- a/examples/with-inline-suggestions/package.json +++ b/examples/with-inline-suggestions/package.json @@ -26,6 +26,7 @@ "tailwindcss-animate": "^1.0.7" }, "devDependencies": { + "@assistant-ui/tsconfig": "workspace:*", "@types/node": "^20", "@types/react": "^18", "@types/react-dom": "^18", diff --git a/examples/with-inline-suggestions/tsconfig.json b/examples/with-inline-suggestions/tsconfig.json index e7ff90fd2..fdcf023cc 100644 --- a/examples/with-inline-suggestions/tsconfig.json +++ b/examples/with-inline-suggestions/tsconfig.json @@ -1,16 +1,8 @@ { + "extends": "@assistant-ui/tsconfig/base.json", "compilerOptions": { - "lib": ["dom", "dom.iterable", "esnext"], - "allowJs": true, - "skipLibCheck": true, - "strict": true, - "noEmit": true, - "esModuleInterop": true, - "module": "esnext", - "moduleResolution": "bundler", - "resolveJsonModule": true, - "isolatedModules": true, - "jsx": "preserve", + "target": "ES6", + "module": "ESNext", "incremental": true, "plugins": [ { @@ -18,8 +10,13 @@ } ], "paths": { - "@/*": ["./*"] - } + "@/*": ["./*"], + "@assistant-ui/*": ["../../packages/*/src"], + "@assistant-ui/react/*": ["../../packages/react/src/*"] + }, + "allowJs": true, + "strictNullChecks": true, + "jsx": "preserve" }, "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], "exclude": ["node_modules"] diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9140907f4..ba688508b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -327,6 +327,9 @@ importers: specifier: ^1.0.7 version: 1.0.7(tailwindcss@3.4.7) devDependencies: + '@assistant-ui/tsconfig': + specifier: workspace:* + version: link:../../packages/tsconfig '@types/node': specifier: ^20 version: 20.14.12 @@ -8627,7 +8630,7 @@ snapshots: eslint: 8.57.0 eslint-import-resolver-node: 0.3.9 eslint-import-resolver-typescript: 3.6.1(@typescript-eslint/parser@7.2.0(eslint@8.57.0)(typescript@5.5.4))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.29.1(eslint@8.57.0))(eslint@8.57.0) - eslint-plugin-import: 2.29.1(@typescript-eslint/parser@7.2.0(eslint@8.57.0)(typescript@5.5.4))(eslint-import-resolver-typescript@3.6.1)(eslint@8.57.0) + eslint-plugin-import: 2.29.1(@typescript-eslint/parser@7.2.0(eslint@8.57.0)(typescript@5.5.4))(eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@7.2.0(eslint@8.57.0)(typescript@5.5.4))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.29.1(eslint@8.57.0))(eslint@8.57.0))(eslint@8.57.0) eslint-plugin-jsx-a11y: 6.9.0(eslint@8.57.0) eslint-plugin-react: 7.35.0(eslint@8.57.0) eslint-plugin-react-hooks: 4.6.2(eslint@8.57.0) @@ -8651,7 +8654,7 @@ snapshots: enhanced-resolve: 5.17.1 eslint: 8.57.0 eslint-module-utils: 2.8.1(@typescript-eslint/parser@7.2.0(eslint@8.57.0)(typescript@5.5.4))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@7.2.0(eslint@8.57.0)(typescript@5.5.4))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.29.1(eslint@8.57.0))(eslint@8.57.0))(eslint@8.57.0) - eslint-plugin-import: 2.29.1(@typescript-eslint/parser@7.2.0(eslint@8.57.0)(typescript@5.5.4))(eslint-import-resolver-typescript@3.6.1)(eslint@8.57.0) + eslint-plugin-import: 2.29.1(@typescript-eslint/parser@7.2.0(eslint@8.57.0)(typescript@5.5.4))(eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@7.2.0(eslint@8.57.0)(typescript@5.5.4))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.29.1(eslint@8.57.0))(eslint@8.57.0))(eslint@8.57.0) fast-glob: 3.3.2 get-tsconfig: 4.7.6 is-core-module: 2.15.0 @@ -8673,7 +8676,7 @@ snapshots: transitivePeerDependencies: - supports-color - eslint-plugin-import@2.29.1(@typescript-eslint/parser@7.2.0(eslint@8.57.0)(typescript@5.5.4))(eslint-import-resolver-typescript@3.6.1)(eslint@8.57.0): + eslint-plugin-import@2.29.1(@typescript-eslint/parser@7.2.0(eslint@8.57.0)(typescript@5.5.4))(eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@7.2.0(eslint@8.57.0)(typescript@5.5.4))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.29.1(eslint@8.57.0))(eslint@8.57.0))(eslint@8.57.0): dependencies: array-includes: 3.1.8 array.prototype.findlastindex: 1.2.5