oneie 1.3.3 → 1.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (179) hide show
  1. package/.claude/agents/engineering-architect.md +39 -56
  2. package/.claude/agents/engineering-developer.md +37 -57
  3. package/.claude/agents/engineering-director.md +37 -144
  4. package/.claude/agents/engineering-ingestor.md +229 -0
  5. package/.claude/agents/engineering-quality-assurance.md +40 -206
  6. package/.claude/agents/engineering-user-experience.md +36 -207
  7. package/.claude/agents/improver.md +454 -0
  8. package/.claude/agents/marketing-brand-identity.md +37 -48
  9. package/.claude/agents/marketing-director.md +9 -0
  10. package/.claude/agents/one-orchestrator.md +50 -136
  11. package/.claude/agents/story-teller.md +10 -0
  12. package/.claude/agents/task-master.md +10 -0
  13. package/.claude/agents/turbo-repo-builder.md +51 -0
  14. package/.claude/claude-code-hooks.json +20 -233
  15. package/.claude/commands/agent-balance +111 -0
  16. package/.claude/commands/agent.md +24 -7
  17. package/.claude/commands/cascade-status.md +128 -0
  18. package/.claude/commands/ingest.md +290 -0
  19. package/.claude/commands/ingestor.md +136 -0
  20. package/.claude/commands/mission.md +26 -8
  21. package/.claude/commands/one.md +351 -14
  22. package/.claude/commands/quality-check.md +204 -0
  23. package/.claude/commands/smart-route.md +220 -0
  24. package/.claude/commands/start.md +9 -8
  25. package/.claude/commands/story.md +18 -3
  26. package/.claude/commands/task.md +22 -1
  27. package/.claude/settings.local.json +18 -3
  28. package/.obsidian/core-plugins.json +3 -1
  29. package/.one/checklists/agent-quality-checklist.md +24 -15
  30. package/.one/checklists/story-quality-checklist.md +24 -15
  31. package/.one/checklists/task-quality-checklist.md +24 -15
  32. package/.one/templates/bun-workspace-guide-template.md +188 -0
  33. package/.one/templates/bunfig-template.toml +95 -0
  34. package/.one/templates/root-package-template.json +37 -21
  35. package/.one/templates/turbo-config-template.json +18 -3
  36. package/.one/tools/bump-core-version.js +0 -0
  37. package/.one/tools/bump-expansion-version.js +0 -0
  38. package/.one/tools/code-generators.js +0 -0
  39. package/.one/tools/compression-engine.js +638 -0
  40. package/.one/tools/content-deduplicator.js +336 -0
  41. package/.one/tools/convert-wav-to-mp3.js +0 -0
  42. package/.one/tools/foundation-wizard.js +0 -0
  43. package/.one/tools/generate-toc.js +0 -0
  44. package/.one/tools/ingestor/cascade-integration.js +523 -0
  45. package/.one/tools/ingestor/cli.ts +234 -0
  46. package/.one/tools/ingestor/context-mapper.ts +604 -0
  47. package/.one/tools/ingestor/error-handling-monitor.js +742 -0
  48. package/.one/tools/ingestor/file-discovery.ts +484 -0
  49. package/.one/tools/ingestor/file-transformer.ts +524 -0
  50. package/.one/tools/ingestor/ingestor-orchestrator.ts +416 -0
  51. package/.one/tools/ingestor/package.json +47 -0
  52. package/.one/tools/ingestor/usage-examples.md +458 -0
  53. package/.one/tools/lazy-loader.js +489 -0
  54. package/.one/tools/minimal-generators.js +0 -0
  55. package/.one/tools/performance-benchmark.js +300 -0
  56. package/.one/tools/premium-manager.js +0 -0
  57. package/.one/tools/semantic-release-sync-installer.js +0 -0
  58. package/.one/tools/size-memory-optimizer.js +475 -0
  59. package/.one/tools/sync-installer-version.js +0 -0
  60. package/.one/tools/text-to-speech.js +0 -0
  61. package/.one/tools/transformative-ai-engine.js +0 -0
  62. package/.one/workflows/safe-improvement-deployment.yaml +420 -0
  63. package/CLAUDE.md +30 -0
  64. package/README.md +41 -10
  65. package/one/cache/benchmark-results.json +43 -0
  66. package/one/cache/file-index.json +12480 -0
  67. package/one/config/agent-routing.yaml +124 -0
  68. package/one/config/agent-skills.yaml +451 -0
  69. package/one/config/cache-config.yaml +304 -0
  70. package/one/config/feedback-templates.yaml +152 -0
  71. package/one/config/performance-config.yaml +281 -0
  72. package/one/config/quality-automation.yaml +405 -0
  73. package/one/config/routing-logic.yaml +292 -0
  74. package/one/data/task-registry.yaml +224 -0
  75. package/one/stories/story-1.10-parallel-task-execution-orchestration.md +119 -0
  76. package/one/stories/story-3.1-external-repository-foundation.md +374 -0
  77. package/one/stories/story-3.2-3-levels-architecture-integration.md +449 -0
  78. package/one/stories/story-3.3-multi-platform-application-development.md +677 -0
  79. package/one/stories/story-3.4-shared-package-system-ui-components.md +854 -0
  80. package/one/stories/story-3.5-backend-integration-production-deployment.md +1034 -0
  81. package/one/tasks/task-1.10.1-design-parallel-execution-architecture.md +108 -0
  82. package/one/tasks/task-1.10.2-create-task-dependency-mapping-system.md +82 -0
  83. package/one/tasks/task-1.10.3-build-agent-spawning-orchestration-engine.md +120 -0
  84. package/one/tasks/task-1.10.4-implement-task-queue-dependency-resolution.md +125 -0
  85. package/one/tasks/task-1.10.5-create-task-numbering-convention-system.md +542 -0
  86. package/one/tasks/task-3.1.1-external-repository-creation.md +303 -0
  87. package/one/tasks/task-3.1.2-turborepo-configuration-optimization.md +402 -0
  88. package/one/tasks/task-3.1.3-shared-configuration-packages.md +571 -0
  89. package/one/tasks/task-3.1.4-bun-package-management-optimization.md +627 -0
  90. package/one/tools/task-numbering-validator.js +429 -0
  91. package/package.json +1 -1
  92. package/quality-gate-optimization-analysis.md +260 -0
  93. package/turbo-benchmark.js +268 -0
  94. package/turbo-optimization-guide.md +163 -0
  95. package/turbo-workspace-template.json +83 -0
  96. package/turbo.json +178 -0
  97. package/.claude/commands/analyst.md +0 -70
  98. package/.claude/commands/architect.md +0 -67
  99. package/.claude/commands/commander.md +0 -78
  100. package/.claude/commands/deploy.md +0 -68
  101. package/.claude/commands/dev.md +0 -60
  102. package/.claude/commands/playbook.md +0 -81
  103. package/.claude/commands/pm.md +0 -64
  104. package/.claude/commands/po.md +0 -68
  105. package/.claude/commands/qa.md +0 -59
  106. package/.claude/commands/taskmaster.md +0 -85
  107. package/.claude/commands/ux-expert.md +0 -58
  108. package/.one/stories/bullstamp-attract-module-complete.md +0 -255
  109. package/.one/stories/bullstamp-deployment-master-plan.md +0 -518
  110. package/.one/stories/bullstamp-executive-implementation-summary.md +0 -254
  111. package/.one/stories/bullstamp-project-status-complete.md +0 -257
  112. package/.one/stories/obsidian-pandoc-config.md +0 -159
  113. package/.one/stories/story-1.1-perfect-filesystem-organization.md +0 -270
  114. package/.one/stories/story-1.1.1.md +0 -136
  115. package/.one/stories/story-1.1.md +0 -131
  116. package/.one/stories/story-1.2.md +0 -420
  117. package/.one/stories/story-1.3.md +0 -177
  118. package/.one/stories/story-1.4.md +0 -356
  119. package/.one/stories/story-1.5.md +0 -572
  120. package/.one/stories/story-1.6.md +0 -481
  121. package/.one/stories/story-1.7.md +0 -923
  122. package/.one/stories/story-1.8.md +0 -404
  123. package/.one/stories/story-2.0.md +0 -132
  124. package/.one/stories/story-2.1.md +0 -110
  125. package/.one/stories/story-2.2.md +0 -110
  126. package/.one/stories/story-2.3.md +0 -112
  127. package/.one/stories/story-2.4.md +0 -116
  128. package/.one/stories/story-2.5.md +0 -114
  129. package/.one/stories/story-3.1.md +0 -298
  130. package/.one/stories/story-3.10.md +0 -302
  131. package/.one/stories/story-3.11.md +0 -167
  132. package/.one/stories/story-3.12.md +0 -235
  133. package/.one/stories/story-3.13.md +0 -235
  134. package/.one/stories/story-3.14.md +0 -225
  135. package/.one/stories/story-3.15.md +0 -238
  136. package/.one/stories/story-3.16.md +0 -244
  137. package/.one/stories/story-3.17.md +0 -245
  138. package/.one/stories/story-3.18.md +0 -248
  139. package/.one/stories/story-3.2.md +0 -226
  140. package/.one/stories/story-3.3.md +0 -226
  141. package/.one/stories/story-3.4.md +0 -226
  142. package/.one/stories/story-3.5.md +0 -167
  143. package/.one/stories/story-3.6.md +0 -167
  144. package/.one/stories/story-3.7.md +0 -181
  145. package/.one/stories/story-3.8.md +0 -198
  146. package/.one/stories/story-3.9.md +0 -169
  147. package/.one/stories/story-4.1.md +0 -245
  148. package/.one/stories/story-4.2.md +0 -314
  149. package/.one/stories/story-4.3.md +0 -610
  150. package/.one/stories/story-4.4.md +0 -931
  151. package/.one/stories/story-4.5.md +0 -727
  152. package/.one/stories/story-4.6-consistency.md +0 -175
  153. package/.one/stories/story-5.1.md +0 -508
  154. package/.one/stories/story-5.2.md +0 -451
  155. package/.one/stories/story-5.3.md +0 -405
  156. package/.one/stories/story-5.4.md +0 -447
  157. package/.one/stories/story-5.5.md +0 -349
  158. package/.one/stories/story-5.6.md +0 -445
  159. package/.one/stories/story-6.1-text-content-engine.md +0 -144
  160. package/.one/stories/story-6.2-audio-content-engine.md +0 -145
  161. package/.one/stories/story-6.3-video-content-engine.md +0 -145
  162. package/.one/stories/story-6.4-visual-content-engine.md +0 -177
  163. package/.one/stories/story-6.5-cross-platform-distribution.md +0 -188
  164. package/.one/stories/story-6.6.ai-content-generation-pipeline.md +0 -196
  165. package/.one/stories/story-6.7-character-consistency-quality-control.md +0 -216
  166. package/.one/stories/story-6.8-claude-code-content-integration.md +0 -181
  167. package/.one/stories/story-6.8-content-production-workflows.md +0 -247
  168. package/.one/stories/story-7.1-implementation.md +0 -128
  169. package/.one/stories/story-7.1.md +0 -203
  170. package/.one/stories/story-7.2-implementation.md +0 -147
  171. package/.one/stories/story-7.2.md +0 -415
  172. package/.one/stories/story-7.3-implementation.md +0 -159
  173. package/.one/stories/story-7.3.md +0 -463
  174. package/.one/stories/story-7.4-implementation.md +0 -154
  175. package/.one/stories/story-7.4.md +0 -500
  176. package/.one/stories/story-validation-report.md +0 -169
  177. package/one/archive-index.json +0 -91
  178. /package/one/stories/{story-3.1-npx-oneie-turbo-enhancement.md → story-2.1.1-npx-oneie-turbo-enhancement.md} +0 -0
  179. /package/one/stories/{story-3.2-npx-connection-implementation.md → story-2.21-npx-connection-implementation.md} +0 -0
