Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

lint: add tests for three caption rules that have none

オープン 初心者向け
#5,388 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@aron-intframe がすでに取り組んでいます。

2026年10月10日 から。

  • #5436 @aron-intframe による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
85/100
issue の種類
リファクタリング
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
bun, typescript
領域
testing-qa

調査の方向性

3つのルールは packages/lint/src/rules/captions.ts の90行目、171行目、212行目で定義されています。テストは packages/lint/src/rules/captions.test.ts に既存のテストと並べて追加してください。まず各ルールの条件を読み、そのルールを発動させる構成と、発動しないはずの近い変形を1つずつ書き、コードと重大度を検証します。caption_transcript_not_inline、caption_textshadow_on_group_container、caption_fittext_scale_mismatch のそれぞれに肯定テストと否定テストがあり、ルールを変更せずに bun run --cwd packages/lint test が通れば完了です。

索引モデルが issue の本文から書いたものです。

説明

difficulty/easy enhancement help wanted triage/ready

Problem

These lint rules have no test that mentions their code, so a change that breaks them would go unnoticed:

Code Severity Defined at
caption_transcript_not_inline error packages/lint/src/rules/captions.ts:90
caption_textshadow_on_group_container warning packages/lint/src/rules/captions.ts:171
caption_fittext_scale_mismatch warning packages/lint/src/rules/captions.ts:212

Tests go in packages/lint/src/rules/captions.test.ts.

Proposed solution

Add tests to the matching *.test.ts file next to each rule, following the style of the other tests in that file. For each rule, add at least:

  • one composition that triggers the finding, asserting the code and severity, and
  • one similar composition that should not trigger it.

Read the rule's code first: the condition it checks tells you what the minimal triggering composition looks like.

Acceptance criteria

  • Each code above is asserted by at least one positive and one negative test.
  • bun run --cwd packages/lint test passes.
  • No rule behaviour changes. If writing a test shows a rule misbehaving, note it in the PR or open a separate issue rather than changing the rule in the same PR.
主要言語
TypeScript
スター
54.1k
フォーク
4.9k
平均マージ
8時間 49分
マージ済み PR(30日)
667

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

heygen-com/hyperframes のほかの issue

heygen-com/hyperframes の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。