@shivaedev/quality 0.67.3 → 0.68.0

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 (106) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +22 -5
  3. package/dist/PackageManifest.d.ts +1 -0
  4. package/dist/PackageManifest.d.ts.map +1 -1
  5. package/dist/PackageManifest.js +1 -1
  6. package/dist/PackageManifest.js.map +1 -1
  7. package/dist/adapters/biome/browserDiagnostic.d.ts +3 -0
  8. package/dist/adapters/biome/browserDiagnostic.d.ts.map +1 -0
  9. package/dist/adapters/biome/browserDiagnostic.js +93 -0
  10. package/dist/adapters/biome/browserDiagnostic.js.map +1 -0
  11. package/dist/adapters/biome/browserTargets.d.ts +19 -0
  12. package/dist/adapters/biome/browserTargets.d.ts.map +1 -0
  13. package/dist/adapters/biome/browserTargets.js +26 -0
  14. package/dist/adapters/biome/browserTargets.js.map +1 -0
  15. package/dist/adapters/biome/run.js +2 -2
  16. package/dist/adapters/biome/run.js.map +1 -1
  17. package/dist/adapters/biome/vitestEntry.d.ts +4 -0
  18. package/dist/adapters/biome/vitestEntry.d.ts.map +1 -0
  19. package/dist/adapters/biome/vitestEntry.js +27 -0
  20. package/dist/adapters/biome/vitestEntry.js.map +1 -0
  21. package/dist/adapters/biome/withExceptionConfig.d.ts +1 -1
  22. package/dist/adapters/biome/withExceptionConfig.d.ts.map +1 -1
  23. package/dist/adapters/biome/withExceptionConfig.js +4 -2
  24. package/dist/adapters/biome/withExceptionConfig.js.map +1 -1
  25. package/dist/adapters/knip/configuration.d.ts.map +1 -1
  26. package/dist/adapters/knip/configuration.js +1 -4
  27. package/dist/adapters/knip/configuration.js.map +1 -1
  28. package/dist/adapters/knip/run.js +3 -3
  29. package/dist/adapters/knip/run.js.map +1 -1
  30. package/dist/biome/recognizeDiagnostics.d.ts.map +1 -1
  31. package/dist/biome/recognizeDiagnostics.js +13 -6
  32. package/dist/biome/recognizeDiagnostics.js.map +1 -1
  33. package/dist/inventory/collect.js +2 -2
  34. package/dist/inventory/collect.js.map +1 -1
  35. package/dist/inventory/toolOwnedFiles.d.ts +4 -0
  36. package/dist/inventory/toolOwnedFiles.d.ts.map +1 -0
  37. package/dist/inventory/toolOwnedFiles.js +36 -0
  38. package/dist/inventory/toolOwnedFiles.js.map +1 -0
  39. package/dist/rules/files/otherNames.d.ts.map +1 -1
  40. package/dist/rules/files/otherNames.js +13 -1
  41. package/dist/rules/files/otherNames.js.map +1 -1
  42. package/dist/rules/stories/adapters/authTables.d.ts +3 -0
  43. package/dist/rules/stories/adapters/authTables.d.ts.map +1 -0
  44. package/dist/rules/stories/adapters/authTables.js +52 -0
  45. package/dist/rules/stories/adapters/authTables.js.map +1 -0
  46. package/dist/rules/stories/adapters/eventConsumption.d.ts +5 -0
  47. package/dist/rules/stories/adapters/eventConsumption.d.ts.map +1 -0
  48. package/dist/rules/stories/adapters/eventConsumption.js +30 -0
  49. package/dist/rules/stories/adapters/eventConsumption.js.map +1 -0
  50. package/dist/rules/stories/adapters/outcomeShapes.d.ts +5 -0
  51. package/dist/rules/stories/adapters/outcomeShapes.d.ts.map +1 -0
  52. package/dist/rules/stories/adapters/outcomeShapes.js +46 -0
  53. package/dist/rules/stories/adapters/outcomeShapes.js.map +1 -0
  54. package/dist/rules/stories/adapters/sqlTables.d.ts +5 -0
  55. package/dist/rules/stories/adapters/sqlTables.d.ts.map +1 -0
  56. package/dist/rules/stories/adapters/sqlTables.js +85 -0
  57. package/dist/rules/stories/adapters/sqlTables.js.map +1 -0
  58. package/dist/rules/stories/adapters/sqlTokens.d.ts +3 -0
  59. package/dist/rules/stories/adapters/sqlTokens.d.ts.map +1 -0
  60. package/dist/rules/stories/adapters/sqlTokens.js +30 -0
  61. package/dist/rules/stories/adapters/sqlTokens.js.map +1 -0
  62. package/dist/rules/stories/authSql.d.ts.map +1 -1
  63. package/dist/rules/stories/authSql.js +18 -111
  64. package/dist/rules/stories/authSql.js.map +1 -1
  65. package/dist/rules/stories/domainOutcomes.d.ts.map +1 -1
  66. package/dist/rules/stories/domainOutcomes.js +24 -17
  67. package/dist/rules/stories/domainOutcomes.js.map +1 -1
  68. package/dist/rules/stories/waitOnEvents.d.ts.map +1 -1
  69. package/dist/rules/stories/waitOnEvents.js +18 -2
  70. package/dist/rules/stories/waitOnEvents.js.map +1 -1
  71. package/package.json +3 -1
  72. package/src/PackageManifest.ts +1 -1
  73. package/src/adapters/biome/browserDiagnostic.ts +100 -0
  74. package/src/adapters/biome/browserTargets.ts +27 -0
  75. package/src/adapters/biome/run.ts +2 -2
  76. package/src/adapters/biome/vitestEntry.ts +37 -0
  77. package/src/adapters/biome/withExceptionConfig.ts +4 -2
  78. package/src/adapters/knip/configuration.ts +1 -4
  79. package/src/adapters/knip/run.ts +3 -3
  80. package/src/biome/recognizeDiagnostics.ts +12 -5
  81. package/src/inventory/collect.ts +2 -2
  82. package/src/inventory/toolOwnedFiles.ts +41 -0
  83. package/src/rules/files/otherNames.ts +13 -1
  84. package/src/rules/stories/adapters/authTables.ts +58 -0
  85. package/src/rules/stories/adapters/eventConsumption.ts +35 -0
  86. package/src/rules/stories/adapters/outcomeShapes.ts +57 -0
  87. package/src/rules/stories/adapters/sqlTables.ts +96 -0
  88. package/src/rules/stories/adapters/sqlTokens.ts +31 -0
  89. package/src/rules/stories/authSql.ts +20 -128
  90. package/src/rules/stories/domainOutcomes.ts +25 -18
  91. package/src/rules/stories/waitOnEvents.ts +24 -2
  92. package/dist/inventory/shadcnAlias.d.ts +0 -2
  93. package/dist/inventory/shadcnAlias.d.ts.map +0 -1
  94. package/dist/inventory/shadcnAlias.js +0 -73
  95. package/dist/inventory/shadcnAlias.js.map +0 -1
  96. package/dist/inventory/shadcnFiles.d.ts +0 -4
  97. package/dist/inventory/shadcnFiles.d.ts.map +0 -1
  98. package/dist/inventory/shadcnFiles.js +0 -83
  99. package/dist/inventory/shadcnFiles.js.map +0 -1
  100. package/dist/inventory/shadcnFolders.d.ts +0 -6
  101. package/dist/inventory/shadcnFolders.d.ts.map +0 -1
  102. package/dist/inventory/shadcnFolders.js +0 -27
  103. package/dist/inventory/shadcnFolders.js.map +0 -1
  104. package/src/inventory/shadcnAlias.ts +0 -88
  105. package/src/inventory/shadcnFiles.ts +0 -87
  106. package/src/inventory/shadcnFolders.ts +0 -36
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.68.0 - 2026-11-06
4
+
5
+ ### Added
6
+
7
+ - Resolve declared Browserslist targets, including Electron renderers, and check Biome's CSS findings against MDN compatibility data. Applications without declared targets retain the shared Baseline policy.
8
+
9
+ ### Fixed
10
+
11
+ - Classify auth SQL by schema and ownership, preserve domain-event tags in stories, accept event-consuming helpers regardless of their names, retain findings for polling and real Vitest callbacks, and accept conventional authority documents.
12
+
13
+ ### Breaking
14
+
15
+ - Registry filenames no longer exclude components from checks. Declare unmodified tool-owned files with reasoned `quality.toolOwned` globs in the owning package's manifest; customized components remain checked. Direct inventory integrations replace `inventory/shadcnFiles.ts` with `inventory/toolOwnedFiles.ts`; remove the obsolete `inventory/shadcnAlias.ts` and `inventory/shadcnFolders.ts` imports and declare ownership facts instead. Auth SQL ownership now comes from configured owner table declarations or recognizable inventoried schema declarations; keep that evidence visible instead of relying on conventional table names.
16
+
3
17
  ## 0.67.3 - 2026-11-06
