@yuu1111/quality-check 0.5.0 → 0.6.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.
package/README.ja.md CHANGED
@@ -72,7 +72,7 @@ engineは `biome` → `typecheck` → `knip` → `comment-check` → `document-s
72
72
  | engine | 起動するcommand | 受け取る条件 |
73
73
  |--------|-----------------|--------------|
74
74
  | `biome` | `biome check` | `targets`、`args` 除外pathは `biome.json` が持つ |
75
- | `typecheck` | `tsc --noEmit` | `args` 設定は `tsconfig.json` が持つ |
75
+ | `typecheck` | `tsc --noEmit` | `args`、`projects` 設定は `tsconfig.json` が持つ |
76
76
  | `knip` | `knip` | `args` 設定は `knip.ts` が持つ |
77
77
  | `comment-check` | `comment-check --json` | `ignore`、`targets`、`args` |
78
78
  | `document-style-check` | `document-style-check lint --json` | `ignore`、`targets`、`args` |
@@ -109,10 +109,9 @@ biome: ignore skipped (biome.json holds its settings)
109
109
 
110
110
  Biome、型検査、Knipの設定は `biome.json`、`tsconfig.json`、`knip.ts` が持つ このCLIは同じfileからengineの起動と結果の集約だけを行う
111
111
 
112
- `comment-check` はbaseline差分を無効化する未作成のpathを渡して起動する 新規と解消済みの判定はengineごとではなく統合CLI1つのbaseline fileで行うため、既存の `comment-baseline.json` がある場合は `--update-baseline` で移す
112
+ engineのbinaryは利用Projectの `node_modules/.bin` から実行時に解決する engineを自分のscriptから呼ばないProjectではKnip`@yuu1111/comment-check` などを未使用依存として報告するため `knip.ts` `ignoreDependencies` で理由付きに宣言する
113
113
 
114
- `typecheck` は `tsc --noEmit` を回すだけなので、tsconfigを複数持つProjectは対象のtsconfigごとに起動する必要がある
114
+ `comment-check` はbaseline差分を無効化する未作成のpathを渡して起動する 新規と解消済みの判定はengineごとではなく統合CLIが1つのbaseline fileで行うため、既存の `comment-baseline.json` がある場合は `--update-baseline` で移す
115
115
 
116
- ## License
116
+ `typecheck` は `projects` に並べたtsconfigごとに `tsc --noEmit -p <path>` を起動する 省略時はカレントの `tsconfig.json` を1回だけ読み、`args` はすべての起動へ足す
117
117
 
118
- MIT
package/README.md CHANGED
@@ -78,7 +78,7 @@ engine in `config`. Each engine runs:
78
78
  | Engine | Command | Conditions |
79
79
  |--------|---------|------------|
80
80
  | `biome` | `biome check` | `targets`, `args`; `biome.json` holds the excluded paths |
81
- | `typecheck` | `tsc --noEmit` | `args`; `tsconfig.json` holds the settings |
81
+ | `typecheck` | `tsc --noEmit` | `args`, `projects`; `tsconfig.json` holds the settings |
82
82
  | `knip` | `knip` | `args`; `knip.ts` holds the settings |
83
83
  | `comment-check` | `comment-check --json` | `ignore`, `targets`, `args` |
84
84
  | `document-style-check` | `document-style-check lint --json` | `ignore`, `targets`, `args` |
@@ -122,14 +122,16 @@ Biome, the type checker, and Knip keep their settings in `biome.json`,
122
122
  `tsconfig.json`, and `knip.ts`. This CLI starts the engines from one file and
123
123
  aggregates the results.
124
124
 
125
+ An engine binary is resolved at run time from the `node_modules/.bin` of the
126
+ project. A project that never calls an engine from its own scripts therefore
127
+ sees Knip report `@yuu1111/comment-check` and its siblings as unused
128
+ dependencies, so it declares them in `ignoreDependencies` with the reason.
129
+
125
130
  `comment-check` runs with an unwritten baseline path so that it reports every
126
131
  finding. The new-and-resolved diff is done by this CLI from a single baseline
127
132
  file, so an existing `comment-baseline.json` is moved over with
128
133
  `--update-baseline`.
129
134
 
130
- `typecheck` only runs `tsc --noEmit`, so a project with more than one tsconfig
131
- has to start it once per target.
132
-
133
- ## License
134
-
135
- MIT
135
+ `typecheck` starts `tsc --noEmit -p <path>` once per path in `projects`. Without
136
+ it the current `tsconfig.json` is read once, and `args` are added to every
137
+ start.