Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: CI で textlint のエラーを検知できるようにし検知したドキュメントの表現を修正する #1018

Merged
merged 2 commits into from
Mar 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion adev-ja/src/content/guide/zoneless.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ await fixture.whenStable();
可能な限り`fixture.detectChanges()`の使用を避けてください。これにより、
Angularが変更検知をスケジュールしていない場合に、
変更検知が強制的に実行されます。テストでは、これらの通知が発生していることを確認し、
テストで手動で強制的に発生させるのではなく
手動で強制的に発生させるのではなく
Angularが状態を同期するタイミングを処理できるようにする必要があります。

### 更新が検出されることを確認するためのデバッグモードチェック
Expand Down
6 changes: 5 additions & 1 deletion tools/lint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,12 @@ async function main() {
process.env.FORCE_COLOR = '1';

const files = await getTranslatedFiles();
const { stdout } = await $$`textlint ${fix ? ['--fix'] : []} ${files}`;
const { stdout, failed } = await $$`textlint ${fix ? ['--fix'] : []} ${files}`;
consola.log(stdout.replace('textlint --fix [file]', 'yarn lint --fix'));

if (failed) {
process.exit(1);
}
}

/**
Expand Down