@shivaedev/quality 0.43.0 → 0.44.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.
Files changed (151) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/README.md +55 -39
  3. package/biome/declarations.json +1 -1
  4. package/biome/preset.json +60 -60
  5. package/dist/adapters/knip/configuration.d.ts +29 -0
  6. package/dist/adapters/knip/configuration.d.ts.map +1 -0
  7. package/dist/adapters/knip/configuration.js +59 -0
  8. package/dist/adapters/knip/configuration.js.map +1 -0
  9. package/dist/adapters/knip/entryPointFindings.d.ts +3 -0
  10. package/dist/adapters/knip/entryPointFindings.d.ts.map +1 -0
  11. package/dist/adapters/knip/entryPointFindings.js +49 -0
  12. package/dist/adapters/knip/entryPointFindings.js.map +1 -0
  13. package/dist/adapters/knip/findings.d.ts +4 -0
  14. package/dist/adapters/knip/findings.d.ts.map +1 -0
  15. package/dist/adapters/knip/findings.js +40 -0
  16. package/dist/adapters/knip/findings.js.map +1 -0
  17. package/dist/adapters/knip/run.d.ts +3 -0
  18. package/dist/adapters/knip/run.d.ts.map +1 -0
  19. package/dist/adapters/knip/run.js +46 -0
  20. package/dist/adapters/knip/run.js.map +1 -0
  21. package/dist/adapters/knip/sourceConfig.d.ts +4 -0
  22. package/dist/adapters/knip/sourceConfig.d.ts.map +1 -0
  23. package/dist/adapters/knip/sourceConfig.js +15 -0
  24. package/dist/adapters/knip/sourceConfig.js.map +1 -0
  25. package/dist/biome/recognizeDiagnostics.js +2 -2
  26. package/dist/biome/recognizeDiagnostics.js.map +1 -1
  27. package/dist/docs/documentedImports.d.ts +12 -0
  28. package/dist/docs/documentedImports.d.ts.map +1 -0
  29. package/dist/docs/documentedImports.js +80 -0
  30. package/dist/docs/documentedImports.js.map +1 -0
  31. package/dist/docs/documentedModule.d.ts +11 -0
  32. package/dist/docs/documentedModule.d.ts.map +1 -0
  33. package/dist/docs/documentedModule.js +32 -0
  34. package/dist/docs/documentedModule.js.map +1 -0
  35. package/dist/docs/exportsName.d.ts +2 -0
  36. package/dist/docs/exportsName.d.ts.map +1 -0
  37. package/dist/docs/exportsName.js +25 -0
  38. package/dist/docs/exportsName.js.map +1 -0
  39. package/dist/docs/headingAnchors.d.ts +4 -0
  40. package/dist/docs/headingAnchors.d.ts.map +1 -0
  41. package/dist/docs/headingAnchors.js +43 -0
  42. package/dist/docs/headingAnchors.js.map +1 -0
  43. package/dist/docs/importFindings.d.ts +12 -0
  44. package/dist/docs/importFindings.d.ts.map +1 -0
  45. package/dist/docs/importFindings.js +36 -0
  46. package/dist/docs/importFindings.js.map +1 -0
  47. package/dist/docs/isDocument.d.ts +2 -0
  48. package/dist/docs/isDocument.d.ts.map +1 -0
  49. package/dist/docs/isDocument.js +6 -0
  50. package/dist/docs/isDocument.js.map +1 -0
  51. package/dist/docs/linkFindings.d.ts +12 -0
  52. package/dist/docs/linkFindings.d.ts.map +1 -0
  53. package/dist/docs/linkFindings.js +59 -0
  54. package/dist/docs/linkFindings.js.map +1 -0
  55. package/dist/docs/markdownLines.d.ts +11 -0
  56. package/dist/docs/markdownLines.d.ts.map +1 -0
  57. package/dist/docs/markdownLines.js +38 -0
  58. package/dist/docs/markdownLines.js.map +1 -0
  59. package/dist/docs/markdownLinks.d.ts +7 -0
  60. package/dist/docs/markdownLinks.d.ts.map +1 -0
  61. package/dist/docs/markdownLinks.js +23 -0
  62. package/dist/docs/markdownLinks.js.map +1 -0
  63. package/dist/docs/repositoryLink.d.ts +11 -0
  64. package/dist/docs/repositoryLink.d.ts.map +1 -0
  65. package/dist/docs/repositoryLink.js +28 -0
  66. package/dist/docs/repositoryLink.js.map +1 -0
  67. package/dist/imports/fences/compilePolicy.d.ts.map +1 -1
  68. package/dist/imports/fences/compilePolicy.js +1 -1
  69. package/dist/imports/fences/compilePolicy.js.map +1 -1
  70. package/dist/imports/fences/match.d.ts +1 -1
  71. package/dist/imports/fences/match.d.ts.map +1 -1
  72. package/dist/imports/fences/match.js +1 -1
  73. package/dist/imports/fences/match.js.map +1 -1
  74. package/dist/imports/packageExports.d.ts +1 -0
  75. package/dist/imports/packageExports.d.ts.map +1 -1
  76. package/dist/imports/packageExports.js +7 -5
  77. package/dist/imports/packageExports.js.map +1 -1
  78. package/dist/imports/packageName.d.ts +4 -0
  79. package/dist/imports/packageName.d.ts.map +1 -0
  80. package/dist/imports/packageName.js +25 -0
  81. package/dist/imports/packageName.js.map +1 -0
  82. package/dist/imports/resolve.d.ts +0 -2
  83. package/dist/imports/resolve.d.ts.map +1 -1
  84. package/dist/imports/resolve.js +1 -24
  85. package/dist/imports/resolve.js.map +1 -1
  86. package/dist/inventory/collect.d.ts +0 -1
  87. package/dist/inventory/collect.d.ts.map +1 -1
  88. package/dist/inventory/collect.js +1 -4
  89. package/dist/inventory/collect.js.map +1 -1
  90. package/dist/inventory/linesOf.d.ts +2 -0
  91. package/dist/inventory/linesOf.d.ts.map +1 -0
  92. package/dist/inventory/linesOf.js +5 -0
  93. package/dist/inventory/linesOf.js.map +1 -0
  94. package/dist/rules/builtIn.d.ts +2 -2
  95. package/dist/rules/builtIn.d.ts.map +1 -1
  96. package/dist/rules/builtIn.js +6 -0
  97. package/dist/rules/builtIn.js.map +1 -1
  98. package/dist/rules/docs/references.d.ts +2 -0
  99. package/dist/rules/docs/references.d.ts.map +1 -0
  100. package/dist/rules/docs/references.js +66 -0
  101. package/dist/rules/docs/references.js.map +1 -0
  102. package/dist/rules/docs/unversionedInstalls.d.ts +2 -0
  103. package/dist/rules/docs/unversionedInstalls.d.ts.map +1 -0
  104. package/dist/rules/docs/unversionedInstalls.js +36 -0
  105. package/dist/rules/docs/unversionedInstalls.js.map +1 -0
  106. package/dist/rules/files/folderNames.js +2 -2
  107. package/dist/rules/files/folderNames.js.map +1 -1
  108. package/dist/rules/imports/manifest.js +1 -1
  109. package/dist/rules/imports/manifest.js.map +1 -1
  110. package/dist/rules/imports/runtime.js +1 -1
  111. package/dist/rules/imports/runtime.js.map +1 -1
  112. package/dist/rules/stories/unitTests.js +1 -1
  113. package/dist/rules/stories/unitTests.js.map +1 -1
  114. package/dist/rules/unusedCode.d.ts +2 -0
  115. package/dist/rules/unusedCode.d.ts.map +1 -0
  116. package/dist/rules/unusedCode.js +9 -0
  117. package/dist/rules/unusedCode.js.map +1 -0
  118. package/docs/debt-and-hooks.md +0 -1
  119. package/docs/north-star.md +1 -1
  120. package/package.json +3 -2
  121. package/src/adapters/knip/configuration.ts +73 -0
  122. package/src/adapters/knip/entryPointFindings.ts +54 -0
  123. package/src/adapters/knip/findings.ts +46 -0
  124. package/src/adapters/knip/run.ts +60 -0
  125. package/src/adapters/knip/sourceConfig.ts +20 -0
  126. package/src/biome/recognizeDiagnostics.ts +2 -2
  127. package/src/docs/documentedImports.ts +104 -0
  128. package/src/docs/documentedModule.ts +44 -0
  129. package/src/docs/exportsName.ts +27 -0
  130. package/src/docs/headingAnchors.ts +52 -0
  131. package/src/docs/importFindings.ts +62 -0
  132. package/src/docs/isDocument.ts +6 -0
  133. package/src/docs/linkFindings.ts +90 -0
  134. package/src/docs/markdownLines.ts +56 -0
  135. package/src/docs/markdownLinks.ts +33 -0
  136. package/src/docs/repositoryLink.ts +44 -0
  137. package/src/imports/fences/compilePolicy.ts +2 -1
  138. package/src/imports/fences/match.ts +2 -1
  139. package/src/imports/packageExports.ts +8 -5
  140. package/src/imports/packageName.ts +31 -0
  141. package/src/imports/resolve.ts +1 -31
  142. package/src/inventory/collect.ts +1 -5
  143. package/src/inventory/linesOf.ts +4 -0
  144. package/src/rules/builtIn.ts +6 -0
  145. package/src/rules/docs/references.ts +83 -0
  146. package/src/rules/docs/unversionedInstalls.ts +53 -0
  147. package/src/rules/files/folderNames.ts +2 -2
  148. package/src/rules/imports/manifest.ts +1 -1
  149. package/src/rules/imports/runtime.ts +1 -1
  150. package/src/rules/stories/unitTests.ts +1 -1
  151. package/src/rules/unusedCode.ts +10 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,34 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.44.1 - 2026-10-29