4
18
 
5
19
  ### Changed
package/README.md CHANGED
@@ -233,7 +233,24 @@ When a config exists, its folder is the root for paths and hook scripts. Without
233
233
 
234
234
  Quality reads the skills tool’s `.shivaedev-skills.json` ownership manifest in each repository’s `.agents/skills` folder. It skips the recorded folders, their `.claude/skills` links and the manifest itself in source checks, Biome lint and formatting, manifest sorting and fixes, including rule-specific fixes. Local skills beside those copies remain checked. Change a shared skill at its source and run `shivaedev-skills sync` to refresh the copies.
235
235
 
236
- Quality discovers each app’s `components.json` and resolves `aliases.ui` through its TypeScript paths or package imports. Inside that folder, source rules and Biome lint, formatting and fixes skip only canonical shadcn registry filenames such as `button.tsx` and `dialog.tsx`, including their `.ts`, `.js` and `.jsx` variants. Hand-written components with other names stay checked, as do matching names outside the configured UI folder. Knip still follows imports from skipped components, so their dependencies count as used. Ownership follows filenames: a hand-written file that reuses a registry name inside the UI folder is also skipped.
236
+ Registry ownership is explicit. A package declares unmodified registry files in its `package.json` under `quality.toolOwned`, with package-relative gitignore globs and reasons. Source rules, Biome lint, formatting and fixes skip those files; Knip still follows their imports so their dependencies count as used. A registry filename or `components.json` alone grants no ownership: customized `button.tsx` and `dialog.tsx` remain checked unless the facts declare otherwise. Remove a declaration when a file becomes application-owned. A missing match or blank reason stops the gate.
237
+
238
+ ```json
239
+ {
240
+ "quality": {
241
+ "toolOwned": [
242
+ {
243
+ "glob": "src/components/ui/button.tsx",
244
+ "reason": "The registry owns this unmodified component."
245
+ }
246
+ ]
247
+ }
248
+ }
249
+ ```
250
+
251
+ Declare browser targets through Browserslist in the application's `package.json` (`"browserslist": ["electron 38.0"]`) or `.browserslistrc`. Quality uses the production environment, resolves Electron to its Chromium renderer and checks CSS features reported by Biome against MDN browser compatibility data for every selected browser. Features must be supported by every selected target. Without a declared target, `useBaseline` keeps the shared availability-year policy. A nested application's target applies to its CSS without changing untargeted sibling applications.
252
+
253
+ Generator fixture arguments in custom test entries are accepted by Quality's `noDoneCallback` recognition; parameters of actual Vitest entries remain checked. File-input `accept` values may contain whitespace between comma-separated MIME types, such as `image/jpeg, image/png, image/webp`; invalid types remain findings.
237
254
 
238
255
  Quality reads each app's `tsr.config.json` and literal `tanstackRouter` / `TanStackRouterVite` options imported from `@tanstack/router-plugin/vite` or `@tanstack/router-vite-plugin` in `vite.config.*`. `routesDirectory` is relative to that app's config folder and defaults to `src/routes`; Vite options override the JSON options. Declare the folder once in the router configuration: `files/named-after-export` accepts route filenames, and `files/folder-names` accepts their route groups and pathless layout folders, including routes added later. Other source rules still check routes. Ordinary files outside that folder, other apps and helper files excluded by `routeFileIgnorePrefix` (default `-`), `routeFileIgnorePattern` or `routeFilePrefix` keep their normal naming checks. A folder named `routes` alone establishes no ownership. Ignore patterns use Unicode regular expressions. Quality reads configuration without executing Vite: computed or spread router options must move into `tsr.config.json` or become literal options. Malformed JSON or invalid route-folder settings stop the gate. Exception declarations still name explicit files; route discovery adds no exception globs.
239
256
 
@@ -331,9 +348,9 @@ Quality's `tests/story-setup` rule reports top-level test functions named with t
331
348
 
332
349
  Specs keep expectations visible. `tests/spec-helpers` keeps setup and action helpers in the kit; pure matchers and readers may stay beside their specs. It recognises property reads and non-mutating methods that TypeScript resolves to native collections and strings, and Vitest’s imported asymmetric matcher factories such as `expect.objectContaining`. It still reports mutation, asynchronous work and unknown calls; `tests/no-expect-in-support` moves `expect` calls into the spec, except in test-support files that register tests at module top level and are not imported by any module, so nested Vitest runs can execute them as test files with real assertions. `tests/named-values` rejects numeric literals passed to `toBe` or `toHaveLength` in specs, except zero and process exit codes asserted on an `exitCode` subject: assert the observed items or use a domain name that comes from the story's inputs or the product. For HTTP statuses, import `* as HttpStatus` from `effect/http/HttpStatus` and use `HttpStatus.fromLiteral("NotFound")`; subjects named `status` or `code` do not exempt numeric assertions. A spec-local numeric const that only feeds these matchers is reported, including aliases for zero and codes. `tests/no-limit-imports` rejects importing `MAX_*` constants from a `limits` module into specs, so a story proves behavior instead of copying an implementation cap.
333
350
 
