@schafevormfenster/eslint-config 0.0.11 → 0.0.14

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.
@@ -1,6 +1,5 @@
1
-
2
- 
3
- > @schafevormfenster/eslint-config@0.0.11 check /Users/jan-henrik.hempel/Projects/commons/packages/eslint-config
4
- > echo 'eslint-config: no build required'
5
-
6
- eslint-config: no build required
1
+
2
+ > @schafevormfenster/eslint-config@0.0.12 check /Users/jan-henrik.hempel/Projects/commons/packages/eslint-config
3
+ > echo 'eslint-config: no build required'
4
+
5
+ eslint-config: no build required
@@ -97,7 +97,7 @@ These configurations enforce domain-specific patterns and are designed to be use
97
97
  #### `@schafevormfenster/eslint-config/architecture`
98
98
  **Purpose**: Enforces architectural patterns and file organization
99
99
  **Key rules**:
100
- - Kebab-case file naming with semantic suffixes
100
+ - Kebab-case file naming with semantic suffixes (client helpers can adopt `*.health.ts` naming when they live next to their clients)
101
101
  - Folder structure conventions (src/app, src/clients, src/services, etc.)
102
102
  - Layer dependency rules (clients → services → coordinators)
103
103
  - One function per file
@@ -274,7 +274,7 @@ Below is a comprehensive mapping of custom rules (from `@schafevormfenster/eslin
274
274
  |------|----------|-------------|
275
275
  | `enforce-apitest-env-vars` | error | Require APITEST_* prefix for env vars in E2E tests |
276
276
  | `enforce-test-file-naming` | error | Enforce *.spec.ts for Playwright tests |
277
- | `no-env-preservation-in-tests` | error | Forbid preserving/restoring process.env in tests |
277
+ | `no-env-preservation-in-tests` | error | Forbid preserving/restoring process.env (individual vars or entire env with `{ ...process.env }`) |
278
278
  | `require-describe-wrapper` | warn | Require test cases to be wrapped in describe() blocks |
279
279
  | `require-meaningful-descriptions` | warn | Require meaningful descriptions (min 10 chars for describe, 15 for it/test) |
280
280
  | `suggest-test-categorization` | warn | Suggest organizing tests into categories (Happy Path → Error → Edge Cases) |
@@ -287,8 +287,8 @@ Below is a comprehensive mapping of custom rules (from `@schafevormfenster/eslin
287
287
  |------|----------|-------------|
288
288
  | `prefer-loose-error-matching` | warn | Prefer regex over exact string matching for errors |
289
289
  | `enforce-test-file-naming` | error | Enforce *.test.ts for Vitest tests |
290
- | `no-env-preservation-in-tests` | error | Forbid preserving/restoring process.env in tests |
291
- | `require-env-setup-in-tests` | warn | Require beforeEach to initialize env vars |
290
+ | `no-env-preservation-in-tests` | error | Forbid preserving/restoring process.env (individual vars or entire env with `{ ...process.env }`) |
291
+ | `require-env-setup-in-tests` | warn | Require beforeEach/afterEach in current describe or parent to handle env vars |
292
292
  | `require-describe-wrapper` | warn | Require test cases to be wrapped in describe() blocks |
293
293
  | `require-meaningful-descriptions` | warn | Require meaningful descriptions (min 10 chars for describe, 15 for it/test) |
294
294
  | `suggest-test-categorization` | warn | Suggest organizing tests into categories (Happy Path → Error → Edge Cases) |
@@ -301,8 +301,8 @@ Below is a comprehensive mapping of custom rules (from `@schafevormfenster/eslin
301
301
  |------|----------|-------------|
302
302
  | `prefer-loose-error-matching` | warn | Prefer regex over exact string matching for errors |
303
303
  | `enforce-test-file-naming` | error | Enforce *.test.ts for integration tests |
304
- | `no-env-preservation-in-tests` | error | Forbid preserving/restoring process.env in tests |
305
- | `require-env-setup-in-tests` | warn | Require beforeEach to initialize env vars |
304
+ | `no-env-preservation-in-tests` | error | Forbid preserving/restoring process.env (individual vars or entire env with `{ ...process.env }`) |
305
+ | `require-env-setup-in-tests` | warn | Require beforeEach/afterEach in current describe or parent to handle env vars |
306
306
  | `require-describe-wrapper` | warn | Require test cases to be wrapped in describe() blocks |
307
307
  | `require-meaningful-descriptions` | warn | Require meaningful descriptions (min 10 chars for describe, 15 for it/test) |
308
308
  | `suggest-test-categorization` | warn | Suggest organizing tests into categories (Happy Path → Error → Edge Cases) |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@schafevormfenster/eslint-config",
3
- "version": "0.0.11",
3
+ "version": "0.0.14",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -37,7 +37,7 @@
37
37
  "eslint-plugin-zod": "^1.4.0",
38
38
  "globals": "^16.5.0",
39
39
  "typescript-eslint": "^8.55.0",
40
- "@schafevormfenster/eslint-plugin": "0.0.12"
40
+ "@schafevormfenster/eslint-plugin": "0.0.14"
41
41
  },
42
42
  "engines": {
43
43
  "node": ">=22"