4
+
5
+ ### Changed
6
+
7
+ - The Biome preset targets Biome 2.6.
8
+ - Generated apps format installed files before their initial commit.
9
+
10
+ ### Fixed
11
+
12
+ - Resolve package script file arguments relative to their declaring manifest across workspaces, keeping shared scripts and their imports out of unused-code debt.
13
+
14
+ ## 0.44.0 - 2026-10-29
15
+
16
+ ### Added
17
+
18
+ - `docs/documentedImports.ts` exports `documentedImports`, which reads the workspace modules and named imports a Markdown document references from its code blocks, inline module paths, `name` from `module` phrases and a package README's API rows, with the line of each.
19
+ - Report unused files, exports and package dependencies, and missing dependencies with the knip-backed `code/unused` rule. Package exports, binaries, scripts, tests, stories and test support supply entry points without a knip config. Run `quality baseline write --rule code/unused` to record existing findings, then remove debt and run `quality baseline tighten` as you repair it.
20
+
21
+ ### Fixed
22
+
23
+ - Keep the minimal generated app on the unused-code gate with its own baseline of existing template debt.
24
+
25
+ ### Breaking
26
+
27
+ - Repositories get new findings from `docs/references` for Markdown links, heading anchors, links into the repository's own GitHub tree, relative links that leave a published package's README, and documented workspace modules or named imports that do not resolve. Fix the reference, or record existing findings with `quality baseline write --rule docs/references`.
28
+ - Repositories get new findings from `docs/unversioned-installs` for a version after a package name in a Markdown install command. Name the package alone, or record existing findings with `quality baseline write --rule docs/unversioned-installs`.
29
+ - `linesOf` moves from `inventory/collect.ts` to `inventory/linesOf.ts`: change the import path.
30
+ - `builtinName` and `packageNameOf` move from `imports/resolve.ts` to `imports/packageName.ts`: change the import path.
31
+
3
32
  ## 0.43.0 - 2026-10-28
4
33
 
5
34
  ### Added
package/README.md CHANGED
@@ -21,7 +21,6 @@ Adopt Quality's policy as a whole. Quality owns the shared rules, their defaults
21
21
  A **rule** checks a repository and returns **findings**, each naming a file and what to change. Built-in and local rules always run at `error`. A finding normally counts once; a limit rule counts how far the file exceeds its limit. Use the defaults and keep checks strict. The config rejects warning levels, disabled rules, raised thresholds and inventory exclusions.
22
22
 
23
23
  Two records explain findings the repository deliberately keeps:
24
-
25
24
  - The **baseline** records existing debt by rule and file, as a maximum count. It makes strict checks usable before every file is cleaned up. `tighten` and `prune` lower the counts as debt disappears; explicitly writing a named rule again can raise them, and that diff needs review.
26
25
  - The config's **exceptions** list records permanent exceptions once, each with files, rules, a reason and optionally a Quality finding's `subject`. One declaration covers both Quality and Biome rules. A rule may refuse exceptions. An entry that no longer applies fails the gate instead of silently excusing future code.
