@yuu1111/quality-check 0.7.0 → 0.7.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.
- package/README.ja.md +11 -4
- package/README.md +12 -4
- package/bin/cli.js +4 -0
- package/dist/cli.js +9 -1
- package/package.json +3 -2
package/README.ja.md
CHANGED
|
@@ -35,9 +35,16 @@ export default defineConfig({
|
|
|
35
35
|
"tsdoc-check": true,
|
|
36
36
|
},
|
|
37
37
|
config: {
|
|
38
|
-
"comment-check": {
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
"comment-check": {
|
|
39
|
+
enable: ["japanese-period"],
|
|
40
|
+
ignore: ["another-project"],
|
|
41
|
+
},
|
|
42
|
+
"document-style-check": {
|
|
43
|
+
enable: ["japanese-period"],
|
|
44
|
+
},
|
|
45
|
+
"tsdoc-check": {
|
|
46
|
+
error: ["missing-doc"],
|
|
47
|
+
},
|
|
41
48
|
},
|
|
42
49
|
});
|
|
43
50
|
```
|
|
@@ -68,7 +75,7 @@ quality-check: 1 of 3 engines failed
|
|
|
68
75
|
|
|
69
76
|
engineは `biome` → `typecheck` → `knip` → `comment-check` → `document-style-check` → `tsdoc-check` の順に実行する
|
|
70
77
|
|
|
71
|
-
`engines` は起動の委任だけを表し、起動条件は `config` のengineの下へ置く engineが受け取る条件は次のとおり
|
|
78
|
+
`engines` は起動の委任だけを表し、起動条件は `config` のengineの下へ置く engineごとの条件は複数行のobjectとして書き、ruleやoptionを足しても他のengineの行が動かないようにする engineが受け取る条件は次のとおり
|
|
72
79
|
|
|
73
80
|
| engine | 起動するcommand | 受け取る条件 |
|
|
74
81
|
|--------|-----------------|--------------|
|
package/README.md
CHANGED
|
@@ -38,9 +38,16 @@ export default defineConfig({
|
|
|
38
38
|
"tsdoc-check": true,
|
|
39
39
|
},
|
|
40
40
|
config: {
|
|
41
|
-
"comment-check": {
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
"comment-check": {
|
|
42
|
+
enable: ["japanese-period"],
|
|
43
|
+
ignore: ["another-project"],
|
|
44
|
+
},
|
|
45
|
+
"document-style-check": {
|
|
46
|
+
enable: ["japanese-period"],
|
|
47
|
+
},
|
|
48
|
+
"tsdoc-check": {
|
|
49
|
+
error: ["missing-doc"],
|
|
50
|
+
},
|
|
44
51
|
},
|
|
45
52
|
});
|
|
46
53
|
```
|
|
@@ -74,7 +81,8 @@ Engines run in the order `biome`, `typecheck`, `knip`, `comment-check`,
|
|
|
74
81
|
`document-style-check`, `tsdoc-check`.
|
|
75
82
|
|
|
76
83
|
`engines` only delegates the start-up, and the conditions belong under the
|
|
77
|
-
engine in `config`.
|
|
84
|
+
engine in `config`. Write an engine's conditions as a multi-line object, so a
|
|
85
|
+
new rule or option changes one engine's block alone. Each engine runs:
|
|
78
86
|
|
|
79
87
|
| Engine | Command | Conditions |
|
|
80
88
|
|--------|---------|------------|
|
package/bin/cli.js
ADDED
package/dist/cli.js
CHANGED
|
@@ -858,4 +858,12 @@ async function main(argv) {
|
|
|
858
858
|
}
|
|
859
859
|
return results.some((result) => result.status !== "passed") ? 1 : 0;
|
|
860
860
|
}
|
|
861
|
-
|
|
861
|
+
function run() {
|
|
862
|
+
runCli(main);
|
|
863
|
+
}
|
|
864
|
+
if (import.meta.main) {
|
|
865
|
+
run();
|
|
866
|
+
}
|
|
867
|
+
export {
|
|
868
|
+
run
|
|
869
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yuu1111/quality-check",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"description": "Integrated quality check runner",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
},
|
|
10
10
|
"type": "module",
|
|
11
11
|
"bin": {
|
|
12
|
-
"quality-check": "
|
|
12
|
+
"quality-check": "bin/cli.js"
|
|
13
13
|
},
|
|
14
14
|
"exports": {
|
|
15
15
|
".": "./src/config.ts",
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
},
|
|
18
18
|
"files": [
|
|
19
19
|
"README.ja.md",
|
|
20
|
+
"bin",
|
|
20
21
|
"src/config.ts",
|
|
21
22
|
"src/engines.ts",
|
|
22
23
|
"dist"
|