@cbrl/eslint-config 0.1.1 → 0.2.1

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.
@@ -2,7 +2,7 @@
2
2
  // a machine-checked dependency graph instead of a prose convention. Two walls:
3
3
  //
4
4
  // 1. PURITY — `features/*/core/**` is the functional core: pure rules, view
5
- // models, parsing. It MUST NOT reach for React, Next, Firestore, or any
5
+ // models, parsing. It MUST NOT reach for React, Next, a database client, or any
6
6
  // I/O. The whole point is that core is unit-testable with zero harness, so
7
7
  // coverage + mutation have teeth. Enforced with stock `no-restricted-imports`
8
8
  // (zero false positives — purity is literally "doesn't import these").
@@ -44,16 +44,22 @@ export const layering = [
44
44
  },
45
45
  {
46
46
  group: [
47
- 'firebase',
48
- 'firebase/*',
49
- 'firebase-admin',
50
- 'firebase-admin/*',
47
+ 'pg',
48
+ 'pg/*',
49
+ 'drizzle-orm',
50
+ 'drizzle-orm/*',
51
+ '@supabase/*',
52
+ 'stripe',
53
+ '@cbrl/pg',
54
+ '@cbrl/pg/*',
55
+ '@cbrl/supabase',
56
+ '@cbrl/supabase/*',
51
57
  '@/shared/db',
52
58
  '@/shared/db/*',
53
59
  'server-only',
54
60
  ],
55
61
  message:
56
- 'core/ is pure: no Firestore/admin/server-only. Data access lives in adapters/ (e.g. *.repo.ts).',
62
+ 'core/ is pure: no database, auth or payment client, no server-only. Data access lives in adapters/ (e.g. *.repo.ts).',
57
63
  },
58
64
  {
59
65
  group: ['**/adapters/*', '**/ui/*', '@/features/*/adapters/*', '@/features/*/ui/*'],
@@ -87,15 +93,21 @@ export const layering = [
87
93
  },
88
94
  {
89
95
  group: [
90
- 'firebase',
91
- 'firebase/*',
92
- 'firebase-admin',
93
- 'firebase-admin/*',
96
+ 'pg',
97
+ 'pg/*',
98
+ 'drizzle-orm',
99
+ 'drizzle-orm/*',
100
+ '@supabase/*',
101
+ 'stripe',
102
+ '@cbrl/pg',
103
+ '@cbrl/pg/*',
104
+ '@cbrl/supabase',
105
+ '@cbrl/supabase/*',
94
106
  '@/shared/db',
95
107
  '@/shared/db/*',
96
108
  'server-only',
97
109
  ],
98
- message: 'domain/ is pure: no Firestore/admin/server-only.',
110
+ message: 'domain/ is pure: no database, auth or payment client, no server-only.',
99
111
  },
100
112
  {
101
113
  group: ['@/shared/*', '@/features/*', '@/app/*'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cbrl/eslint-config",
3
- "version": "0.1.1",
3
+ "version": "0.2.1",
4
4
  "description": "Strict ESLint flat config for TypeScript, React and Next.js apps, with custom fail-fast rules (no eslint-disable, no env fallbacks).",
5
5
  "license": "MIT",
6
6
  "author": "Kayron Cabral",
@@ -41,17 +41,17 @@
41
41
  "eslint-plugin-playwright": "^2.2.2",
42
42
  "eslint-plugin-sonarjs": "^4.0.3",
43
43
  "eslint-plugin-testing-library": "^7.13.1",
44
- "globals": "^15.15.0",
44
+ "globals": "^17.14.0",
45
45
  "typescript-eslint": "^8.59.3"
46
46
  },
47
47
  "peerDependencies": {
48
48
  "eslint": "^9.0.0",
49
- "typescript": ">=5.0.0 <7"
49
+ "typescript": ">=5.0.0 <6.1"
50
50
  },
51
51
  "devDependencies": {
52
52
  "eslint": "^9.39.4",
53
53
  "publint": "^0.3.25",
54
- "typescript": "^5.9.3"
54
+ "typescript": "^6.0.3"
55
55
  },
56
56
  "publishConfig": {
57
57
  "access": "public"