@jfalava/ts-standard 0.3.5 → 0.3.6

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.
@@ -31,6 +31,16 @@ Toolchains set what `typecheck` must be: `effect-tsgo tsrs --noEmit` for `oxc` a
31
31
 
32
32
  ## Exceptions
33
33
 
34
- An exception covers every finding with the same `rule` whose `where` and `script` match. Omitting `where` or `script` matches any. A `where` of a file also covers its line findings, such as `.github/workflows/ci.yml:33`. Each needs a `why`; keep it in step with the exceptions table in the repo's README.
34
+ An exception covers every finding with the same `rule` whose `where` and `script` match. Omitting `where` or `script` matches any. A `where` of a file also covers its line findings, such as `.github/workflows/ci.yml:33`. Each needs a `why`, and a row in the exceptions table of the repo's root `STANDARD.md`, which lists every exception with its `rule`, `where`, `script` and reason. Change the table in the same change as the exception.
35
+
36
+ ```md
37
+ # Standard exceptions
38
+
39
+ Exceptions to [@jfalava/ts-standard](https://github.com/jfalava/ts-standard) declared in `standard.config.ts`.
40
+
41
+ | Rule | Where | Script | Why |
42
+ | ------------------------------- | ------ | ---------------- | -------------------------------------------------------- |
43
+ | `scripts/check-runs-own-checks` | `docs` | `licenses:check` | Needs cargo and the network, which Workers Builds lacks. |
44
+ ```
35
45
 
36
46
  An exception that covers nothing is itself an error, `standard/stale-exception`, so the list shrinks when the repo catches up with the standard. An exception for `lint/anti-slop` or `lint/pending` names what it excuses, `<package dir>:<plugin>` or `<package dir>:<rule>`, and matches only that; one without, such as `where: "."`, would excuse a whole package and is an error, `standard/broad-exception`.
@@ -6,4 +6,4 @@ Files that pass `ts-standard` with no findings, to copy into a repo and rename.
6
6
  - `workspace/`: a workspace repo with a root catalog and three packages. `api` and `cli` depend on `effect` and add the `anti-slop-effect` plugin; `iac` deploys with Alchemy and does not. The root has `tsconfig.base.json` and an `oxlint.config.ts` that exports `base` and `antiSlopEffect`.
7
7
  - `github/`: `dependabot.yml` and a tag-triggered `release.yml` for the workspace's `cli`. `ci.yml` is `reference/ci.yml`.
8
8
 
9
- Add `standard.config.ts` only where a repo differs from the defaults; see `docs/configuration.md`.
9
+ Add `standard.config.ts` only where a repo differs from the defaults, and list its exceptions in a root `STANDARD.md`; see `docs/configuration.md`.
@@ -26,7 +26,7 @@
26
26
  "devDependencies": {
27
27
  "@cloudflare/oxlint-config": "0.2.0",
28
28
  "@effect/tsgo": "0.74.1",
29
- "@jfalava/ts-standard": "0.3.5",
29
+ "@jfalava/ts-standard": "0.3.6",
30
30
  "@oxlint/plugins": "1.95.0",
31
31
  "bun-types": "1.4.5",
32
32
  "oxfmt": "0.80.0",
@@ -11,7 +11,7 @@
11
11
  "build": {
12
12
  "@cloudflare/oxlint-config": "0.2.0",
13
13
  "@effect/tsgo": "0.74.1",
14
- "@jfalava/ts-standard": "0.3.5",
14
+ "@jfalava/ts-standard": "0.3.6",
15
15
  "@oxlint/plugins": "1.95.0",
16
16
  "bun-types": "1.4.5",
17
17
  "oxfmt": "0.80.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jfalava/ts-standard",
3
- "version": "0.3.5",
3
+ "version": "0.3.6",
4
4
  "description": "Checks a Bun repo against the TypeScript scripts and workflows standard: package.json scripts, pins, tsconfig, lint setup and GitHub workflows. Also ships the anti-slop oxlint plugins the standard uses.",
5
5
  "license": "MIT",
6
6
  "repository": {
package/src/config.ts CHANGED
@@ -12,7 +12,7 @@ export interface Exception {
12
12
  readonly where?: string;
13
13
  /** Script name, for script rules. Omit to match every script. */
14
14
  readonly script?: string;
15
- /** Why the repo differs. Keep it in step with the README's exceptions table. */
15
+ /** Why the repo differs. Keep it in step with the exceptions table in the repo's root `STANDARD.md`. */
16
16
  readonly why: string;
17
17
  }
18
18