Skip to content

Commit cdab529

Browse files
authored
fix: CI で textlint のエラーを検知できるようにし検知したドキュメントの表現を修正する (angular#1018)
* fix(ci): textlintで違反を検知した場合は終了コード1を返す * docs(lint): 冗長な表現を削除する
1 parent 1d75ebc commit cdab529

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

adev-ja/src/content/guide/zoneless.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ await fixture.whenStable();
119119
可能な限り`fixture.detectChanges()`の使用を避けてください。これにより、
120120
Angularが変更検知をスケジュールしていない場合に、
121121
変更検知が強制的に実行されます。テストでは、これらの通知が発生していることを確認し、
122-
テストで手動で強制的に発生させるのではなく
122+
手動で強制的に発生させるのではなく
123123
Angularが状態を同期するタイミングを処理できるようにする必要があります。
124124

125125
### 更新が検出されることを確認するためのデバッグモードチェック

tools/lint.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,12 @@ async function main() {
2424
process.env.FORCE_COLOR = '1';
2525

2626
const files = await getTranslatedFiles();
27-
const { stdout } = await $$`textlint ${fix ? ['--fix'] : []} ${files}`;
27+
const { stdout, failed } = await $$`textlint ${fix ? ['--fix'] : []} ${files}`;
2828
consola.log(stdout.replace('textlint --fix [file]', 'yarn lint --fix'));
29+
30+
if (failed) {
31+
process.exit(1);
32+
}
2933
}
3034

3135
/**

0 commit comments

Comments
 (0)