@@ -0,0 +1,571 @@
1
+ # Task 3.1.3: Shared Configuration Packages
2
+
3
+ **Status:** 📋 READY FOR IMPLEMENTATION
4
+ **Assigned Agent:** Frontend Architect
5
+ **Story:** Story 3.1: External Repository Setup & Foundation
6
+ **Mission:** Mission-3: Production Turbo Monorepo
7
+ **Estimated Effort:** 2 response cycles
8
+ **Priority:** High Foundation
9
+ **Dependencies:** Task 3.1.1 (External Repository Creation) ✅
10
+
11
+ ## 🎯 Task Objective
12
+
13
+ Create comprehensive shared configuration packages (@repo/typescript-config, @repo/eslint-config, @repo/tailwind-config) that ensure development consistency, eliminate configuration drift, and provide enterprise-grade code quality standards across all monorepo applications and packages.
14
+
15
+ ## 📋 Technical Specifications
16
+
17
+ ### Primary Deliverables
18
+
19
+ #### 1. @repo/typescript-config Package
20
+
21
+ **Package Structure:**
22
+ ```
23
+ packages/config/typescript/
24
+ ├── package.json
25
+ ├── index.json # Base config
26
+ ├── react.json # React-specific config
27
+ ├── node.json # Node.js-specific config
28
+ ├── library.json # Library-specific config
29
+ ├── nextjs.json # Next.js-specific config
30
+ └── README.md # Usage documentation
31
+ ```
32
+
33
+ **package.json:**
34
+ ```json
35
+ {
36
+ "name": "@repo/typescript-config",
37
+ "version": "0.1.0",
38
+ "description": "Shared TypeScript configurations for the monorepo",
39
+ "main": "index.json",
40
+ "files": [
41
+ "*.json",
42
+ "README.md"
43
+ ],
44
+ "keywords": ["typescript", "config", "monorepo"],
45
+ "author": "Your Team",
46
+ "license": "MIT",
47
+ "publishConfig": {
48
+ "access": "restricted"
49
+ }
50
+ }
51
+ ```
52
+
53
+ **Base Configuration (index.json):**
54
+ ```json
55
+ {
56
+ "$schema": "https://json.schemastore.org/tsconfig",
57
+ "compilerOptions": {
58
+ "target": "ES2022",
59
+ "lib": ["ES2022", "DOM", "DOM.Iterable"],
60
+ "allowJs": true,
61
+ "skipLibCheck": true,
62
+ "strict": true,
63
+ "noEmit": true,
64
+ "esModuleInterop": true,
65
+ "module": "ESNext",
66
+ "moduleResolution": "Bundler",
67
+ "resolveJsonModule": true,
68
+ "isolatedModules": true,
69
+ "jsx": "preserve",
70
+ "incremental": true,
71
+ "noUncheckedIndexedAccess": true,
72
+ "forceConsistentCasingInFileNames": true,
73
+ "exactOptionalPropertyTypes": true,
74
+ "noImplicitReturns": true,
75
+ "noFallthroughCasesInSwitch": true,
76
+ "noUncheckedSideEffectImports": true,
77
+ "useDefineForClassFields": true,
78
+ "declaration": true,
79
+ "declarationMap": true,
80
+ "sourceMap": true,
81
+ "baseUrl": ".",
82
+ "paths": {
83
+ "@/*": ["./src/*"],
84
+ "@repo/ui": ["../../packages/ui/src"],
85
+ "@repo/utils": ["../../packages/utils/src"],
86
+ "@repo/types": ["../../packages/types/src"]
87
+ }
88
+ },
89
+ "include": [
90
+ "**/*.ts",
91
+ "**/*.tsx",
92
+ "**/*.js",
93
+ "**/*.jsx"
94
+ ],
95
+ "exclude": [
96
+ "node_modules",
97
+ "dist",
98
+ "build",
99
+ ".next",
100
+ "coverage"
101
+ ]
102
+ }
103
+ ```
104
+
105
+ **React Configuration (react.json):**
106
+ ```json
107
+ {
108
+ "extends": "./index.json",
109
+ "compilerOptions": {
110
+ "jsx": "react-jsx",
111
+ "lib": ["ES2022", "DOM", "DOM.Iterable"],
112
+ "types": ["react", "react-dom"]
113
+ },
114
+ "include": [
115
+ "**/*.ts",
116
+ "**/*.tsx"
117
+ ]
118
+ }
119
+ ```
120
+
121
+ #### 2. @repo/eslint-config Package
122
+
123
+ **Package Structure:**
124
+ ```
125
+ packages/config/eslint/
126
+ ├── package.json
127
+ ├── index.js # Base config
128
+ ├── react.js # React-specific rules
129
+ ├── node.js # Node.js-specific rules
130
+ ├── library.js # Library-specific rules
131
+ └── README.md # Usage documentation
132
+ ```
133
+
134
+ **package.json:**
135
+ ```json
136
+ {
137
+ "name": "@repo/eslint-config",
138
+ "version": "0.1.0",
139
+ "description": "Shared ESLint configurations for the monorepo",
140
+ "main": "index.js",
141
+ "files": [
142
+ "*.js",
143
+ "README.md"
144
+ ],
145
+ "dependencies": {
146
+ "@typescript-eslint/eslint-plugin": "^6.21.0",
147
+ "@typescript-eslint/parser": "^6.21.0",
148
+ "eslint-config-prettier": "^9.1.0",
149
+ "eslint-plugin-import": "^2.29.1",
150
+ "eslint-plugin-jsx-a11y": "^6.8.0",
151
+ "eslint-plugin-react": "^7.33.2",
152
+ "eslint-plugin-react-hooks": "^4.6.0",
153
+ "eslint-plugin-turbo": "^1.11.2"
154
+ },
155
+ "peerDependencies": {
156
+ "eslint": "^8.0.0",
157
+ "typescript": "^5.0.0"
158
+ },
159
+ "keywords": ["eslint", "config", "monorepo"],
160
+ "author": "Your Team",
161
+ "license": "MIT"
162
+ }
163
+ ```
164
+
165
+ **Base Configuration (index.js):**
166
+ ```javascript
167
+ module.exports = {
168
+ extends: [
169
+ "eslint:recommended",
170
+ "@typescript-eslint/recommended",
171
+ "@typescript-eslint/recommended-requiring-type-checking",
172
+ "eslint-config-prettier"
173
+ ],
174
+ plugins: ["@typescript-eslint", "import", "turbo"],
175
+ parser: "@typescript-eslint/parser",
176
+ parserOptions: {
177
+ ecmaVersion: "latest",
178
+ sourceType: "module",
179
+ project: true
180
+ },
181
+ rules: {
182
+ // TypeScript specific rules
183
+ "@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "^_" }],
184
+ "@typescript-eslint/consistent-type-imports": [
185
+ "error",
186
+ {
187
+ prefer: "type-imports",
188
+ fixStyle: "inline-type-imports"
189
+ }
190
+ ],
191
+ "@typescript-eslint/no-misused-promises": [
192
+ "error",
193
+ {
194
+ checksVoidReturn: false
195
+ }
196
+ ],
197
+ "@typescript-eslint/require-await": "off",
198
+ "@typescript-eslint/no-floating-promises": "error",
199
+
200
+ // Import rules
201
+ "import/order": [
202
+ "error",
203
+ {
204
+ groups: [
205
+ "builtin",
206
+ "external",
207
+ "internal",
208
+ "parent",
209
+ "sibling",
210
+ "index"
211
+ ],
212
+ "newlines-between": "always",
213
+ alphabetize: {
214
+ order: "asc",
215
+ caseInsensitive: true
216
+ }
217
+ }
218
+ ],
219
+ "import/no-duplicates": "error",
220
+ "import/no-unresolved": "off", // Handled by TypeScript
221
+
222
+ // Turbo rules
223
+ "turbo/no-undeclared-env-vars": "error",
224
+
225
+ // General rules
226
+ "prefer-const": "error",
227
+ "no-var": "error",
228
+ "no-console": ["warn", { allow: ["warn", "error"] }],
229
+ "no-debugger": "error",
230
+ "no-alert": "error",
231
+ "no-eval": "error"
232
+ },
233
+ env: {
234
+ es2022: true,
235
+ node: true
236
+ },
237
+ ignorePatterns: [
238
+ "node_modules/",
239
+ "dist/",
240
+ "build/",
241
+ ".next/",
242
+ "coverage/",
243
+ "*.config.js"
244
+ ]
245
+ };
246
+ ```
247
+
248
+ **React Configuration (react.js):**
249
+ ```javascript
250
+ module.exports = {
251
+ extends: ["./index.js"],
252
+ plugins: ["react", "react-hooks", "jsx-a11y"],
253
+ env: {
254
+ browser: true,
255
+ es2022: true
256
+ },
257
+ settings: {
258
+ react: {
259
+ version: "detect"
260
+ }
261
+ },
262
+ rules: {
263
+ // React specific rules
264
+ "react/react-in-jsx-scope": "off",
265
+ "react/prop-types": "off",
266
+ "react/jsx-uses-react": "off",
267
+ "react/jsx-uses-vars": "error",
268
+ "react/jsx-key": ["error", { checkFragmentShorthand: true }],
269
+ "react/jsx-no-target-blank": "error",
270
+ "react/jsx-curly-brace-presence": ["error", "never"],
271
+
272
+ // React Hooks rules
273
+ "react-hooks/rules-of-hooks": "error",
274
+ "react-hooks/exhaustive-deps": "warn",
275
+
276
+ // Accessibility rules
277
+ "jsx-a11y/alt-text": "error",
278
+ "jsx-a11y/anchor-has-content": "error",
279
+ "jsx-a11y/anchor-is-valid": "error",
280
+ "jsx-a11y/aria-props": "error",
281
+ "jsx-a11y/aria-proptypes": "error",
282
+ "jsx-a11y/aria-unsupported-elements": "error",
283
+ "jsx-a11y/role-has-required-aria-props": "error",
284
+ "jsx-a11y/role-supports-aria-props": "error"
285
+ }
286
+ };
287
+ ```
288
+
289
+ #### 3. @repo/tailwind-config Package
290
+
291
+ **Package Structure:**
292
+ ```
293
+ packages/config/tailwind/
294
+ ├── package.json
295
+ ├── index.js # Base config
296
+ ├── components.js # Component-specific config
297
+ ├── utilities.js # Utility classes
298
+ └── README.md # Usage documentation
299
+ ```
300
+
301
+ **package.json:**
302
+ ```json
303
+ {
304
+ "name": "@repo/tailwind-config",
305
+ "version": "0.1.0",
306
+ "description": "Shared Tailwind CSS configurations for the monorepo",
307
+ "main": "index.js",
308
+ "files": [
309
+ "*.js",
310
+ "README.md"
311
+ ],
312
+ "dependencies": {
313
+ "@tailwindcss/forms": "^0.5.7",
314
+ "@tailwindcss/typography": "^0.5.10",
315
+ "tailwindcss-animate": "^1.0.7"
316
+ },
317
+ "peerDependencies": {
318
+ "tailwindcss": "^3.4.0"
319
+ },
320
+ "keywords": ["tailwindcss", "config", "monorepo"],
321
+ "author": "Your Team",
322
+ "license": "MIT"
323
+ }
324
+ ```
325
+
326
+ **Base Configuration (index.js):**
327
+ ```javascript
328
+ const { fontFamily } = require("tailwindcss/defaultTheme");
329
+
330
+ /** @type {import('tailwindcss').Config} */
331
+ module.exports = {
332
+ content: [
333
+ "./src/**/*.{js,ts,jsx,tsx,mdx}",
334
+ "../../packages/ui/src/**/*.{js,ts,jsx,tsx}"
335
+ ],
336
+ darkMode: ["class"],
337
+ theme: {
338
+ extend: {
339
+ colors: {
340
+ border: "hsl(var(--border))",
341
+ input: "hsl(var(--input))",
342
+ ring: "hsl(var(--ring))",
343
+ background: "hsl(var(--background))",
344
+ foreground: "hsl(var(--foreground))",
345
+ primary: {
346
+ DEFAULT: "hsl(var(--primary))",
347
+ foreground: "hsl(var(--primary-foreground))"
348
+ },
349
+ secondary: {
350
+ DEFAULT: "hsl(var(--secondary))",
351
+ foreground: "hsl(var(--secondary-foreground))"
352
+ },
353
+ destructive: {
354
+ DEFAULT: "hsl(var(--destructive))",
355
+ foreground: "hsl(var(--destructive-foreground))"
356
+ },
357
+ muted: {
358
+ DEFAULT: "hsl(var(--muted))",
359
+ foreground: "hsl(var(--muted-foreground))"
360
+ },
361
+ accent: {
362
+ DEFAULT: "hsl(var(--accent))",
363
+ foreground: "hsl(var(--accent-foreground))"
364
+ },
365
+ popover: {
366
+ DEFAULT: "hsl(var(--popover))",
367
+ foreground: "hsl(var(--popover-foreground))"
368
+ },
369
+ card: {
370
+ DEFAULT: "hsl(var(--card))",
371
+ foreground: "hsl(var(--card-foreground))"
372
+ }
373
+ },
374
+ borderRadius: {
375
+ lg: "var(--radius)",
376
+ md: "calc(var(--radius) - 2px)",
377
+ sm: "calc(var(--radius) - 4px)"
378
+ },
379
+ fontFamily: {
380
+ sans: ["var(--font-sans)", ...fontFamily.sans],
381
+ mono: ["var(--font-mono)", ...fontFamily.mono]
382
+ },
383
+ keyframes: {
384
+ "accordion-down": {
385
+ from: { height: "0" },
386
+ to: { height: "var(--radix-accordion-content-height)" }
387
+ },
388
+ "accordion-up": {
389
+ from: { height: "var(--radix-accordion-content-height)" },
390
+ to: { height: "0" }
391
+ }
392
+ },
393
+ animation: {
394
+ "accordion-down": "accordion-down 0.2s ease-out",
395
+ "accordion-up": "accordion-up 0.2s ease-out"
396
+ }
397
+ }
398
+ },
399
+ plugins: [
400
+ require("@tailwindcss/forms"),
401
+ require("@tailwindcss/typography"),
402
+ require("tailwindcss-animate")
403
+ ]
404
+ };
405
+ ```
406
+
407
+ #### 4. Configuration Documentation
408
+
409
+ **packages/config/README.md:**
410
+ ```markdown
411
+ # Shared Configuration Packages
412
+
413
+ This directory contains shared configuration packages used across the monorepo to ensure consistency and reduce configuration drift.
414
+
415
+ ## Packages
416
+
417
+ ### @repo/typescript-config
418
+
419
+ Provides TypeScript configurations for different types of packages:
420
+ - `@repo/typescript-config` - Base configuration
421
+ - `@repo/typescript-config/react` - React applications
422
+ - `@repo/typescript-config/node` - Node.js applications
423
+ - `@repo/typescript-config/library` - Library packages
424
+
425
+ **Usage:**
426
+ ```json
427
+ {
428
+ "extends": "@repo/typescript-config/react"
429
+ }
430
+ ```
431
+
432
+ ### @repo/eslint-config
433
+
434
+ Provides ESLint configurations with TypeScript, React, and accessibility rules:
435
+ - `@repo/eslint-config` - Base configuration
436
+ - `@repo/eslint-config/react` - React applications
437
+ - `@repo/eslint-config/node` - Node.js applications
438
+
439
+ **Usage:**
440
+ ```javascript
441
+ module.exports = {
442
+ extends: ["@repo/eslint-config/react"]
443
+ };
444
+ ```
445
+
446
+ ### @repo/tailwind-config
447
+
448
+ Provides Tailwind CSS configuration with design system tokens and component utilities:
449
+ - `@repo/tailwind-config` - Base configuration
450
+ - `@repo/tailwind-config/components` - Component-specific utilities
451
+
452
+ **Usage:**
453
+ ```javascript
454
+ module.exports = {
455
+ ...require("@repo/tailwind-config"),
456
+ content: [
457
+ "./src/**/*.{js,ts,jsx,tsx}"
458
+ ]
459
+ };
460
+ ```
461
+
462
+ ## Development
463
+
464
+ To modify configurations:
465
+ 1. Update the relevant config package
466
+ 2. Run `bun install` in the root to update dependencies
467
+ 3. Test changes across all packages using `turbo run build`
468
+ ```
469
+
470
+ ## 🔧 Implementation Steps
471
+
472
+ ### Step 1: Package Structure Creation
473
+ 1. Create directory structure for all three config packages
474
+ 2. Set up package.json files with proper dependencies and metadata
475
+ 3. Initialize each package with base configurations
476
+
477
+ ### Step 2: Configuration Implementation
478
+ 1. Implement comprehensive TypeScript configurations
479
+ 2. Create robust ESLint rules with TypeScript and React support
480
+ 3. Configure Tailwind with design system tokens and utilities
481
+ 4. Add specialized configurations for different package types
482
+
483
+ ### Step 3: Integration Setup
484
+ 1. Configure packages to reference each other properly
485
+ 2. Set up inheritance patterns for configuration extension
486
+ 3. Implement proper dependency management
487
+ 4. Create usage documentation and examples
488
+
489
+ ### Step 4: Validation and Testing
490
+ 1. Test configuration inheritance across all package types
491
+ 2. Verify no conflicts between different configuration layers
492
+ 3. Validate TypeScript compilation with shared configs
493
+ 4. Test ESLint rules across React and Node.js codebases
494
+
495
+ ## ✅ Quality Criteria
496
+
497
+ ### Technical Validation (Must Pass All)
498
+ - [ ] All configuration packages install without errors
499
+ - [ ] TypeScript configurations compile successfully across all package types
500
+ - [ ] ESLint configurations validate without conflicts or warnings
501
+ - [ ] Tailwind configurations generate CSS without errors
502
+ - [ ] Configuration inheritance works properly across all packages
503
+
504
+ ### Integration Validation
505
+ - [ ] All applications properly inherit from shared configurations
506
+ - [ ] No configuration conflicts between packages
507
+ - [ ] Hot reloading works with shared configurations
508
+ - [ ] Build processes complete without configuration errors
509
+
510
+ ### Developer Experience Validation
511
+ - [ ] IDE support works correctly with shared TypeScript configurations
512
+ - [ ] Linting provides helpful feedback across all codebases
513
+ - [ ] Styling utilities are available in all frontend applications
514
+ - [ ] Configuration changes propagate correctly to all consuming packages
515
+
516
+ ## 🎯 Configuration Standards
517
+
518
+ ### TypeScript Standards
519
+ - Strict mode enabled with comprehensive type checking
520
+ - Modern ES2022 target with appropriate library support
521
+ - Path mapping configured for monorepo package resolution
522
+ - Declaration files generated for all library packages
523
+ - Source maps enabled for debugging support
524
+
525
+ ### ESLint Standards
526
+ - TypeScript-aware linting with type-checking rules
527
+ - Import/export order enforcement and optimization
528
+ - React-specific rules for component development
529
+ - Accessibility rules for inclusive web development
530
+ - Turbo-specific rules for monorepo optimization
531
+
532
+ ### Tailwind Standards
533
+ - Design system tokens for consistent theming
534
+ - Component-ready utilities for rapid development
535
+ - Dark mode support with CSS variable approach
536
+ - Responsive design utilities for mobile-first development
537
+ - Animation utilities for smooth user interactions
538
+
539
+ ## 🔗 Integration Points
540
+
541
+ ### With Story 3.1 Tasks
542
+ - **Task 3.1.1**: Utilizes repository structure and workspace configuration
543
+ - **Task 3.1.2**: Provides configurations that Turbo tasks will validate and cache
544
+ - **Task 3.1.4**: Integrates with Bun package management for dependency resolution
545
+ - **Task 3.1.5**: Supports development environment with consistent tooling
546
+
547
+ ### With Monorepo Applications
548
+ - **Web Apps**: React configurations with Next.js/Astro optimization
549
+ - **API Services**: Node.js configurations with backend-specific rules
550
+ - **UI Packages**: Library configurations optimized for component development
551
+ - **Utility Libraries**: Base configurations for shared utility functions
552
+
553
+ ## 🚨 Critical Success Factors
554
+
555
+ ### Must Achieve (Non-Negotiable)
556
+ 1. **Zero Configuration Conflicts**: No conflicts between shared configs
557
+ 2. **Complete Coverage**: All package types have appropriate configurations
558
+ 3. **Inheritance Functionality**: Proper extension and override patterns work
559
+ 4. **Development Tool Support**: Full IDE and tooling integration
560
+
561
+ ### Must Avoid (Failure Conditions)
562
+ 1. **Configuration Drift**: Inconsistent configurations across packages
563
+ 2. **Circular Dependencies**: Config packages creating dependency loops
564
+ 3. **Tool Conflicts**: ESLint/Prettier conflicts or TypeScript compilation errors
565
+ 4. **Performance Issues**: Slow builds or linting due to configuration overhead
566
+
567
+ ---
568
+
569
+ **Task Configuration Focus**: This task creates the foundation for consistent, maintainable, and high-quality code across the entire monorepo. The shared configurations ensure that all developers work with the same standards and tools, eliminating configuration drift and reducing maintenance overhead.
570
+
571
+ **Quality Gate**: 4.0/5.0 stars required - all configurations must work flawlessly across different package types and development scenarios before proceeding to Task 3.1.4.