-
-
Notifications
You must be signed in to change notification settings - Fork 1
Chore: vite-config-custom to typescript package #253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| import { eslintConfig } from "eslint-config-custom/typescript"; | ||
| export default eslintConfig(); |
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| { | ||
| "files": [], | ||
| "references": [ | ||
| { "path": "./tsconfig.node.json" }, | ||
| { "path": "./tsconfig.lib.json" } | ||
| ] | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| { | ||
| "extends": "tsconfig-custom/tsconfig.base.json", | ||
| "compilerOptions": { | ||
| "outDir": "./dist", | ||
| "rootDir": "./src", | ||
| "tsBuildInfoFile": "./.cache/typescript/tsbuildinfo-esm" | ||
| }, | ||
| "include": ["src"] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| { | ||
| "extends": "tsconfig-custom/tsconfig.node.json", | ||
| "compilerOptions": { | ||
| "tsBuildInfoFile": "./.cache/typescript/tsbuildinfo-node", | ||
| "outDir": "./.cache/tsbuild-node" | ||
| }, | ||
| "include": [ | ||
| "eslint.config.js" | ||
| ], | ||
| "exclude": [ | ||
| "dist", | ||
| "_release" | ||
| ] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,43 +11,43 @@ | |
| "preview": "vite preview" | ||
| }, | ||
| "dependencies": { | ||
| "@babel/core": "^7.27.4", | ||
| "@babel/core": "^7.28.4", | ||
| "@babel/preset-typescript": "^7.27.1", | ||
| "@emotion/hash": "^0.9.2", | ||
| "@mincho-js/css": "workspace:^", | ||
| "@mincho-js/integration": "workspace:^", | ||
| "@mincho-js/react": "workspace:^", | ||
| "@mincho-js/vite": "workspace:^", | ||
| "@vanilla-extract/css": "^1.17.2", | ||
| "@vanilla-extract/css-utils": "^0.1.4", | ||
| "@vanilla-extract/private": "^1.0.7", | ||
| "css-what": "^6.1.0", | ||
| "@vanilla-extract/css": "^1.17.4", | ||
| "@vanilla-extract/css-utils": "^0.1.6", | ||
| "@vanilla-extract/private": "^1.0.9", | ||
| "css-what": "^7.0.0", | ||
| "cssesc": "^3.0.0", | ||
| "dedent": "^1.6.0", | ||
| "dedent": "^1.7.0", | ||
| "deep-object-diff": "^1.1.9", | ||
| "deepmerge": "^4.3.1", | ||
| "lru-cache": "^11.1.0", | ||
| "lru-cache": "^11.2.2", | ||
| "media-query-parser": "3.0.2", | ||
| "modern-ahocorasick": "^2.0.4", | ||
| "picocolors": "^1.1.1", | ||
| "react": "^19.1.0", | ||
| "react-dom": "^19.1.0", | ||
| "scheduler": "^0.26.0" | ||
| "react": "^19.2.0", | ||
| "react-dom": "^19.2.0", | ||
| "scheduler": "^0.27.0" | ||
| }, | ||
| "devDependencies": { | ||
| "@eslint/js": "^9.28.0", | ||
| "@eslint/js": "^9.37.0", | ||
| "@types/babel__core": "^7.20.5", | ||
| "@types/cssesc": "^3.0.2", | ||
| "@types/react": "^19.1.6", | ||
| "@types/react-dom": "^19.1.6", | ||
| "@types/react": "^19.2.2", | ||
| "@types/react-dom": "^19.2.1", | ||
| "@types/scheduler": "^0.26.0", | ||
| "@vitejs/plugin-react": "^4.5.1", | ||
| "eslint": "^9.28.0", | ||
| "eslint-plugin-react-hooks": "^5.2.0", | ||
| "eslint-plugin-react-refresh": "^0.4.20", | ||
| "globals": "^16.2.0", | ||
| "typescript": "~5.8.3", | ||
| "typescript-eslint": "^8.33.1", | ||
| "vite": "^6.3.5" | ||
| "@vitejs/plugin-react": "^5.0.4", | ||
| "eslint": "^9.37.0", | ||
| "eslint-plugin-react-hooks": "^6.1.1", | ||
| "eslint-plugin-react-refresh": "^0.4.23", | ||
| "globals": "^16.4.0", | ||
| "typescript": "~5.9.3", | ||
| "typescript-eslint": "^8.46.0", | ||
| "vite": "^7.1.9" | ||
|
Comment on lines
+38
to
+51
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion | 🟠 Major 🧩 Analysis chainVerify major version bumps in dev tooling. Several significant version updates were made:
Ensure the Vite 7.x migration is documented and tested, as major version bumps typically include breaking changes. Verify that ESLint rule changes don't introduce new violations. Run the following script to check for breaking changes: Additionally, please search the web for Vite 7.x migration guide: 🏁 Script executed: #!/bin/bash
# Description: Check for breaking changes and changelogs
echo "=== Vite 7.x changelog ==="
npm view vite@7.1.9 --json | jq '{version, description}'
echo "=== ESLint 9.37.0 features ==="
npm view eslint@9.37.0 --json | jq '{version, description}'
echo "=== TypeScript 5.9.3 release notes ==="
npm view typescript@5.9.3 --json | jq '{version}'Length of output: 295 🌐 Web query: 💡 Result: Short summary of breaking changes in Vite 7 and how to migrate from Vite 6.x. Breaking changes (high‑impact items)
Minimal migration checklist (recommended)
Key references
If you want, I can:
Address Vite v7 migration and ESLint/TS updates.
🤖 Prompt for AI Agents |
||
| } | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make the referenced project composite (required for TS project references)
This tsconfig is referenced by multiple packages. TypeScript requires referenced projects to be composite. Add compilerOptions.composite: true (or update dependents to reference a composite child like tsconfig.lib.json).
Apply:
{ - "files": [], - "references": [ - { "path": "./tsconfig.node.json" }, - { "path": "./tsconfig.lib.json" } - ] + "files": [], + "compilerOptions": { + "composite": true + }, + "references": [ + { "path": "./tsconfig.node.json" }, + { "path": "./tsconfig.lib.json" } + ] }📝 Committable suggestion
🤖 Prompt for AI Agents