27
26
 
@@ -114,7 +113,7 @@ An app says where its code runs through folder names. A package adopts the runti
114
113
 
115
114
  A package whose code all runs in one runtime declares it in its manifest instead of nesting everything in one folder: `"quality": { "runtime": "server" }` makes every source file server code, and `"client"` makes every file browser code. Package-root tooling stays server code. A declaration beside `src/client/` or `src/server/` is reported on the manifest, as is any value other than `"client"` or `"server"`; choose one convention per package.
116
115
 
117
- A package with a nonempty `bin` entry and no runtime folders is server code throughout. Runtime folders take precedence when a package also ships browser code. A Node library without a CLI declares `"runtime": "server"` or uses `src/server/`; `engines.node` alone does not say that a package is Node-only. Packages without runtime folders or a `bin` entry retain their existing source policies. Existing explicit fences continue to run in every package. Runtime folders are detected independently of `sources`, including empty folders; `sources` still selects the code that is checked.
116
+ A package with a nonempty `bin` entry and no runtime folders is server code throughout. Runtime folders take precedence when a package also ships browser code. A Node library without a CLI declares `"runtime": "server"` or uses `src/server/`; `engines.node` alone does not say that a package is Node-only. A package with no runtime folders, runtime declaration or `bin` entry has no runtime policy beyond its tooling. Explicit fences run in every package. Runtime folders are detected independently of `sources`, including empty folders; `sources` still selects the code that is checked.
118
117
 
119
118
  Tooling is server code in every package, including the workspace root: files under its top-level `script/`, `scripts/` and `tooling/` folders, and top-level JavaScript or TypeScript config files such as `vitest.config.ts`. A tooling folder or config file nested under `src/` follows the source runtime policy. Browser and shared code cannot import package-root tooling.
120
119
 
@@ -122,7 +121,7 @@ The manifest owns ordinary workspace dependencies. An **application** is a packa
122
121
 
123
122
  When a package promises more, put `quality.fences.config.ts` beside its `package.json`, exporting an array of fences as the default. Quality discovers this file at the repository root and in workspace packages, even when `sources` includes only their source folders. The root config does not list boundary files.
124
123
 
125
- A **fence** is a prohibition on imports, with a reason and one illegal and one legal example. Quality validates all discovered fences together, so duplicate names or contradictory examples stop the run. An unreadable file or invalid default export also stops the run. Fences remain an internal `imports/fences` module of Quality and use its shared import graph, resolver and report.
124
+ A **fence** is a prohibition on imports, with a reason and one illegal and one legal example. Quality validates all discovered fences together, so duplicate names or contradictory examples stop the run. An unreadable file or invalid default export also stops the run. The `imports/fences` rule checks them with Quality's shared import graph, resolver and report.
126
125
 
127
126
  ```ts
128
127
  import { fence } from "@shivaedev/quality/imports/fence.ts";
@@ -140,7 +139,7 @@ const uiBoundary = fence("ui-never-imports-server")
140
139
  export default [uiBoundary];
141
140
  ```
142
141
 
143
- This is `packages/ui/quality.fences.config.ts`; paths remain relative to the repository root. Existing fences supplied through `rules["imports/fences"].options.fences` join the same policy. This adds a fact about the repository's architecture to the shared import check. It does not select a different set of Quality rules. Use real checked files and workspace package names in these chains. The illegal chain must cross this fence alone; the legal chain must cross none. `mayNotImport` checks direct imports; `mayNotReach` also follows repository imports transitively; `mayImportOnly(...subjects).of(unit)` permits only named modules or folders of a unit. Fences count type imports but never hold test files or files under `test-support/`. The default `imports/no-test-code` rule rejects production imports of either, including type imports and re-exports. Move shared code into a production module that tests can import.
142
+ This is `packages/ui/quality.fences.config.ts`; paths remain relative to the repository root. Fences supplied through `rules["imports/fences"].options.fences` join the same policy. This adds a fact about the repository's architecture to the shared import check. It does not select a different set of Quality rules. Use real checked files and workspace package names in these chains. The illegal chain must cross this fence alone; the legal chain must cross none. `mayNotImport` checks direct imports; `mayNotReach` also follows repository imports transitively; `mayImportOnly(...subjects).of(unit)` permits only named modules or folders of a unit. Fences count type imports but never hold test files or files under `test-support/`. The default `imports/no-test-code` rule rejects production imports of either, including type imports and re-exports. Move shared code into a production module that tests can import.
144
143
 
145
144
  The import rules resolve every literal specifier the way the TypeScript compiler does, with the nearest `tsconfig.json`, and stop the run when the sources hold no module at all. A relative or `#` import of a file that a generator writes before the tests run resolves only inside a folder that `imports/resolvable` lists as `generated`; the folder, or every file an import names in it, must be ignored by git:
146
145
 
@@ -209,7 +208,7 @@ When a Quality upgrade adds a check, or a reviewed change needs to record one ru
209
208
  quality baseline write --rule tests/story-setup
210
209
  ```
211
210
 
212
- Keep the default error level. The command replaces that rule's entries and leaves other rules' entries alone. Any new or raised count belongs in the review and the pull request's Callouts. The [debt and hook guide](https://github.com/ShivaeDev/platform/blob/main/packages/quality/docs/debt-and-hooks.md) covers the baseline format, exception subjects, limit changes, renames and commit checks.
211
+ Keep the default error level. The command replaces that rule's entries and leaves other rules' entries alone. Call out any new or raised count in the review and the pull request description. The [debt and hook guide](https://github.com/ShivaeDev/platform/blob/main/packages/quality/docs/debt-and-hooks.md) covers the baseline format, exception subjects, limit changes, renames and commit checks.
213
212
 
214
213
  ### Baseline merges
215
214
 
@@ -220,16 +219,24 @@ Register the driver in `.gitattributes`:
220
219
  /packages/*/quality-baseline.jsonl merge=quality-baseline
221
220
  ```
222
221
 
223
- Run `quality baseline install-driver` from your checkout's setup script. It sets only repository-local `merge.quality-baseline.driver`; it leaves other Git settings alone. Platform's `pnpm run setup` includes this step. Each checkout needs the setting because Git does not copy local configuration when cloning.
222
+ Run `quality baseline install-driver` from your checkout's setup script. It sets only repository-local `merge.quality-baseline.driver`; it leaves other Git settings alone. Each checkout needs the setting because Git does not copy local configuration when cloning.
224
223
 
