refactor: rename eslint-config + typescript-config to core-eslint + core-typescript
Aligns tooling packages with the core-* naming convention used by all other foundation packages (core-shared, core-cms, core-api, core-trpc, core-ui). Updates ~50 files: package.json names, devDependencies, tsconfig extends, eslint.config imports, vitest.config imports, AGENTS.md references, and the boundaries plugin patterns to match the new paths. The tooling-specific patterns in boundaries/elements are now ordered BEFORE the broader core-* pattern to ensure correct first-match-wins behavior. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -54,7 +54,7 @@ mkdir -p packages/<feature-name>/src/{entities,application/{use-cases,repositori
|
||||
"@repo/core-shared": "workspace:*"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@repo/typescript-config": "workspace:*"
|
||||
"@repo/core-typescript": "workspace:*"
|
||||
}
|
||||
}
|
||||
```
|
||||
@@ -63,7 +63,7 @@ mkdir -p packages/<feature-name>/src/{entities,application/{use-cases,repositori
|
||||
|
||||
```json
|
||||
{
|
||||
"extends": "@repo/typescript-config/base.json",
|
||||
"extends": "@repo/core-typescript/base.json",
|
||||
"compilerOptions": {
|
||||
"rootDir": ".",
|
||||
"outDir": "dist",
|
||||
|
||||
@@ -123,8 +123,8 @@ git commit -m "build: add root tsconfig.base.json with core-* path aliases"
|
||||
"zod": "^3.24.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@repo/eslint-config": "workspace:*",
|
||||
"@repo/typescript-config": "workspace:*",
|
||||
"@repo/core-eslint": "workspace:*",
|
||||
"@repo/core-typescript": "workspace:*",
|
||||
"@types/node": "^22.0.0",
|
||||
"vitest": "^3.1.0"
|
||||
}
|
||||
@@ -135,7 +135,7 @@ git commit -m "build: add root tsconfig.base.json with core-* path aliases"
|
||||
|
||||
```json
|
||||
{
|
||||
"extends": "@repo/typescript-config/base.json",
|
||||
"extends": "@repo/core-typescript/base.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "dist",
|
||||
"rootDir": "src"
|
||||
@@ -201,8 +201,8 @@ git commit -m "feat(core-shared): scaffold empty package with exports + tags"
|
||||
"@payloadcms/richtext-lexical": "^3.14.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@repo/eslint-config": "workspace:*",
|
||||
"@repo/typescript-config": "workspace:*",
|
||||
"@repo/core-eslint": "workspace:*",
|
||||
"@repo/core-typescript": "workspace:*",
|
||||
"@types/node": "^22.0.0"
|
||||
}
|
||||
}
|
||||
@@ -212,7 +212,7 @@ git commit -m "feat(core-shared): scaffold empty package with exports + tags"
|
||||
|
||||
```json
|
||||
{
|
||||
"extends": "@repo/typescript-config/base.json",
|
||||
"extends": "@repo/core-typescript/base.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "dist",
|
||||
"rootDir": "src",
|
||||
@@ -287,8 +287,8 @@ git commit -m "feat(core-cms): scaffold empty package with exports + tags"
|
||||
"@trpc/server": "^11.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@repo/eslint-config": "workspace:*",
|
||||
"@repo/typescript-config": "workspace:*",
|
||||
"@repo/core-eslint": "workspace:*",
|
||||
"@repo/core-typescript": "workspace:*",
|
||||
"@types/node": "^22.0.0"
|
||||
}
|
||||
}
|
||||
@@ -298,7 +298,7 @@ git commit -m "feat(core-cms): scaffold empty package with exports + tags"
|
||||
|
||||
```json
|
||||
{
|
||||
"extends": "@repo/typescript-config/base.json",
|
||||
"extends": "@repo/core-typescript/base.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "dist",
|
||||
"rootDir": "src"
|
||||
@@ -378,8 +378,8 @@ git commit -m "feat(core-api): scaffold empty appRouter aggregator"
|
||||
"superjson": "^2.2.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@repo/eslint-config": "workspace:*",
|
||||
"@repo/typescript-config": "workspace:*",
|
||||
"@repo/core-eslint": "workspace:*",
|
||||
"@repo/core-typescript": "workspace:*",
|
||||
"@types/react": "^19.0.0"
|
||||
}
|
||||
}
|
||||
@@ -389,7 +389,7 @@ git commit -m "feat(core-api): scaffold empty appRouter aggregator"
|
||||
|
||||
```json
|
||||
{
|
||||
"extends": "@repo/typescript-config/base.json",
|
||||
"extends": "@repo/core-typescript/base.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "dist",
|
||||
"rootDir": "src",
|
||||
@@ -455,8 +455,8 @@ git commit -m "feat(core-trpc): scaffold empty package (client + providers in Pl
|
||||
"tailwind-merge": "^3.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@repo/eslint-config": "workspace:*",
|
||||
"@repo/typescript-config": "workspace:*",
|
||||
"@repo/core-eslint": "workspace:*",
|
||||
"@repo/core-typescript": "workspace:*",
|
||||
"@types/react": "^19.0.0"
|
||||
}
|
||||
}
|
||||
@@ -466,7 +466,7 @@ git commit -m "feat(core-trpc): scaffold empty package (client + providers in Pl
|
||||
|
||||
```json
|
||||
{
|
||||
"extends": "@repo/typescript-config/base.json",
|
||||
"extends": "@repo/core-typescript/base.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "dist",
|
||||
"rootDir": "src",
|
||||
@@ -540,7 +540,7 @@ git commit -m "build: update lockfile for new core-* packages"
|
||||
Current contents (verified):
|
||||
```json
|
||||
{
|
||||
"name": "@repo/typescript-config",
|
||||
"name": "@repo/core-typescript",
|
||||
"private": true,
|
||||
"version": "0.0.0"
|
||||
}
|
||||
@@ -549,7 +549,7 @@ Current contents (verified):
|
||||
Replace with:
|
||||
```json
|
||||
{
|
||||
"name": "@repo/typescript-config",
|
||||
"name": "@repo/core-typescript",
|
||||
"private": true,
|
||||
"version": "0.0.0",
|
||||
"type": "module",
|
||||
@@ -606,7 +606,7 @@ git commit -m "build(typescript-config): add shared vitest base config"
|
||||
- [ ] **Step 1: Create vitest.config.ts**
|
||||
|
||||
```typescript
|
||||
import { baseVitestConfig } from "@repo/typescript-config/vitest.base";
|
||||
import { baseVitestConfig } from "@repo/core-typescript/vitest.base";
|
||||
|
||||
export default baseVitestConfig;
|
||||
```
|
||||
|
||||
@@ -111,8 +111,8 @@ The domain `Article.content` field is also widened: the existing entity has `con
|
||||
"zod": "^3.24.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@repo/eslint-config": "workspace:*",
|
||||
"@repo/typescript-config": "workspace:*",
|
||||
"@repo/core-eslint": "workspace:*",
|
||||
"@repo/core-typescript": "workspace:*",
|
||||
"@types/node": "^22.0.0",
|
||||
"vitest": "^3.1.0"
|
||||
}
|
||||
@@ -123,7 +123,7 @@ The domain `Article.content` field is also widened: the existing entity has `con
|
||||
|
||||
```json
|
||||
{
|
||||
"extends": "@repo/typescript-config/base.json",
|
||||
"extends": "@repo/core-typescript/base.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "dist",
|
||||
"rootDir": "src",
|
||||
@@ -153,7 +153,7 @@ The domain `Article.content` field is also widened: the existing entity has `con
|
||||
|
||||
```typescript
|
||||
import path from "node:path";
|
||||
import { baseVitestConfig } from "@repo/typescript-config/vitest.base";
|
||||
import { baseVitestConfig } from "@repo/core-typescript/vitest.base";
|
||||
|
||||
export default {
|
||||
...baseVitestConfig,
|
||||
|
||||
@@ -116,8 +116,8 @@
|
||||
"zod": "^3.24.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@repo/eslint-config": "workspace:*",
|
||||
"@repo/typescript-config": "workspace:*",
|
||||
"@repo/core-eslint": "workspace:*",
|
||||
"@repo/core-typescript": "workspace:*",
|
||||
"@types/node": "^22.0.0",
|
||||
"vitest": "^3.1.0"
|
||||
}
|
||||
@@ -130,7 +130,7 @@
|
||||
|
||||
```json
|
||||
{
|
||||
"extends": "@repo/typescript-config/base.json",
|
||||
"extends": "@repo/core-typescript/base.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "dist",
|
||||
"lib": ["ES2022", "DOM"],
|
||||
@@ -159,7 +159,7 @@
|
||||
|
||||
```typescript
|
||||
import path from "node:path";
|
||||
import { baseVitestConfig } from "@repo/typescript-config/vitest.base";
|
||||
import { baseVitestConfig } from "@repo/core-typescript/vitest.base";
|
||||
|
||||
export default {
|
||||
...baseVitestConfig,
|
||||
@@ -1523,8 +1523,8 @@ git commit -m "test(auth): add feature test for sign-up → sign-in → sign-out
|
||||
"payload": "^3.14.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@repo/eslint-config": "workspace:*",
|
||||
"@repo/typescript-config": "workspace:*",
|
||||
"@repo/core-eslint": "workspace:*",
|
||||
"@repo/core-typescript": "workspace:*",
|
||||
"vitest": "^3.1.0"
|
||||
}
|
||||
}
|
||||
@@ -1536,7 +1536,7 @@ git commit -m "test(auth): add feature test for sign-up → sign-in → sign-out
|
||||
|
||||
```json
|
||||
{
|
||||
"extends": "@repo/typescript-config/base.json",
|
||||
"extends": "@repo/core-typescript/base.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "dist",
|
||||
"lib": ["ES2022", "DOM"]
|
||||
|
||||
@@ -137,8 +137,8 @@
|
||||
"zod": "^3.24.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@repo/eslint-config": "workspace:*",
|
||||
"@repo/typescript-config": "workspace:*",
|
||||
"@repo/core-eslint": "workspace:*",
|
||||
"@repo/core-typescript": "workspace:*",
|
||||
"@types/node": "^22.0.0",
|
||||
"vitest": "^3.1.0"
|
||||
}
|
||||
@@ -149,7 +149,7 @@
|
||||
|
||||
```json
|
||||
{
|
||||
"extends": "@repo/typescript-config/base.json",
|
||||
"extends": "@repo/core-typescript/base.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "dist",
|
||||
"rootDir": ".",
|
||||
@@ -177,7 +177,7 @@
|
||||
|
||||
```typescript
|
||||
import path from "node:path";
|
||||
import { baseVitestConfig } from "@repo/typescript-config/vitest.base";
|
||||
import { baseVitestConfig } from "@repo/core-typescript/vitest.base";
|
||||
|
||||
export default {
|
||||
...baseVitestConfig,
|
||||
@@ -1298,8 +1298,8 @@ git commit -m "feat(marketing-pages): add ui/query + barrel + feature test"
|
||||
"zod": "^3.24.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@repo/eslint-config": "workspace:*",
|
||||
"@repo/typescript-config": "workspace:*",
|
||||
"@repo/core-eslint": "workspace:*",
|
||||
"@repo/core-typescript": "workspace:*",
|
||||
"@types/node": "^22.0.0",
|
||||
"vitest": "^3.1.0"
|
||||
}
|
||||
|
||||
@@ -488,8 +488,8 @@ No new commit needed (all bind-production files are additive; tests didn't impor
|
||||
"superjson": "^2.2.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@repo/eslint-config": "workspace:*",
|
||||
"@repo/typescript-config": "workspace:*",
|
||||
"@repo/core-eslint": "workspace:*",
|
||||
"@repo/core-typescript": "workspace:*",
|
||||
"@types/node": "^22.0.0",
|
||||
"@types/react": "^19.0.0",
|
||||
"@types/react-dom": "^19.0.0"
|
||||
@@ -912,8 +912,8 @@ pkill -f "next.*3000" 2>/dev/null
|
||||
"react-dom": "^19.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@repo/eslint-config": "workspace:*",
|
||||
"@repo/typescript-config": "workspace:*",
|
||||
"@repo/core-eslint": "workspace:*",
|
||||
"@repo/core-typescript": "workspace:*",
|
||||
"@types/node": "^22.0.0",
|
||||
"@types/react": "^19.0.0",
|
||||
"@types/react-dom": "^19.0.0"
|
||||
|
||||
@@ -128,7 +128,7 @@ Storybook's React types come from the storybook app's deps, not the ui library's
|
||||
|
||||
```json
|
||||
{
|
||||
"extends": "@repo/typescript-config/base.json",
|
||||
"extends": "@repo/core-typescript/base.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "dist",
|
||||
"rootDir": ".",
|
||||
|
||||
Reference in New Issue
Block a user