334
- Three more rules keep a spec readable as a story, as the [story-testing skill](https://github.com/ShivaeDev/platform/blob/main/packages/skills/skills/story-testing/SKILL.md) describes. Together with `tests/spec-helpers`, `tests/named-values` and `tests/no-limit-imports`, they read files whose test declarations trace to a story kit, whatever their suffix: a `.test` or `.spec` file outside `test-support` that is not a type or unit test, such as `orders.spec.ts`, `pane.dom.test.ts` or `orders.slow.test.ts`. The suffix says where a test sits under `tests/follow`, not whether it is a story, and `tests/story-specs` already holds every such file to the story kit. They exempt the same test-story prerequisites as `tests/story-specs`. `tests/domain-outcomes` reports each use of Effect's `Exit`, `Cause` or `Result` module, each `_tag` read or destructuring, and each object literal tagged `"Success"` or `"Failure"`: the kit's verb or readout returns the outcome in the domain's words, such as `"unauthorized"`, and a trait builds any failing input. A domain's own tagged value, such as `{ _tag: "Resync" }`, passes. `tests/grouped-outcomes` reports each run of two or more consecutive `expect(yield* …)` statements once, at its first statement: write the outcomes as rows of one `outcomes` call.
351
+ Three more rules keep a spec readable as a story, as the [story-testing skill](https://github.com/ShivaeDev/platform/blob/main/packages/skills/skills/story-testing/SKILL.md) describes. Together with `tests/spec-helpers`, `tests/named-values` and `tests/no-limit-imports`, they read files whose test declarations trace to a story kit, whatever their suffix: a `.test` or `.spec` file outside `test-support` that is not a type or unit test, such as `orders.spec.ts`, `pane.dom.test.ts` or `orders.slow.test.ts`. The suffix says where a test sits under `tests/follow`, not whether it is a story, and `tests/story-specs` already holds every such file to the story kit. They exempt the same test-story prerequisites as `tests/story-specs`. `tests/domain-outcomes` reports uses of Effect's `Exit`, `Cause` or `Result` modules, reads or destructuring traceable to their values and outcome literals tagged `"Success"` or `"Failure"`, including partial expectations: the kit's verb or readout returns the outcome in the domain's words, such as `"unauthorized"`, and a trait builds any failing input. A domain's own tagged schemas and durable event histories pass, including reads and destructuring of their `_tag` fields. `tests/grouped-outcomes` reports each run of two or more consecutive `expect(yield* …)` statements once, at its first statement: write the outcomes as rows of one `outcomes` call.
335
352
 
336
- `tests/wait-on-events` checks those story specs and the `test-support/` modules reachable through their runtime imports, including aliases, re-exports and literal dynamic imports. It reports `Effect.sleep`, real timers (including browser and Node timer imports), wall-clock reads such as `Date.now()` and `performance.now()`, calls to an imported `eventually`, Vitest's fake timers and `vi.waitFor`, including polling loops and quiet windows built from these calls. It accepts no config exceptions. Product modules keep their timers. `TestClock.adjust` and `TestClock.setTime` are reported in specs and accepted in support: when time passing is the behaviour, advance the controlled clock in a kit verb named for it.
353
+ `tests/wait-on-events` checks those story specs and the `test-support/` modules reachable through their runtime imports, including aliases, re-exports and literal dynamic imports. It reports `Effect.sleep`, real timers (including browser and Node timer imports), wall-clock reads such as `Date.now()` and `performance.now()`, calls to the polling `eventually` from `@shivaedev/test/eventually.ts`, repeated state reads and loops without event consumption, Vitest's fake timers and `vi.waitFor`, including polling loops and quiet windows built from these calls. Local helpers are judged by their reachable bodies: consuming an event stream until a matching state arrives passes even when the helper is named `eventually` or `waitFor`. It accepts no config exceptions. Product modules keep their timers. `TestClock.adjust` and `TestClock.setTime` are reported in specs and accepted in support: when time passing is the behaviour, advance the controlled clock in a kit verb named for it.
337
354
 
338
355
  Settle on the engine's own signal through a kit verb. A deadline bounds a failure but does not prove completion; reaching it must fail the story. The rule accepts failing Effect timeouts, a sleep piped directly into `Effect.andThen(Effect.fail(...))` or `Effect.andThen(Effect.die(...))`, and timeout callbacks that end by calling their enclosing Promise executor's rejection parameter. A resolving timeout or a sleep that ends successfully still guesses when the work is done.
339
356
 
@@ -341,7 +358,7 @@ Settle on the engine's own signal through a kit verb. A deadline bounds a failur
341
358
 
342
359
  `tests/queue-readouts` reports access to jobs-testing's `jobs` and `snapshot` readouts in tests and `test-support/`, including wrappers that return counts or job states. An enqueued job does not prove the work ran: assert the application's visible result instead. Worker controls and waits remain available. The check recognizes receivers named `jobsTesting`, controllers constructed with `makePgBossTesting` or annotated with the imported `PgBossTesting` type, local and imported aliases, destructuring and literal bracket access. It does not evaluate dynamic property names or arbitrary controller factories. The package named `@shivaedev/jobs` is exempt, at the repository root or wherever it lives in the workspace; test-kits also owns readout evidence under its `src/jobs/` and `src/test-support/jobs/` folders. Other test-kits domains and nested application packages remain checked. This rule refuses config exceptions and inline suppressions.
343
360
 
344
- `boundaries/queue-sql` rejects SQL mentioning the private `pgboss.` schema. Apps use their queue definitions and let workers process jobs; there is no queue-purge API by design. `boundaries/auth-sql` rejects SQL accessing Better Auth's `user`, `account`, `session` and `verification` tables. App tables reference users by foreign key: migrations may reference only `user(id)` with `ON DELETE CASCADE` or `ON DELETE SET NULL`. Import `userReference` from `@shivaedev/identity/server/better-auth/userReference.ts` and interpolate `sql(userReference.table)` and `sql(userReference.column)` in the reference. Apps use identity for account data; `options.owners` names platform's own auth implementation and its migrations. These rules inspect SQL templates, literal query calls and query variables, and inventoried `.sql` files. They do not evaluate arbitrary runtime SQL construction.
361
+ `boundaries/queue-sql` rejects SQL mentioning the private `pgboss.` schema. Apps use their queue definitions and let workers process jobs; there is no queue-purge API by design. `boundaries/auth-sql` identifies Better Auth storage from inventoried `CREATE TABLE` declarations in the configured owners or declarations with Better Auth column signatures (user email verification, provider accounts, session tokens and expiry, and verification values). SQL against those tables is reported even when the tables have been renamed. Schema-qualified identities stay distinct; an agent's durable `session` table is application data. A name alone does not establish auth ownership; keep the schema declarations in the inventory. App tables reference users by foreign key: migrations may reference only `user(id)` with `ON DELETE CASCADE` or `ON DELETE SET NULL`. Import `userReference` from `@shivaedev/identity/server/better-auth/userReference.ts` and interpolate `sql(userReference.table)` and `sql(userReference.column)` in the reference. Apps use identity for account data; `options.owners` names platform's own auth implementation and its migrations. These rules inspect SQL templates, literal query calls and query variables, and inventoried `.sql` files. They do not evaluate arbitrary runtime SQL construction.
345
362
 
346
363
  `boundaries/http-status` rejects comparisons with HTTP error status numbers, switch cases and literal status-list membership outside `options.edge`. It recognizes numeric literals and `HttpStatus.fromLiteral("NotFound")`, for example. Domain code handles typed errors; the named HTTP edge translates them into transport responses. Process exit codes remain ordinary domain values.
347
364
 
@@ -424,7 +441,7 @@ For adoption, run `quality baseline write --rule code/unused --file src/legacy.t
424
441
  - **Hidden casts:** `suppressions/no-double-cast` also checks code outside `adapters/` and `test-support/` for concrete annotations on `JSON.parse` results, unchecked `Reflect.get` bindings, SQL tagged-template row generics, identity overloads whose implementation returns `unknown`, context retagging through `Context.makeUnsafe(...mapUnsafe)`, and writes to readonly properties or native Scope state. Keep untrusted values as `unknown` and decode them with `Schema.decodeUnknownEffect`; decode SQL rows with `SqlSchema` rather than declaring their shape. Give an identity implementation its declared return type, preserve the Context service type, and use native constructors or lifecycle operations instead of changing native fields. Constructor initialization, mutable object writes and extensions that do not replace readonly fields are accepted. These checks read syntax and TypeScript declarations; they do not prove that arbitrary helper functions validate their input.
425
442
  - **Suppressions:** the `suppressions/*` rules reject inline lint and compiler directives, casts through `unknown`, `any` or `never`, Biome settings that weaken a check, recommended Biome rules the preset leaves below `error`, and `ignoreDeprecations`. None of them takes exceptions. A type test (`*.typecheck.test.ts`) may use `@ts-expect-error`; a test that must pass a rejected value at run time calls the API through `Reflect.apply`.
426
443
  - **Imports:** cycles, unresolvable imports, workspace imports missing from the manifest or an entry point, relative imports that leave their folder (except a module’s client or server `registration.ts` or `registration.tsx` importing its own `<module>/admin/` subtree), production imports of test code, runtime folders and fences, as described above.
427
- - **Names and files:** the Biome preset's naming rules and plugins, and the `files/*` rules, which name a file after its main export with its folders as the prefix. `files/named-after-export` accepts programmatic bundler entries, including main and preload adapters, and tool-discovered config names such as `.dependency-cruiser.ts`. Tool config recognition follows the shared Biome default-export policy, so these configs may also use their required default export. Ordinary modules retain their naming and default-export checks. `files/named-after-export` names a constants module in camelCase for what its exported data shares: `maxItems.ts` exports `MAX_ITEMS`, `timeouts.ts` holds `INSPECT_TIMEOUT_MILLIS` and `REMOTE_TIMEOUT_MILLIS`, `limits.ts` holds constants carrying max, min or limit, and `defaults.ts` holds constants carrying default. Each constant must carry every word of the module name, singular or plural; split unrelated constants or put heterogeneous copy in a single exported record named after itself. Only literal data, arrays and objects of it, and CONSTANT_CASE references count, with types derived from those constants allowed. Schemas, Layers, services, Effects, functions, classes and computed values stay runtime exports. One remaining runtime export names the file even beside constants; two or more use a camelCase topic file. Private constants do not name a file. The same model applies in `src/test-support`. It keeps the export’s full name while the file name omits words already supplied by any folder above it. In `spaces/client/`, a component exporting `CreateSpace` lives in `Create.tsx`: `spaces/` supplies “Space” even across the intervening `client/` folder. Keep the export named `CreateSpace`; `CreateSpace.tsx` would repeat a folder name. Inside a module’s `client/admin/` or `server/admin/` subtree, file names may repeat words from above `admin/`: `src/modules/inbox/client/admin/inboxRoutes.ts` may export `inboxRoutes`. Names must still match their exports and omit words repeated by folders within the admin subtree. No naming rule renames anything; the author picks the name. A name an outside system owns, such as a query parameter or an environment variable, is written as a quoted key, which the naming rules skip. A `Schema.Struct` field stays camelCase even when quoted and maps to the outside name with `Schema.encodeKeys`. Biome's naming messages print only a pattern: spell acronyms as words (`HttpClient`, `userId`, `parseUrl`) rather than turning off `strictCase` as its hint suggests, give a type no `I` prefix, and name a type parameter `T`, `T` plus a PascalCase name (`TItem`), or Effect's `A`, `E` and `R`. No rule checks these, so review does: a boolean reads as a question (`isOpen`, `canRetry`) unless the DOM or React names it (`open`, `disabled`); a schema shares its name with its type (`type Item = typeof Item.Type`); an unused parameter is removed rather than renamed with the `_` prefix TypeScript accepts. The naming rules take repository facts: `toolOwned` lists `.gitignore` patterns whose names a tool fixes, and a configured list extends the rule's defaults, so list only repository-specific additions; `content` lists snake_case content folders and files; `tests/follow` and `tests/colocated` take `suites` for test folders with their own layout, such as a Playwright suite.
444
+ - **Names and files:** the Biome preset's naming rules and plugins, and the `files/*` rules, which name a file after its main export with its folders as the prefix. Root authority documents such as `DESIGN.md`, `ARCHITECTURE.md` and `GLOSSARY.md` are accepted beside `AGENTS.md`. `files/named-after-export` accepts programmatic bundler entries, including main and preload adapters, and tool-discovered config names such as `.dependency-cruiser.ts`. Tool config recognition follows the shared Biome default-export policy, so these configs may also use their required default export. Ordinary modules retain their naming and default-export checks. `files/named-after-export` names a constants module in camelCase for what its exported data shares: `maxItems.ts` exports `MAX_ITEMS`, `timeouts.ts` holds `INSPECT_TIMEOUT_MILLIS` and `REMOTE_TIMEOUT_MILLIS`, `limits.ts` holds constants carrying max, min or limit, and `defaults.ts` holds constants carrying default. Each constant must carry every word of the module name, singular or plural; split unrelated constants or put heterogeneous copy in a single exported record named after itself. Only literal data, arrays and objects of it, and CONSTANT_CASE references count, with types derived from those constants allowed. Schemas, Layers, services, Effects, functions, classes and computed values stay runtime exports. One remaining runtime export names the file even beside constants; two or more use a camelCase topic file. Private constants do not name a file. The same model applies in `src/test-support`. It keeps the export’s full name while the file name omits words already supplied by any folder above it. In `spaces/client/`, a component exporting `CreateSpace` lives in `Create.tsx`: `spaces/` supplies “Space” even across the intervening `client/` folder. Keep the export named `CreateSpace`; `CreateSpace.tsx` would repeat a folder name. Inside a module’s `client/admin/` or `server/admin/` subtree, file names may repeat words from above `admin/`: `src/modules/inbox/client/admin/inboxRoutes.ts` may export `inboxRoutes`. Names must still match their exports and omit words repeated by folders within the admin subtree. No naming rule renames anything; the author picks the name. A name an outside system owns, such as a query parameter or an environment variable, is written as a quoted key, which the naming rules skip. A `Schema.Struct` field stays camelCase even when quoted and maps to the outside name with `Schema.encodeKeys`. Biome's naming messages print only a pattern: spell acronyms as words (`HttpClient`, `userId`, `parseUrl`) rather than turning off `strictCase` as its hint suggests, give a type no `I` prefix, and name a type parameter `T`, `T` plus a PascalCase name (`TItem`), or Effect's `A`, `E` and `R`. No rule checks these, so review does: a boolean reads as a question (`isOpen`, `canRetry`) unless the DOM or React names it (`open`, `disabled`); a schema shares its name with its type (`type Item = typeof Item.Type`); an unused parameter is removed rather than renamed with the `_` prefix TypeScript accepts. The naming rules take repository facts: `options.toolOwned` lists `.gitignore` patterns whose names a tool fixes, and a configured list extends the rule's defaults, so list only repository-specific additions; `content` lists snake_case content folders and files; `tests/follow` and `tests/colocated` take `suites` for test folders with their own layout, such as a Playwright suite.
428
445
  - **Change keys:** `boundaries/imported-change-keys` reports literal collection and bucket names in Reactivity invalidations and mutations, SQL `invalidateOnCommit`, and the `changes` key encoders. Import the owning declaration and use its name, list, item or bucket key. Literal record IDs and bucket values are accepted, as are names at their collection declaration.
429
446
  - **SQL transactions:** `effect/sql-transact` reports native `sql.withTransaction` calls around repository writes, `transact` or `invalidateOnCommit`. Begin the outer transaction with `transact(effect, { onSqlError })` so changed keys follow its commit. The rule resolves native SQL and repository declarations and follows direct calls, pipes, local aliases and source helpers. Native read-only and raw SQL transactions and unrelated transaction methods remain supported.
430
447
  - **React:** `react/jsx-conditionals` reports `&&` and ternaries in the JSX children a component returns, including nested decisions and returned `.map` items. Decisions in a `const` above the return, JSX built inside library callbacks and conditional attributes are accepted. A ternary with two plain string or number literal branches, such as `{on ? "On" : "Off"}`, is accepted; branches that select JSX, components or computed values still need a decision before the JSX. This rule owns the check, so the shared Biome preset leaves `noLeakedRender` off.
@@ -14,6 +14,7 @@ export declare const PackageManifest: Schema.Struct<{
14
14
  readonly private: Schema.optionalKey<Schema.Boolean>;
15
15
  readonly quality: Schema.optionalKey<Schema.Struct<{
16
16
  readonly runtime: Schema.optionalKey<Schema.Unknown>;
17
+ readonly toolOwned: Schema.optionalKey<Schema.Unknown>;
17
18
  }>>;
18
19
  readonly repository: Schema.optionalKey<Schema.Unknown>;
19
20
  readonly scripts: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
@@ -1 +1 @@
1
- {"version":3,"file":"PackageManifest.d.ts","sourceRoot":"","sources":["../src/PackageManifest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAIhC,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;EAiB1B,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,OAAO,eAAe,CAAC,IAAI,CAAC"}
1
+ {"version":3,"file":"PackageManifest.d.ts","sourceRoot":"","sources":["../src/PackageManifest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAIhC,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;EAiB1B,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,OAAO,eAAe,CAAC,IAAI,CAAC"}
@@ -13,7 +13,7 @@ export const PackageManifest = Schema.Struct({
13
13
  packageManager: Schema.optionalKey(Schema.String),
14
14
  peerDependencies: Schema.optionalKey(Dependencies),
15
15
  private: Schema.optionalKey(Schema.Boolean),
16
- quality: Schema.optionalKey(Schema.Struct({ runtime: Schema.optionalKey(Schema.Unknown) })),
16
+ quality: Schema.optionalKey(Schema.Struct({ runtime: Schema.optionalKey(Schema.Unknown), toolOwned: Schema.optionalKey(Schema.Unknown) })),
17
17
  repository: Schema.optionalKey(Schema.Unknown),
18
18
  scripts: Schema.optionalKey(Dependencies),
19
19
  workspaces: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Struct({ packages: Schema.Array(Schema.String) })])),
@@ -1 +1 @@
1
- {"version":3,"file":"PackageManifest.js","sourceRoot":"","sources":["../src/PackageManifest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;AAEjE,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,CAAC;IAC5C,GAAG,EAAE,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC;IACpE,YAAY,EAAE,MAAM,CAAC,WAAW,CAAC,YAAY,CAAC;IAC9C,eAAe,EAAE,MAAM,CAAC,WAAW,CAAC,YAAY,CAAC;IACjD,OAAO,EAAE,MAAM,CAAC,WAAW,CAAC,YAAY,CAAC;IACzC,OAAO,EAAE,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC;IAC3C,OAAO,EAAE,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;IACzE,IAAI,EAAE,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,MAAM,CAAC;IACvC,IAAI,EAAE,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,MAAM,CAAC;IACvC,oBAAoB,EAAE,MAAM,CAAC,WAAW,CAAC,YAAY,CAAC;IACtD,cAAc,EAAE,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,MAAM,CAA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
2
+ export declare function browserDiagnostic(diagnostic: Diagnostic, file: string): Diagnostic | undefined;
3
+ //# sourceMappingURL=browserDiagnostic.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"browserDiagnostic.d.ts","sourceRoot":"","sources":["../../../src/adapters/biome/browserDiagnostic.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AA+EnD,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,CAkB9F"}
@@ -0,0 +1,93 @@
1
+ import bcd from "@mdn/browser-compat-data" with { type: "json" };
2
+ import { browserTargets } from "./browserTargets.js";
3
+ const BROWSERS = {
4
+ "and_chr": "chrome_android",
5
+ "and_ff": "firefox_android",
6
+ chrome: "chrome",
7
+ edge: "edge",
8
+ firefox: "firefox",
9
+ ie: "ie",
10
+ "ios_saf": "safari_ios",
11
+ "op_mob": "opera_android",
12
+ opera: "opera",
13
+ safari: "safari",
14
+ samsung: "samsunginternet_android",
15
+ };
16
+ function version(value) {
17
+ return Number.parseFloat(value.replace(/^≤/u, "").split("-")[0] ?? value);
18
+ }
19
+ function supports(statement, target) {
20
+ return (typeof statement.version_added === "string"
21
+ && version(target) >= version(statement.version_added)
22
+ && !(typeof statement.version_removed === "string" && version(target) >= version(statement.version_removed))
23
+ && !statement.flags
24
+ && !statement.prefix
25
+ && !statement.alternative_name
26
+ && !statement.partial_implementation);
27
+ }
28
+ function cssFunction(name, entries) {
29
+ if (entries === undefined) {
30
+ return undefined;
31
+ }
32
+ const direct = entries[name];
33
+ if (direct?.__compat?.description?.includes(`${name}()`)) {
34
+ return direct;
35
+ }
36
+ for (const key of Object.keys(entries)) {
37
+ if (key !== "__compat") {
38
+ const found = cssFunction(name, entries[key]);
39
+ if (found !== undefined) {
40
+ return found;
41
+ }
42
+ }
43
+ }
44
+ return undefined;
45
+ }
46
+ function feature(message) {
47
+ const match = /^CSS (?<kind>pseudo-element|pseudo-class|property value|property|at-rule|function|media condition) (?<name>.+) isn't part/u.exec(message);
48
+ if (match === null) {
49
+ return undefined;
50
+ }
51
+ const kind = match.groups?.kind;
52
+ const name = (match.groups?.name ?? "").toLowerCase();
53
+ let entry;
54
+ if (kind === "pseudo-element" || kind === "pseudo-class") {
55
+ entry = bcd.css.selectors?.[name];
56
+ }
57
+ else if (kind === "property value") {
58
+ const [property = "", value = ""] = name.split(": ");
59
+ entry = bcd.css.properties?.[property]?.[value];
60
+ }
61
+ else if (kind === "property") {
62
+ entry = bcd.css.properties?.[name];
63
+ }
64
+ else if (kind === "at-rule") {
65
+ entry = bcd.css["at-rules"]?.[name.replace(/^@/u, "")];
66
+ }
67
+ else if (kind === "function") {
68
+ entry = cssFunction(name.replace(/\(\)$/u, ""), bcd.css.types);
69
+ }
70
+ else if (kind === "media condition") {
71
+ entry = bcd.css["at-rules"]?.media?.[name];
72
+ }
73
+ return entry?.__compat;
74
+ }
75
+ export function browserDiagnostic(diagnostic, file) {
76
+ const targets = browserTargets(file);
77
+ const compat = feature(diagnostic.message);
78
+ if (targets === undefined) {
79
+ return diagnostic;
80
+ }
81
+ const supported = targets.length > 0
82
+ && compat !== undefined
83
+ && targets.every((target) => {
84
+ const [name = "", release = ""] = target.split(" ");
85
+ const browser = BROWSERS[name];
86
+ const support = browser === undefined ? undefined : compat.support[browser];
87
+ return (Array.isArray(support) ? support : [support]).some((statement) => statement !== undefined && supports(statement, release));
88
+ });
89
+ return supported
90
+ ? undefined
91
+ : { ...diagnostic, message: diagnostic.message.replace("the chosen Baseline", `the declared browser targets (${targets.join(", ")})`) };
92
+ }
93
+ //# sourceMappingURL=browserDiagnostic.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"browserDiagnostic.js","sourceRoot":"","sources":["../../../src/adapters/biome/browserDiagnostic.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,0BAA0B,CAAC,OAAO,IAAI,EAAE,MAAM,E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QAAQ,CAAC,IAAI,CAAC,CAAC;YAC/B,MAAM,OAAO,GAAG,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;YAC5E,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,KAAK,SAAS,IAAI,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC;QACpI,CAAC,CAAC,CAAC;IACJ,OAAO,SAAS;QACf,CAAC,CAAC,SAAS;QACX,CAAC,CAAC,EAAE,GAAG,UAAU,EAAE,OAAO,EAAE,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,qBAAqB,EAAE,iCAAiC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;AAC1I,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { Effect } from "effect";
2
+ import { SetupFailure } from "#failure.ts";
3
+ export declare function browserTargets(file: string): readonly string[] | undefined;
4
+ export declare const browserOverrides: (root: string) => Effect.Effect<{
5
+ includes: string[];
6
+ linter: {
7
+ rules: {
8
+ suspicious: {
9
+ useBaseline: {
10
+ level: string;
11
+ options: {
12
+ available: number;
13
+ };
14
+ };
15
+ };
16
+ };
17
+ };
18
+ }[], import("../../inventory/filesystem.ts").FilesystemFailure | SetupFailure, import("../../rule.ts").RuleServices>;
19
+ //# sourceMappingURL=browserTargets.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"browserTargets.d.ts","sourceRoot":"","sources":["../../../src/adapters/biome/browserTargets.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAI3C,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,MAAM,EAAE,GAAG,SAAS,CAG1E;AAED,eAAO,MAAM,gBAAgB;;;QAWd,KAAK;YAAI,UAAU;gBAAI,WAAW;oBAAI,KAAK;oBAAW,OAAO;wBAAI,SAAS;;;;;;oHAGvF,CAAC"}
@@ -0,0 +1,26 @@
1
+ import { dirname, relative } from "node:path";
2
+ import browserslist from "browserslist";
3
+ import { Effect } from "effect";
4
+ import { SetupFailure } from "#failure.ts";
5
+ import { posix } from "#inventory/ignoreScope.ts";
6
+ import { walk } from "#inventory/walk.ts";
7
+ export function browserTargets(file) {
8
+ const queries = browserslist.loadConfig({ env: "production", path: dirname(file) });
9
+ return queries === undefined ? undefined : browserslist(queries);
10
+ }
11
+ export const browserOverrides = Effect.fn("Biome.browserOverrides")(function* (root) {
12
+ const files = (yield* walk(root)).filter((file) => file.endsWith(".css"));
13
+ const declared = yield* Effect.try({
14
+ catch: (cause) => new SetupFailure({ cause, message: `Cannot resolve declared browser targets: ${String(cause)}` }),
15
+ try: () => files.filter((file) => browserTargets(file) !== undefined).map((file) => posix(relative(root, file))),
16
+ });
17
+ return declared.length === 0
18
+ ? []
19
+ : [
20
+ {
21
+ includes: declared,
22
+ linter: { rules: { suspicious: { useBaseline: { level: "error", options: { available: 0 } } } } },
23
+ },
24
+ ];
25
+ });
26
+ //# sourceMappingURL=browserTargets.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"browserTargets.js","sourceRoot":"","sources":["../../../src/adapters/biome/browserTargets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,YAAY,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAClD,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AAK,EAAE,EAAE,UAAU,EAAE,EAAE,WAAW,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE;aACjG;SACD,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -5,11 +5,11 @@ import { Effect, Stream } from "effect";
5
5
  import { ChildProcess, ChildProcessSpawner } from "effect/process";
6
6
  import { withExceptionConfig } from "#adapters/biome/withExceptionConfig.ts";
7
7
  import { posix } from "#inventory/ignoreScope.ts";
8
- import { shadcnFiles } from "#inventory/shadcnFiles.ts";
9
8
  import { skillCopies } from "#inventory/skillCopies.ts";
9
+ import { toolOwnedFiles } from "#inventory/toolOwnedFiles.ts";
10
10
  const BIN = createRequire(import.meta.url).resolve("@biomejs/biome/bin/biome");
11
11
  export const runBiome = Effect.fn("Biome.runBiome")(function* (root, args, exceptions = [], nonEffectFolders = []) {
12
- const files = yield* shadcnFiles(root);
12
+ const files = yield* toolOwnedFiles(root);
13
13
  const copies = (yield* skillCopies(root)).paths.map((file) => posix(relative(root, file)));
14
14
  const toolOwned = [
15
15
  {
@@ -1 +1 @@
1
- {"version":3,"file":"run.js","sourceRoot":"","sources":["../../../src/adapters/biome/run.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,OAAO,MAAM,cAAc,CAAC;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAE7E,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,WAA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EAAE,CAAC,GAAG,EAAE,GAAG,IAAI,EAAE,GAAG,UAAU,EAAE,cAAc,CAAC,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,CAClH,CAAC;QACF,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,GAAG,KAAK,CAAC,CAAC,MAAM,CAAC,GAAG,CAC/C,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,EACpH,EAAE,WAAW,EAAE,WAAW,EAAE,CAC5B,CAAC;QACF,OAAO,EAAE,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;IAC/C,CAAC,CAAC,EACH,gBAAgB,CAChB,CACD,CAAC;AACH,CAAC,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import ts from "typescript";
2
+ import type { Syntax } from "#biome/syntax.ts";
3
+ export declare function vitestEntry(expression: ts.Expression, { checker }: Syntax): boolean;
4
+ //# sourceMappingURL=vitestEntry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vitestEntry.d.ts","sourceRoot":"","sources":["../../../src/adapters/biome/vitestEntry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAc/C,wBAAgB,WAAW,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,EAAE,EAAE,OAAO,EAAE,EAAE,MAAM,GAAG,OAAO,CAqBnF"}
@@ -0,0 +1,27 @@
1
+ import ts from "typescript";
2
+ const ENTRIES = new Set(["it", "test", "beforeAll", "beforeEach", "afterAll", "afterEach"]);
3
+ const MODIFIERS = new Set(["only", "skip", "skipIf", "runIf", "concurrent", "sequential", "fails", "each"]);
4
+ function moduleOf(node) {
5
+ for (let parent = node; parent !== undefined; parent = parent.parent) {
6
+ if (ts.isImportDeclaration(parent) && ts.isStringLiteral(parent.moduleSpecifier)) {
7
+ return parent.moduleSpecifier.text;
8
+ }
9
+ }
10
+ return undefined;
11
+ }
12
+ export function vitestEntry(expression, { checker }) {
13
+ if (ts.isCallExpression(expression)) {
14
+ return vitestEntry(expression.expression, { checker, source: expression.getSourceFile() });
15
+ }
16
+ if (ts.isPropertyAccessExpression(expression)) {
17
+ if (MODIFIERS.has(expression.name.text)) {
18
+ return vitestEntry(expression.expression, { checker, source: expression.getSourceFile() });
19
+ }
20
+ const namespace = checker.getSymbolAtLocation(expression.expression);
21
+ return (ENTRIES.has(expression.name.text)
22
+ && (namespace?.declarations ?? []).some((declaration) => ts.isNamespaceImport(declaration) && moduleOf(declaration) === "vitest"));
23
+ }
24
+ return (ts.isIdentifier(expression)
25
+ && (checker.getSymbolAtLocation(expression)?.declarations ?? []).some((declaration) => ts.isImportSpecifier(declaration) && ENTRIES.has((declaration.propertyName ?? declaration.name).text) && moduleOf(declaration) === "vitest"));
26
+ }
27
+ //# sourceMappingURL=vitestEntry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vitestEntry.js","sourceRoot":"","sources":["../../../src/adapters/biome/vitestEntry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,YAAY,CAAC;AAG5B,MAAM,OAAO,GAAG,IAAI,GAAG,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,YAAY,EAAE,UAAU,EAAE,WAAW,CAAC,CAAC,CAAC;AAC5F,MAAM,SAAS,GAAG,IAAI,GAAG,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC;AAE5G,SAAS,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,CACjI,CAAC;IACH,CAAC;IACD,OAAO,CACN,EAAE,CAAC,YAAY,CAAC,UAAU,CAAC;WACxB,CAAC,OAAO,CAAC,mBAAmB,CAAC,UAAU,CAAC,EAAE,YAAY,IAAI,EAAE,CAAC,CAAC,IAAI,CACpE,CAAC,WAAW,EAAE,EAAE,CACf,EAAE,CAAC,iBAAiB,CAAC,WAAW,CAAC,IAAI,OAAO,CAAC,GAAG,CAAC,CAAC,WAAW,CAAC,YAAY,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,QAAQ,CAAC,WAAW,CAAC,KAAK,QAAQ,CAC5I,CACD,CAAC;AACH,CAAC"}
@@ -4,5 +4,5 @@ export declare const withExceptionConfig: <TValue, TError, TRequirements>(root:
4
4
  readonly reason: string;
5
5
  readonly rules: readonly [string, ...string[]];
6
6
  readonly subject?: string;
7
- }[], run: (args: readonly string[]) => Effect.Effect<TValue, TError, TRequirements>, nonEffectFolders?: readonly string[] | undefined) => Effect.Effect<TValue, TError | import("#inventory/filesystem.ts").FilesystemFailure | import("effect/PlatformError").PlatformError | Schema.SchemaError, TRequirements | import("effect/FileSystem").FileSystem | import("effect/Scope").Scope>;
7
+ }[], run: (args: readonly string[]) => Effect.Effect<TValue, TError, TRequirements>, nonEffectFolders?: readonly string[] | undefined) => Effect.Effect<TValue, TError | import("#inventory/filesystem.ts").FilesystemFailure | import("effect/PlatformError").PlatformError | Schema.SchemaError | import("../../failure.ts").SetupFailure, TRequirements | import("effect/Scope").Scope | import("../../rule.ts").RuleServices>;
8
8
  //# sourceMappingURL=withExceptionConfig.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"withExceptionConfig.d.ts","sourceRoot":"","sources":["../../../src/adapters/biome/withExceptionConfig.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAMxC,eAAO,MAAM,mBAAmB,GAAqD,MAAM,EAAE,MAAM,EAAE,aAAa;;;;;iBAGrG,SAAS,MAAM,EAAE,KAAK,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,aAAa,CAAC,sSAmC7E,CAAC"}
1
+ {"version":3,"file":"withExceptionConfig.d.ts","sourceRoot":"","sources":["../../../src/adapters/biome/withExceptionConfig.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAOxC,eAAO,MAAM,mBAAmB,GAAqD,MAAM,EAAE,MAAM,EAAE,aAAa;;;;;iBAGrG,SAAS,MAAM,EAAE,KAAK,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,aAAa,CAAC,8UAoC7E,CAAC"}
@@ -2,10 +2,12 @@ import { join } from "node:path";
2
2
  import { Effect, Schema } from "effect";
3
3
  import { exceptionConfig } from "#biome/exceptionConfig.ts";
4
4
  import { readOptionalText } from "#inventory/filesystem.ts";
5
+ import { browserOverrides } from "./browserTargets.js";
5
6
  import { parseConfig, relocateConfig } from "./relocateConfig.js";
6
7
  export const withExceptionConfig = Effect.fn("Biome.withExceptionConfig")(function* (root, declarations, run, nonEffectFolders = []) {
7
8
  const { includes, overrides } = exceptionConfig(declarations);
8
- if (includes.length === 0 && overrides.length === 0 && nonEffectFolders.length === 0) {
9
+ const targets = yield* browserOverrides(root);
10
+ if (includes.length === 0 && overrides.length === 0 && nonEffectFolders.length === 0 && targets.length === 0) {
9
11
  return yield* run([]);
10
12
  }
11
13
  const { config, text } = yield* Effect.gen(function* () {
@@ -30,7 +32,7 @@ export const withExceptionConfig = Effect.fn("Biome.withExceptionConfig")(functi
30
32
  const generated = {
31
33
  ...own,
32
34
  files: { ...files, includes: [...previousIncludes, ...includes.filter((pattern) => pattern !== "**"), "!.worktrees", "!.quality-biome-*"] },
33
- overrides: [...previousOverrides, ...overrides],
35
+ overrides: [...previousOverrides, ...overrides, ...targets],
34
36
  };
35
37
  const path = yield* relocateConfig(root, join(root, config), generated, nonEffectFolders);
36
38
  return yield* run([`--config-path=${path}`]);
@@ -1 +1 @@
1
- {"version":3,"file":"withExceptionConfig.js","sourceRoot":"","sources":["../../../src/adapters/biome/withExceptionConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAE5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAElE,MAAM,CAAC,MAAM,mBAAmB,GAAG,MAAM,CAAC,EAAE,CAAC,2BAA2B,CAAC,CAAC,QAAQ,CAAC,EAClF,IAAY,EACZ,YAA6C,EAC7C,GAA8E,EAC9E,gBAAgB,GAAsB,EAAE;IAExC,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,eAAe,CAAC,YAAY,CAAC,CAAC;IAC9D,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC,IAAI,gBAAgB,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACtF,OAAO,KAAK,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IACvB,CAAC;IACD,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,KAAK,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;QACnD,KAAK,MAAM,SAAS,IAAI,CAAC,YAAY,EAAE,aAAa,CAAC,EAAE,CAAC;YACvD,MAAM,OAAO,GAAG,KAAK,CAAC,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC;YAC/D,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;gBAC3B,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,IAA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GAAG,KAAK,CAAC,CAAC,cAAc,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,EAAE,SAAS,EAAE,gBAAgB,CAAC,CAAC;IAC1F,OAAO,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,iBAAiB,IAAI,EAAE,CAAC,CAAC,CAAC;AAC9C,CAAC,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"configuration.d.ts","sourceRoot":"","sources":["../../../src/adapters/knip/configuration.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAsB3C,wBAAsB,iBAAiB,CAAC,MAAM,EAAE,UAAU,EAAE,SAAS,GAAE,SAAS,MAAM,EAAO,EAAE,YAAY,GAAE,WAAW,CAAC,MAAM,CAAa;;;;;;;;;;;;;;;;;;;;;;;;;yBAkC9H,MAAM;;;;GAqBnB"}
1
+ {"version":3,"file":"configuration.d.ts","sourceRoot":"","sources":["../../../src/adapters/knip/configuration.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAsB3C,wBAAsB,iBAAiB,CAAC,MAAM,EAAE,UAAU,EAAE,SAAS,GAAE,SAAS,MAAM,EAAO,EAAE,YAAY,GAAE,WAAW,CAAC,MAAM,CAAa;;;;;;;;;;;;;;;;;;;;;;;;;yBAgC9H,MAAM;;;;GAqBnB"}
@@ -3,7 +3,6 @@ import { readPackageManifest } from "#adapters/manifestInventory.ts";
3
3
  import { scriptPaths } from "#adapters/scriptPaths.ts";
4
4
  import { exportedModule, exportTargets } from "#imports/packageExports.ts";
5
5
  import { packageOf, workspacePackages } from "#imports/workspace.ts";
6
- import { SHADCN_FILE_GLOB } from "#inventory/shadcnFiles.ts";
7
6
  import { KNIP_ISSUES } from "./findings.js";
8
7
  const ENTRIES = ["**/*.{test,spec,stories,story}.{ts,tsx,mts,cts,js,jsx,mjs,cjs}", "src/test-support/**", "*.config.{ts,mts,cts,js,mjs,cjs}"];
9
8
  function importPaths(imports) {
@@ -39,9 +38,7 @@ export async function knipConfiguration(inputs, toolOwned = [], programmatic = n
39
38
  const publicFiles = sources.filter((path) => exportedModule(manifest.exports, path));
40
39
  // Migration runners load these files from their directory, so no import reaches them.
41
40
  const migrations = sources.filter((path) => /(?:^|\/)server\/migrations\//u.test(path));
42
- const ui = toolOwned
43
- .filter((folder) => (packageOf(packages, `${folder}/component.ts`)?.directory ?? ".") === directory)
44
- .map((folder) => `${posix.relative(directory, folder)}/**/${SHADCN_FILE_GLOB}`);
41
+ const ui = toolOwned.filter((file) => (packageOf(packages, file)?.directory ?? ".") === directory).map((file) => posix.relative(directory, file));
45
42
  const styles = inputs.files
46
43
  .filter((path) => path.endsWith(".css") && (packageOf(packages, path)?.directory ?? ".") === directory)
47
44
  .map((path) => posix.relative(directory, path));
@@ -1 +1 @@
1
- {"version":3,"file":"configuration.js","sourceRoot":"","sources":["../../../src/adapters/knip/configuration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3E,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAE7D,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,MAAM,OAAO,GAAG,CAAC,gEAAgE,EAAE,qBAAqB,EAAE,kCAAkC,CAAC,CAAC;AAE9I,SAAS,WAAW,CAAC,OAA0C;IAC9D,OAAO,MAAM,CAAC,WAAW,CACxB,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,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,EAAE,MAAM,CAAC,WAAW,CAAC,UAAU,CAAC;KAC1C,CAAC;AACH,CAAC"}
@@ -6,7 +6,7 @@ import { Effect, FileSystem, Stream } from "effect";
6
6
  import { ChildProcess, ChildProcessSpawner } from "effect/process";
7
7
  import { readPackageManifest } from "#adapters/manifestInventory.ts";
8
8
  import { programmaticEntries } from "#inventory/programmaticEntries.ts";
9
- import { shadcnFolders } from "#inventory/shadcnFolders.ts";
9
+ import { toolOwnedFiles } from "#inventory/toolOwnedFiles.ts";
10
10
  import { knipConfiguration } from "./configuration.js";
11
11
  import { entryPointFindings } from "./entryPointFindings.js";
12
12
  import { KNIP_ISSUES } from "./findings.js";
@@ -24,9 +24,9 @@ export const runKnip = Effect.fn("Knip.runKnip")(function* (inputs) {
24
24
  if ((yield* Effect.promise(() => readPackageManifest(inputs.readText, "package.json"))) === undefined) {
25
25
  return [];
26
26
  }
27
- const folders = yield* shadcnFolders(inputs.root);
27
+ const files = yield* toolOwnedFiles(inputs.root);
28
28
  const entries = yield* programmaticEntries(inputs);
29
- const configuration = yield* Effect.promise(() => knipConfiguration(inputs, folders, entries));
29
+ const configuration = yield* Effect.promise(() => knipConfiguration(inputs, files, entries));
30
30
  const checked = new Set([...inputs.files, ...Object.keys(configuration.workspaces).map((directory) => posix.join(directory, "package.json"))]);
31
31
  const findings = yield* Effect.scoped(Effect.gen(function* () {
32
32
  const fs = yield* FileSystem.FileSystem;
@@ -1 +1 @@
1
- {"version":3,"file":"run.js","sourceRoot":"","sources":["../../../src/adapters/knip/run.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAC3D,OAAO,OAAO,MAAM,cAAc,CAAC;AACnC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAA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H,EAAE,WAAW,EAAE,WAAW,EAAE,CAC5B,CAAC;QACF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;QACxD,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;IAC9D,CAAC,CAAC,CACF,CAAC;IACF,OAAO,KAAK,CAAC,CAAC,kBAAkB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;AACpD,CAAC,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"recognizeDiagnostics.d.ts","sourceRoot":"","sources":["../../src/biome/recognizeDiagnostics.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAkD9C,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,SAAS,UAAU,EAAE,GAAG,SAAS,UAAU,EAAE,CAY5G"}
1
+ {"version":3,"file":"recognizeDiagnostics.d.ts","sourceRoot":"","sources":["../../src/biome/recognizeDiagnostics.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAmD9C,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,SAAS,UAAU,EAAE,GAAG,SAAS,UAAU,EAAE,CAgB5G"}