225
224
  Git calls `quality baseline merge <ancestor> <current> <other>`. Entries are keyed by path and rule. Removing an ancestor entry on either side removes it from the result; retained counts take the minimum of the two sides, and entries newly added on either side survive. The command writes the result to `<current>`, so parallel reductions of neighbouring entries merge without a text conflict.
226
225
 
226
+ ### Unused code
227
+
228
+ `code/unused` uses knip to report unused files, value and type exports, unused dependencies (including development and optional peer dependencies), and imports missing from the package manifest in every workspace. It runs through `quality lint` and the normal report and baseline. The rule accepts no options or permanent exceptions; Quality supplies knip’s entry points without a repository knip config.
229
+
230
+ Package `exports` are public API, including wildcard targets and source conditions. Package `bin` and scripts, test and story globs, tool configs and `src/test-support` provide the other entry points. Imports reachable from those entries count as used. Source-conditioned package import aliases resolve to their sources before a build. Compiler mappings from `tsconfig.json` and `tsconfig.build.json` keep imports on their source files when build output exists. An internal module can be used while one of its exports remains unused. An application’s declared dependency entry points satisfy provided imports under the same policy as `imports/manifest`.
231
+
232
+ For adoption, run `quality baseline write --rule code/unused` and review the recorded debt. Burn it down by deleting unused code, removing unused dependency declarations, declaring missing dependencies, or connecting code to a real entry point. Run `quality baseline tighten` after repairs, or `quality baseline prune` across the repository. Do not add an entry point just to hide dead code.
233
+
227
234
  ### What the rules check
228
235
 
229
236
  `quality lint` prints each failing rule's guidance with its findings, so the finding is the reference for what to change. The built-in rules fall into these groups:
230
-
231
237
  - **Structure:** `structure/max-lines` allows 150 lines in a source file and 300 in test code, `nesting/max-depth` rejects lines indented eight tabs deep, and `structure/no-barrel` rejects `index` modules. The preset rejects every re-export, types included; when `noExportedImports` suggests `export … from`, import the name where it is used instead. A module does one job.
232
238
  - **Comments:** the `comments/*` rules reject JSDoc, TODOs, banners, line and pull request references, environment pragmas and more than two comments per file. A comment says why, never what the code already says or what it used to be. A tool pragma such as `@jsxImportSource` counts as a comment until both `comments/no-jsdoc` and `comments/max-per-file` list its tag in their `allow` option.
239
+ - **Documentation:** `docs/references` checks every Markdown file in the sources except `CHANGELOG.md`, whose released history keeps the links of its release. Relative links, reference definitions and `href`/`src` attributes reach an existing file or folder inside the repository, and a heading anchor matches one GitHub forms from the target's headings. A link to the repository's own GitHub tree, named by the root `package.json` `repository` field, is checked like a relative one unless it is pinned to a commit or a release tag. A published workspace package's README is shown on npm without the repository around it, so its links that leave the package use absolute URLs. Imports in TypeScript and JavaScript code blocks, workspace module paths such as `@scope/lib/repository.ts` written as inline code, `` `name` from `module` `` phrases and a package README's API rows resolve through the owning package's `exports` to a module that is not blocked, and every named import exists in that module unless it re-exports another. A linked document such as `CLAUDE.md` beside `AGENTS.md` is checked once, through its target. `docs/unversioned-installs` rejects a version after a package name in install commands, in shell code blocks and inline code; the package's own version ranges decide what installs, and a written version goes stale with the next release. A dist-tag such as `latest` passes.
233
240
  - **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`.
234
241
  - **Imports:** cycles, unresolvable imports, workspace imports missing from the manifest or an entry point, relative imports that leave their folder, production imports of test code, runtime folders and fences, as described above.
235
242
  - **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. 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.
@@ -245,7 +252,11 @@ Replace a child decision such as `<section>{ready && <Content />}</section>` wit
245
252
  ```tsx
246
253
  function Panel({ ready }) {
247
254
  if (!ready) return null;
248
- return <section><Content /></section>;
255
+ return (
256
+ <section>
257
+ <Content />
258
+ </section>
259
+ );
249
260
  }
250
261
  ```
251
262
 
@@ -267,7 +278,13 @@ function Item({ item }) {
267
278
  }
268
279
 
269
280
  function List({ items }) {
270
- return <ul>{items.map(item => <Item key={item.id} item={item} />)}</ul>;
281
+ return (
282
+ <ul>
283
+ {items.map((item) => (
284
+ <Item key={item.id} item={item} />
285
+ ))}
286
+ </ul>
287
+ );
271
288
  }
272
289
  ```
273
290
 
