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:
@@ -1,3 +1,3 @@
|
||||
import baseConfig from "@repo/eslint-config/base";
|
||||
import baseConfig from "@repo/core-eslint/base";
|
||||
|
||||
export default baseConfig;
|
||||
|
||||
@@ -24,8 +24,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"
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"extends": "@repo/typescript-config/base.json",
|
||||
"extends": "@repo/core-typescript/base.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "dist",
|
||||
"rootDir": ".",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import path from "node:path";
|
||||
import { baseVitestConfig } from "@repo/typescript-config/vitest.base";
|
||||
import { baseVitestConfig } from "@repo/core-typescript/vitest.base";
|
||||
|
||||
export default {
|
||||
...baseVitestConfig,
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
import baseConfig from "@repo/eslint-config/base";
|
||||
import baseConfig from "@repo/core-eslint/base";
|
||||
|
||||
export default baseConfig;
|
||||
|
||||
@@ -24,8 +24,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"
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"extends": "@repo/typescript-config/base.json",
|
||||
"extends": "@repo/core-typescript/base.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "dist",
|
||||
"rootDir": ".",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import path from "path";
|
||||
import { baseVitestConfig } from "@repo/typescript-config/vitest.base";
|
||||
import { baseVitestConfig } from "@repo/core-typescript/vitest.base";
|
||||
|
||||
export default {
|
||||
...baseVitestConfig,
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
import baseConfig from "@repo/eslint-config/base";
|
||||
import baseConfig from "@repo/core-eslint/base";
|
||||
|
||||
export default baseConfig;
|
||||
|
||||
@@ -20,8 +20,8 @@
|
||||
"@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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"extends": "@repo/typescript-config/base.json",
|
||||
"extends": "@repo/core-typescript/base.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "dist",
|
||||
"rootDir": "src",
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
import baseConfig from "@repo/eslint-config/base";
|
||||
import baseConfig from "@repo/core-eslint/base";
|
||||
|
||||
export default baseConfig;
|
||||
|
||||
@@ -23,8 +23,8 @@
|
||||
"@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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"extends": "@repo/typescript-config/base.json",
|
||||
"extends": "@repo/core-typescript/base.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "dist",
|
||||
"rootDir": "src",
|
||||
|
||||
@@ -19,8 +19,8 @@ Each package creates `eslint.config.js` at its root:
|
||||
|
||||
```javascript
|
||||
// packages/blog/eslint.config.js
|
||||
import baseConfig from "@repo/eslint-config/base";
|
||||
import boundariesConfig from "@repo/eslint-config/boundaries";
|
||||
import baseConfig from "@repo/core-eslint/base";
|
||||
import boundariesConfig from "@repo/core-eslint/boundaries";
|
||||
|
||||
export default [
|
||||
...baseConfig,
|
||||
@@ -38,9 +38,9 @@ Apps may add Next.js-specific rules:
|
||||
|
||||
```javascript
|
||||
// apps/web-next/eslint.config.js
|
||||
import baseConfig from "@repo/eslint-config/base";
|
||||
import nextConfig from "@repo/eslint-config/next";
|
||||
import boundariesConfig from "@repo/eslint-config/boundaries";
|
||||
import baseConfig from "@repo/core-eslint/base";
|
||||
import nextConfig from "@repo/core-eslint/next";
|
||||
import boundariesConfig from "@repo/core-eslint/boundaries";
|
||||
|
||||
export default [
|
||||
...baseConfig,
|
||||
@@ -20,12 +20,12 @@ export default [
|
||||
settings: {
|
||||
"boundaries/elements": [
|
||||
{ type: "app", pattern: "apps/*" },
|
||||
{ type: "tooling", pattern: "packages/core-eslint" },
|
||||
{ type: "tooling", pattern: "packages/core-typescript" },
|
||||
{ type: "core-composition", pattern: "packages/core-api" },
|
||||
{ type: "core-composition", pattern: "packages/core-cms" },
|
||||
{ type: "core", pattern: "packages/core-*" },
|
||||
{ type: "tooling", pattern: "packages/eslint-config" },
|
||||
{ type: "tooling", pattern: "packages/typescript-config" },
|
||||
{ type: "feature", pattern: "packages/!(core-*|eslint-config|typescript-config)" },
|
||||
{ type: "feature", pattern: "packages/!(core-*)" },
|
||||
],
|
||||
},
|
||||
rules: {
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@repo/eslint-config",
|
||||
"name": "@repo/core-eslint",
|
||||
"private": true,
|
||||
"version": "0.0.0",
|
||||
"type": "module",
|
||||
@@ -1,3 +1,3 @@
|
||||
import baseConfig from "@repo/eslint-config/base";
|
||||
import baseConfig from "@repo/core-eslint/base";
|
||||
|
||||
export default baseConfig;
|
||||
|
||||
@@ -22,8 +22,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"
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"extends": "@repo/typescript-config/base.json",
|
||||
"extends": "@repo/core-typescript/base.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "dist",
|
||||
"rootDir": "src"
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
import { baseVitestConfig } from "@repo/typescript-config/vitest.base";
|
||||
import { baseVitestConfig } from "@repo/core-typescript/vitest.base";
|
||||
|
||||
export default baseVitestConfig;
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
import baseConfig from "@repo/eslint-config/base";
|
||||
import baseConfig from "@repo/core-eslint/base";
|
||||
|
||||
export default baseConfig;
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
"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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"extends": "@repo/typescript-config/base.json",
|
||||
"extends": "@repo/core-typescript/base.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "dist",
|
||||
"rootDir": "src",
|
||||
|
||||
@@ -16,7 +16,7 @@ Packages extend the appropriate base:
|
||||
```json
|
||||
// packages/blog/tsconfig.json
|
||||
{
|
||||
"extends": "@repo/typescript-config/base.json",
|
||||
"extends": "@repo/core-typescript/base.json",
|
||||
"compilerOptions": {
|
||||
"rootDir": ".",
|
||||
"outDir": "dist",
|
||||
@@ -31,7 +31,7 @@ Apps extend Next.js config:
|
||||
```json
|
||||
// apps/web-next/tsconfig.json
|
||||
{
|
||||
"extends": "@repo/typescript-config/nextjs.json",
|
||||
"extends": "@repo/core-typescript/nextjs.json",
|
||||
"compilerOptions": {
|
||||
"rootDir": ".",
|
||||
"outDir": ".next"
|
||||
@@ -45,7 +45,7 @@ Vitest configs import the base:
|
||||
// packages/blog/vitest.config.ts
|
||||
import { defineConfig } from "vitest/config";
|
||||
import path from "path";
|
||||
import { vitestBase } from "@repo/typescript-config";
|
||||
import { vitestBase } from "@repo/core-typescript";
|
||||
|
||||
export default defineConfig({
|
||||
...vitestBase,
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@repo/typescript-config",
|
||||
"name": "@repo/core-typescript",
|
||||
"private": true,
|
||||
"version": "0.0.0",
|
||||
"type": "module",
|
||||
@@ -1,3 +1,3 @@
|
||||
import baseConfig from "@repo/eslint-config/base";
|
||||
import baseConfig from "@repo/core-eslint/base";
|
||||
|
||||
export default baseConfig;
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
"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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"extends": "@repo/typescript-config/base.json",
|
||||
"extends": "@repo/core-typescript/base.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "dist",
|
||||
"rootDir": "src",
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
import baseConfig from "@repo/eslint-config/base";
|
||||
import baseConfig from "@repo/core-eslint/base";
|
||||
|
||||
export default baseConfig;
|
||||
|
||||
@@ -24,8 +24,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"
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"extends": "@repo/typescript-config/base.json",
|
||||
"extends": "@repo/core-typescript/base.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "dist",
|
||||
"rootDir": ".",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import path from "node:path";
|
||||
import { baseVitestConfig } from "@repo/typescript-config/vitest.base";
|
||||
import { baseVitestConfig } from "@repo/core-typescript/vitest.base";
|
||||
|
||||
export default {
|
||||
...baseVitestConfig,
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
import baseConfig from "@repo/eslint-config/base";
|
||||
import baseConfig from "@repo/core-eslint/base";
|
||||
|
||||
export default baseConfig;
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
"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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"extends": "@repo/typescript-config/base.json",
|
||||
"extends": "@repo/core-typescript/base.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "dist",
|
||||
"lib": ["ES2022", "DOM"]
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
import baseConfig from "@repo/eslint-config/base";
|
||||
import baseConfig from "@repo/core-eslint/base";
|
||||
|
||||
export default baseConfig;
|
||||
|
||||
@@ -24,8 +24,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"
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"extends": "@repo/typescript-config/base.json",
|
||||
"extends": "@repo/core-typescript/base.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "dist",
|
||||
"rootDir": ".",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import path from "node:path";
|
||||
import { baseVitestConfig } from "@repo/typescript-config/vitest.base";
|
||||
import { baseVitestConfig } from "@repo/core-typescript/vitest.base";
|
||||
|
||||
export default {
|
||||
...baseVitestConfig,
|
||||
|
||||
Reference in New Issue
Block a user