From 5b0f8b9113242703a37c6df5f26f735d8c5ba14a Mon Sep 17 00:00:00 2001 From: Soichiro Miki Date: Tue, 6 Oct 2026 11:53:20 +0900 Subject: [PATCH] Translate gating lint rule --- .../eslint-plugin-react-hooks/lints/gating.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/content/reference/eslint-plugin-react-hooks/lints/gating.md b/src/content/reference/eslint-plugin-react-hooks/lints/gating.md index 3bd662a86..54cf4b383 100644 --- a/src/content/reference/eslint-plugin-react-hooks/lints/gating.md +++ b/src/content/reference/eslint-plugin-react-hooks/lints/gating.md @@ -4,17 +4,17 @@ title: gating -Validates configuration of [gating mode](/reference/react-compiler/gating). +[ゲーティングモード](/reference/react-compiler/gating)の設定を検証します。 -## Rule Details {/*rule-details*/} +## ルールの詳細 {/*rule-details*/} -Gating mode lets you gradually adopt React Compiler by marking specific components for optimization. This rule ensures your gating configuration is valid so the compiler knows which components to process. +ゲーティングモードでは、特定のコンポーネントを最適化の対象として指定することで、React Compiler を段階的に導入できます。このルールは、ゲーティングの設定が有効であることを確認し、コンパイラがどのコンポーネントを処理すべきか判断できるようにします。 -### Invalid {/*invalid*/} +### 無効な例 {/*invalid*/} -Examples of incorrect code for this rule: +このルールに違反するコードの例です。 ```js // ❌ Missing required fields @@ -39,9 +39,9 @@ module.exports = { }; ``` -### Valid {/*valid*/} +### 有効な例 {/*valid*/} -Examples of correct code for this rule: +このルールに従ったコードの例です。 ```js // ✅ Complete gating configuration