@@ -275,28 +292,30 @@ function List({ items }) {
275
292
 
276
293
  Import names from their defining module; there is no root entry. The package's `./*.ts` export pattern also exposes the gate's implementation modules; the following table lists the config, tool and extension entry points:
277
294
 
278
- | Module | Exports |
279
- | --- | --- |
280
- | `config.ts` | `defineConfig`, `QualityConfig`, `Level` (`"error"`), `RuleSetting`, `RuleSettings`, `BuiltInRules` |
281
- | `rule.ts` | `defineRule`, `Rule`, `Configured`, `Finding`, `Findings`, `SourceFile`, `RuleInputs`, `RuleContext` |
282
- | `standardSchema.ts` | `StandardSchemaV1`, `StandardResult`, `StandardIssue`, `describeIssue` |
283
- | `imports/fence.ts` | `fence` |
284
- | `imports/fences/selectors.ts` | `packages`, `folders`, `files`, `modules`, `scopes`, `anyOf`, `workspace`, `anything`, `external` |
285
- | `imports/fences/model.ts` | `Fence`, `Target`, `Selector`, `Prohibition`, `Examples`, `Chain`, `ExampleStep`, `External` |
286
- | `testProjects.ts` | `testProjects` |
287
- | `naming/testName.ts` | `testName`, `isTestCode`, `isTestSupport`, `ENVIRONMENTS`, `Environment`, `TestName` |
295
+ | Module | Exports |
296
+ | ----------------------------- | ---------------------------------------------------------------------------------------------------- |
297
+ | `config.ts` | `defineConfig`, `QualityConfig`, `Level` (`"error"`), `RuleSetting`, `RuleSettings`, `BuiltInRules` |
298
+ | `rule.ts` | `defineRule`, `Rule`, `Configured`, `Finding`, `Findings`, `SourceFile`, `RuleInputs`, `RuleContext` |
299
+ | `standardSchema.ts` | `StandardSchemaV1`, `StandardResult`, `StandardIssue`, `describeIssue` |
300
+ | `imports/fence.ts` | `fence` |
301
+ | `imports/fences/selectors.ts` | `packages`, `folders`, `files`, `modules`, `scopes`, `anyOf`, `workspace`, `anything`, `external` |
302
+ | `imports/fences/model.ts` | `Fence`, `Target`, `Selector`, `Prohibition`, `Examples`, `Chain`, `ExampleStep`, `External` |
303
+ | `testProjects.ts` | `testProjects`, `TestProjectsOptions` |
304
+ | `appViteConfig.ts` | `appViteConfig` |
305
+ | `appTestConfig.ts` | `appTestConfig` |
306
+ | `naming/testName.ts` | `testName`, `isTestCode`, `isTestSupport`, `ENVIRONMENTS`, `Environment`, `TestName` |
288
307
 
289
308
  #### Config
290
309
 
291
- | Key | Default | Meaning |
292
- | --- | --- | --- |
293
- | `sources` | `["."]` | Directories or files the source rules check, relative to the repository root. |
294
- | `extensions` | `.ts`, `.tsx`, `.mts`, `.cts`, `.js`, `.jsx`, `.mjs`, `.cjs` | Source extensions. |
295
- | `baseline` | `quality-baseline.jsonl` | Root shard for paths outside packages; package shards use `packages/<package>/quality-baseline.jsonl`. |
296
- | `exceptions` | `[]` | Permanent exceptions as `{ files, rules, reason, subject? }`. |
297
- | `registry` | `quality/registry.json` | Legacy input for upgrades; run `quality exceptions migrate`. |
298
- | `local` | `[]` | Exposed extension API for rules made with `defineRule`; not required for adoption. |
299
- | `rules` | Every rule at `error` | Options by rule id, such as import boundaries. An explicit `error` or `{ level: "error", options }` is also accepted. |
310
+ | Key | Default | Meaning |
311
+ | ------------ | ------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------- |
312
+ | `sources` | `["."]` | Directories or files the source rules check, relative to the repository root. |
313
+ | `extensions` | `.ts`, `.tsx`, `.mts`, `.cts`, `.js`, `.jsx`, `.mjs`, `.cjs` | Source extensions. |
314
+ | `baseline` | `quality-baseline.jsonl` | Root shard for paths outside packages; package shards use `packages/<package>/quality-baseline.jsonl`. |
315
+ | `exceptions` | `[]` | Permanent exceptions as `{ files, rules, reason, subject? }`. |
316
+ | `registry` | `quality/registry.json` | Legacy input for upgrades; run `quality exceptions migrate`. |
317
+ | `local` | `[]` | Exposed extension API for rules made with `defineRule`; not required for adoption. |
318
+ | `rules` | Every rule at `error` | Options by rule id, such as import boundaries. An explicit `error` or `{ level: "error", options }` is also accepted. |
300
319
 
301
320
  #### Local rules
302
321
 
@@ -307,9 +326,7 @@ import { defineRule } from "@shivaedev/quality/rule.ts";
307
326
 
308
327
  export const noLog = defineRule({
309
328
  check: ({ sources }) =>
310
- sources
311
- .filter((file) => file.text.includes("console.log"))
312
- .map((file) => ({ file: file.path, message: "logs to the console." })),
329
+ sources.filter((file) => file.text.includes("console.log")).map((file) => ({ file: file.path, message: "logs to the console." })),
313
330
  description: "Log through the logger.",
314
331
  id: "local/no-console-log",
315
332
  });
@@ -337,16 +354,16 @@ quality hooks pre-commit [--config <file>]
337
354
 
338
355
  `quality` alone runs lint. The commands above use the default error-level policy. `prune --against` follows renames since the target's merge base; without a target it tries `origin/HEAD`, `origin/main`, then `origin/master`, and prunes without following moves when no merge base is available. An explicit target with unavailable history fails; fetch the needed history before rerunning. `migrate` splits a single JSON Lines baseline into shards, or converts an earlier JSON baseline into sharded JSON Lines. Use `--from quality/baseline.jsonl` for an existing single-file baseline. It removes the source after writing the shards.
339
356
 
340
- | Exit code | Meaning |
341
- | --- | --- |
342
- | `0` | Passed. Retained debt or loose baseline entries may remain; see the severity limitation below. |
343
- | `1` | Failed: uncovered errors, stale exceptions or baseline entries for unknown or disabled rules. |
344
- | `2` | Could not run: invalid input or config, missing files or git history, a failed rule, fixes that do not settle, or invalid usage. |
357
+ | Exit code | Meaning |
358
+ | --------- | -------------------------------------------------------------------------------------------------------------------------------- |
359
+ | `0` | Passed. Retained debt or loose baseline entries may remain. |
360
+ | `1` | Failed: uncovered errors, stale exceptions or baseline entries for unknown or disabled rules. |
361
+ | `2` | Could not run: invalid input or config, missing files or git history, a failed rule, fixes that do not settle, or invalid usage. |
345
362
 
346
363
  ### Install, shared tooling and limits
347
364
 
348
365
  ```sh
349
- pnpm add --save-dev @shivaedev/quality @effect/platform-node@4.0.5 @effect/platform-node-shared@4.0.5 effect@4.0.5
366
+ pnpm add --save-dev @shivaedev/quality @effect/platform-node @effect/platform-node-shared effect
350
367
  ```
351
368
 
352
369
  Node 24 or later is required. The CLI loads the TypeScript config through Node's native import; use erasable syntax and `.ts` extensions for relative TypeScript imports.
@@ -453,8 +470,7 @@ export default defineConfig({
453
470
  });
454
471
  ```
455
472
 
456
- Quality merges the Biome settings at lint and fix time; do not add or mirror an override in `biome.json`. Files are explicit repository paths. Biome exceptions cover individual lint rules or assist actions; whole checks, rule groups and globs are rejected. `biome/files/includes` is the directory exclusion form: keep `**` and list negative patterns naming directories, such as `!**/test-support/generated`. Quality's shipped exceptions remain part of its internal policy. [Exceptions and upgrades](https://github.com/ShivaeDev/platform/blob/main/packages/quality/docs/debt-and-hooks.md#exceptions) describes subjects, stale entries and the upgrade command.
457
-
473
+ Quality merges the Biome settings at lint and fix time; do not add or mirror an override in `biome.json`. Files are explicit repository paths. Biome exceptions cover individual lint rules or assist actions; whole checks, rule groups and globs are rejected. `biome/files/includes` is the directory exclusion form: keep `**` and list negative patterns naming directories, such as `!**/test-support/generated`. Quality's shipped exceptions are part of its internal policy. [Exceptions and upgrades](https://github.com/ShivaeDev/platform/blob/main/packages/quality/docs/debt-and-hooks.md#exceptions) describes subjects, stale entries and the upgrade command.
458
474
  - The source inventory and Biome have their own scopes. `quality fix` runs Biome from the config's folder; it is not restricted to the source-rule inventory.
459
475
  - The installed hook checks files on disk, not only what is staged, and uses each committing worktree's config and dependencies. Installation sets repository-local `core.hooksPath`; the hook chains an executable global pre-commit hook without changing global configuration. Either hook's failure blocks the commit. `quality hooks status` reports when git's effective hooks path does not run Quality.
460
476
  - Workspace imports require a declaration in the importing package’s `dependencies`, `peerDependencies` or `optionalDependencies`. Tests, `test-support`, package-root tooling folders (`script`, `scripts`, `tooling`) and package-root config files may also use `devDependencies`. Explicitly export-blocked bundle inputs may use them when no runtime module reaches those inputs in the scanned import graph; an executable or another public export keeps its imports in the runtime boundary.
@@ -50,7 +50,7 @@
50
50
  {
51
51
  "includes": ["**"],
52
52
  "reason": "An inline style is the right tool for a value computed at run time, such as a position, a transform or a drag offset.",
53
- "rule": "lint/nursery/noInlineStyles"
53
+ "rule": "lint/style/noInlineStyles"
54
54
  },
55
55
  {
56
56
  "includes": ["**"],
package/biome/preset.json CHANGED
@@ -152,15 +152,24 @@
152
152
  "maxAllowedComplexity": 15
153
153
  }
154
154
  },
155
+ "noExcessiveNestedCallbacks": "error",
155
156
  "noExcessiveNestedTestSuites": "error",
157
+ "noExcessiveSelectorClasses": {
158
+ "level": "error",
159
+ "options": {
160
+ "maxClasses": 3
161
+ }
162
+ },
156
163
  "noExtraBooleanCast": "error",
157
164
  "noFlatMapIdentity": "error",
158
165
  "noForEach": "error",
159
166
  "noImplicitCoercions": "error",
160
167
  "noImportantStyles": { "fix": "none", "level": "error" },
168
+ "noPlaywrightUselessAwait": "error",
161
169
  "noRedundantDefaultExport": "error",
162
170
  "noStaticOnlyClass": "error",
163
171
  "noThisInStatic": "error",
172
+ "noUnnecessaryTemplateExpression": "error",
164
173
  "noUselessCatch": "error",
165
174
  "noUselessCatchBinding": "error",
166
175
  "noUselessConstructor": "error",
@@ -180,14 +189,17 @@
180
189
  "noUselessTypeConstraint": "error",
181
190
  "noUselessUndefinedInitialization": "error",
182
191
  "useArrayFind": "error",
192
+ "useArraySome": "error",
183
193
  "useArrowFunction": "error",
184
194
  "useDateNow": "error",
185
195
  "useFlatMap": "error",
186
196
  "useIndexOf": "error",
187
197
  "useLiteralKeys": "error",
198
+ "useMathMinMax": "error",
188
199
  "useNumericLiterals": "error",
189
200
  "useOptionalChain": "error",
190
201
  "useRegexLiterals": "error",
202
+ "useRegexpTest": { "fix": "none", "level": "error" },
191
203
  "useSimpleNumberKeys": "error",
192
204
  "useSimplifiedLogicExpression": "error",
193
205
  "useWhile": "error"
@@ -195,6 +207,7 @@
195
207
  "correctness": {
196
208
  "noBeforeInteractiveScriptOutsideDocument": "error",
197
209
  "noChildrenProp": "error",
210
+ "noComponentHookFactories": "error",
198
211
  "noConstAssign": { "fix": "none", "level": "error" },
199
212
  "noConstantCondition": "error",
200
213
  "noConstantMathMinMaxClamp": "error",
@@ -202,6 +215,7 @@
202
215
  "noDuplicateArgumentNames": "error",
203
216
  "noDuplicateAttributes": "error",
204
217
  "noDuplicateEnumValueNames": "error",
218
+ "noDuplicateFieldDefinitionNames": "error",
205
219
  "noDuplicateInputFieldNames": "error",
206
220
  "noDuplicateVariableNames": "error",
207
221
  "noEmptyCharacterClassInRegex": "error",
@@ -215,10 +229,12 @@
215
229
  "noInvalidGridAreas": "error",
216
230
  "noInvalidPositionAtImportRule": "error",
217
231
  "noInvalidUseBeforeDeclaration": "error",
232
+ "noJsxNamespace": "error",
218
233
  "noMissingVarFunction": "error",
219
234
  "noNestedComponentDefinitions": "error",
220
235
  "noNextAsyncClientComponent": "error",
221
236
  "noNonoctalDecimalEscape": "error",
237
+ "noPlaywrightMissingAwait": "error",
222
238
  "noPrecisionLoss": "error",
223
239
  "noPrivateImports": "error",
224
240
  "noProcessGlobal": { "fix": "none", "level": "error" },
@@ -269,6 +285,7 @@
269
285
  },
270
286
  "useLoneAnonymousOperation": "error",
271
287
  "useParseIntRadix": "error",
288
+ "useReactAsyncServerFunction": "error",
272
289
  "useSingleJsDocAsterisk": "error",
273
290
  "useUniqueElementIds": "error",
274
291
  "useValidForDirection": "error",
@@ -277,61 +294,25 @@
277
294
  },
278
295
  "nursery": {
279
296
  "noBaseToString": "error",
280
- "noComponentHookFactories": "error",
281
- "noDuplicateSelectors": "error",
282
- "noEmptyObjectKeys": "error",
283
- "noExcessiveNestedCallbacks": "error",
284
- "noExcessiveSelectorClasses": {
285
- "level": "error",
286
- "options": {
287
- "maxClasses": 3
288
- }
289
- },
290
297
  "noExtendNative": "error",
291
298
  "noFloatingPromises": { "fix": "none", "level": "error" },
292
- "noIdenticalTestTitle": "error",
293
- "noInlineStyles": "off",
294
299
  "noInvalidFileInputAccept": "error",
295
300
  "noInvalidPropertyInitValue": "error",
296
301
  "noJsonUnsafeValues": "error",
297
- "noJsxLeakedDollar": "error",
298
- "noJsxNamespace": "error",
299
- "noLoopFunc": "error",
300
302
  "noMisplacedListElements": "error",
301
303
  "noMisusedPromises": { "fix": "none", "level": "error" },
302
304
  "noNegationInEqualityCheck": "error",
303
305
  "noNonScalableViewport": "error",
304
306
  "noObsoleteTags": "error",
305
- "noPlaywrightElementHandle": "error",
306
- "noPlaywrightEval": "error",
307
- "noPlaywrightForceOption": "error",
308
- "noPlaywrightMissingAwait": "error",
309
- "noPlaywrightNetworkidle": "error",
310
- "noPlaywrightPagePause": "error",
311
- "noPlaywrightUselessAwait": "error",
312
- "noPlaywrightWaitForNavigation": "error",
313
- "noPlaywrightWaitForSelector": "error",
314
- "noPlaywrightWaitForTimeout": "error",
315
307
  "noReactObjectTypeAsDefaultProp": "error",
316
- "noReactStringRefs": "error",
317
308
  "noSelfImport": "error",
318
309
  "noThisOutsideOfClass": "error",
319
- "noTopLevelLiterals": "error",
320
310
  "noUndeclaredClasses": "off",
321
311
  "noUnmodifiedLoopCondition": "error",
322
- "noUnnecessaryTemplateExpression": "error",
323
312
  "noUnsafeIframeSandbox": "error",
324
313
  "noUnsafePlusOperands": "error",
325
314
  "noUnsafeTypeAssertion": "error",
326
- "noUntrustedLicenses": "error",
327
315
  "noUselessTypeConversion": "error",
328
- "useArraySome": "error",
329
- "useBaseline": {
330
- "level": "error",
331
- "options": {
332
- "available": 2026
333
- }
334
- },
335
316
  "useBetterDomTraversing": "error",
336
317
  "useConsistentFunctionStyle": {
337
318
  "level": "error",
@@ -340,14 +321,6 @@
340
321
  }
341
322
  },
342
323
  "useConsistentObjectKeys": "error",
343
- "useConsistentTestIt": {
344
- "fix": "none",
345
- "level": "error",
346
- "options": {
347
- "function": "it",
348
- "withinDescribe": "it"
349
- }
350
- },
351
324
  "useControlLabel": "error",
352
325
  "useDisposables": "error",
353
326
  "useExhaustiveSwitchCases": {
@@ -357,28 +330,14 @@
357
330
  "requireExplicitCase": true
358
331
  }
359
332
  },
360
- "useIframeSandbox": "error",
361
333
  "useIncludes": { "fix": "none", "level": "error" },
362
- "useNamedCaptureGroup": "error",
363
334
  "useNamedLayer": "error",
364
335
  "usePromiseRejectErrors": "error",
365
- "useReactAsyncServerFunction": "error",
366
336
  "useReactNamingConvention": "error",
367
- "useReduceTypeParameter": "error",
368
337
  "useRegexpExec": "error",
369
- "useRegexpTest": { "fix": "none", "level": "error" },
370
- "useSortedClasses": {
371
- "fix": "safe",
372
- "level": "error",
373
- "options": {
374
- "functions": ["cn", "clsx", "cva"]
375
- }
376
- },
377
338
  "useStringStartsEndsWith": "error",
378
339
  "useTailwindShorthandClasses": "error",
379
- "useTestHooksInOrder": "error",
380
- "useTestHooksOnTop": "error",
381
- "useUnicodeRegex": { "fix": "none", "level": "error" },
340
+ "useTailwindSortedClasses": { "fix": "safe", "level": "error" },
382
341
  "useValidTestTitle": "error"
383
342
  },
384
343
  "performance": {
@@ -389,6 +348,7 @@
389
348
  "noReExportAll": "error",
390
349
  "noSyncScripts": "error",
391
350
  "noUnwantedPolyfillio": "error",
351
+ "useDomNodeTextContent": "error",
392
352
  "useGoogleFontPreconnect": "error"
393
353
  },
394
354
  "security": {
@@ -396,7 +356,8 @@
396
356
  "noDangerouslySetInnerHtml": "error",
397
357
  "noDangerouslySetInnerHtmlWithChildren": "error",
398
358
  "noGlobalEval": "error",
399
- "noScriptUrl": "error"
359
+ "noScriptUrl": "error",
360
+ "useIframeSandbox": "error"
400
361
  },
401
362
  "style": {
402
363
  "noCommonJs": "error",
@@ -406,14 +367,19 @@
406
367
  "noExportedImports": "error",
407
368
  "noIncrementDecrement": "error",
408
369
  "noInferrableTypes": "error",
370
+ "noInlineStyles": "off",
409
371
  "noMultiAssign": "error",
410
372
  "noMultilineString": "error",
411
373
  "noNegationElse": "error",
412
374
  "noNestedTernary": "error",
413
375
  "noNonNullAssertion": { "fix": "none", "level": "error" },
414
376
  "noParameterAssign": "error",
377
+ "noPlaywrightElementHandle": "error",
378
+ "noPlaywrightEval": "error",
379
+ "noPlaywrightWaitForSelector": "error",
415
380
  "noShoutyConstants": "error",
416
381
  "noSubstr": "error",
382
+ "noTopLevelLiterals": "error",
417
383
  "noUnusedTemplateLiteral": "error",
418
384
  "noUselessElse": "error",
419
385
  "noValueAtRule": "error",
@@ -449,6 +415,14 @@
449
415
  }
450
416
  },
451
417
  "useConsistentObjectDefinitions": "error",
418
+ "useConsistentTestIt": {
419
+ "fix": "none",
420
+ "level": "error",
421
+ "options": {
422
+ "function": "it",
423
+ "withinDescribe": "it"
424
+ }
425
+ },
452
426
  "useConsistentTypeDefinitions": {
453
427
  "level": "error",
454
428
  "options": {
@@ -468,6 +442,7 @@
468
442
  "useGroupedAccessorPairs": "error",
469
443
  "useImportType": "error",
470
444
  "useLiteralEnumMembers": "error",
445
+ "useNamedCaptureGroup": "error",
471
446
  "useNamingConvention": {
472
447
  "fix": "none",
473
448
  "level": "error",
@@ -490,6 +465,7 @@
490
465
  "useObjectSpread": "error",
491
466
  "useReactFunctionComponents": "error",
492
467
  "useReadonlyClassProperties": "error",
468
+ "useReduceTypeParameter": "error",
493
469
  "useSelfClosingElements": "error",
494
470
  "useShorthandAssign": "error",
495
471
  "useShorthandFunctionType": "error",
@@ -497,9 +473,12 @@
497
473
  "useSpreadOverApply": "error",
498
474
  "useSymbolDescription": "error",
499
475
  "useTemplate": "error",
476
+ "useTestHooksInOrder": "error",
477
+ "useTestHooksOnTop": "error",
500
478
  "useThrowNewError": "error",
501
479
  "useThrowOnlyError": "error",
502
480
  "useTrimStartEnd": "error",
481
+ "useUnicodeRegex": { "fix": "none", "level": "error" },
503
482
  "useUnifiedTypeSignatures": "error"
504
483
  },
505
484
  "suspicious": {
@@ -538,11 +517,13 @@
538
517
  "noDuplicateObjectKeys": "error",
539
518
  "noDuplicateParameters": "error",
540
519
  "noDuplicateProperties": "error",
520
+ "noDuplicateSelectors": "error",
541
521
  "noDuplicateSelectorsKeyframeBlock": "error",
542
522
  "noDuplicateTestHooks": "error",
543
523
  "noEmptyBlock": "error",
544
524
  "noEmptyBlockStatements": "error",
545
525
  "noEmptyInterface": "error",
526
+ "noEmptyObjectKeys": "error",
546
527
  "noEmptySource": "error",
547
528
  "noEqualsToNull": { "fix": "none", "level": "error" },
548
529
  "noEvolvingTypes": "error",
@@ -557,12 +538,15 @@
557
538
  "noGlobalIsFinite": "error",
558
539
  "noGlobalIsNan": "error",
559
540
  "noHeadImportInDocument": "error",
541
+ "noIdenticalTestTitle": "error",
560
542
  "noImplicitAnyLet": "error",
561
543
  "noImportAssign": "error",
562
544
  "noImportantInKeyframe": "error",
563
545
  "noIrregularWhitespace": "error",
546
+ "noJsxLeakedDollar": "error",
564
547
  "noLabelVar": "error",
565
548
  "noLeakedRender": "off",
549
+ "noLoopFunc": "error",
566
550
  "noMisleadingCharacterClass": "error",
567
551
  "noMisleadingInstantiator": "error",
568
552
  "noMisrefactoredShorthandAssign": "error",
@@ -570,10 +554,16 @@
570
554
  "noNonNullAssertedOptionalChain": "error",
571
555
  "noOctalEscape": "error",
572
556
  "noParametersOnlyUsedInRecursion": { "fix": "none", "level": "error" },
557
+ "noPlaywrightForceOption": "error",
558
+ "noPlaywrightNetworkidle": "error",
559
+ "noPlaywrightPagePause": "error",
560
+ "noPlaywrightWaitForNavigation": "error",
561
+ "noPlaywrightWaitForTimeout": "error",
573
562
  "noProto": "error",
574
563
  "noPrototypeBuiltins": "error",
575
564
  "noQuickfixBiome": "error",
576
565
  "noReactForwardRef": "error",
566
+ "noReactStringRefs": "error",
577
567
  "noRedeclare": "error",
578
568
  "noRedundantUseStrict": "error",
579
569
  "noReturnAssign": "error",
@@ -593,6 +583,7 @@
593
583
  "noUnknownAttribute": "error",
594
584
  "noUnsafeDeclarationMerging": "error",
595
585
  "noUnsafeNegation": "error",
586
+ "noUntrustedLicenses": "error",
596
587
  "noUnusedExpressions": "error",
597
588
  "noUselessEscapeInString": "error",
598
589
  "noUselessRegexBackrefs": "error",
@@ -601,6 +592,12 @@
601
592
  "useAdjacentOverloadSignatures": "error",
602
593
  "useArraySortCompare": "error",
603
594
  "useAwait": "error",
595
+ "useBaseline": {
596
+ "level": "error",
597
+ "options": {
598
+ "available": 2026
599
+ }
600
+ },
604
601
  "useBiomeIgnoreFolder": "error",
605
602
  "useDefaultSwitchClauseLast": "error",
606
603
  "useErrorMessage": "error",
@@ -616,6 +613,7 @@
616
613
  }
617
614
  }
618
615
  },
616
+ "markdown": { "parser": { "frontmatter": true } },
619
617
  "overrides": [
620
618
  {
621
619
  "assist": {
@@ -707,6 +705,8 @@
707
705
  "path": "./node_modules/@shivaedev/quality/biome/plugins/type-re-exports.grit"
708
706
  }
709
707
  ],
708
+ "root": false,
709
+ "tailwind": { "mergeFunctions": ["cn", "clsx"], "variantFunctions": ["cva"] },
710
710
  "vcs": {
711
711
  "clientKind": "git",
712
712
  "enabled": true,
@@ -0,0 +1,29 @@
1
+ import type { RuleInputs } from "#rule.ts";
2
+ export declare function knipConfiguration(inputs: RuleInputs): Promise<{
3
+ exclude: never[];
4
+ ignore: never[];
5
+ ignoreBinaries: never[];
6
+ ignoreDependencies: never[];
7
+ ignoreExportsUsedInFile: boolean;
8
+ ignoreFiles: never[];
9
+ ignoreIssues: {};
10
+ ignoreMembers: never[];
11
+ ignoreUnresolved: never[];
12
+ ignoreWorkspaces: never[];
13
+ include: ("dependencies" | "devDependencies" | "exports" | "files" | "nsExports" | "nsTypes" | "optionalPeerDependencies" | "types" | "unlisted")[];
14
+ includeEntryExports: boolean;
15
+ rules: {
16
+ [k: string]: string;
17
+ };
18
+ tags: never[];
19
+ workspaces: {
20
+ [k: string]: {
21
+ readonly entry: readonly string[];
22
+ readonly paths: {
23
+ [k: string]: string[];
24
+ };
25
+ readonly project: string[];
26
+ };
27
+ };
28
+ }>;
29
+ //# sourceMappingURL=configuration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"configuration.d.ts","sourceRoot":"","sources":["../../../src/adapters/knip/configuration.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAsB3C,wBAAsB,iBAAiB,CAAC,MAAM,EAAE,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CzD"}