From 98b8577bd9667c353c6fb4554ba86a8146c777c6 Mon Sep 17 00:00:00 2001 From: SXP-Simon Date: Thu, 14 May 2026 19:57:18 +0800 Subject: [PATCH 1/2] docs(/learn/react-compiler/installation): fix link range for eslint-plugin-react-hooks installation instructions --- src/content/learn/react-compiler/installation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/learn/react-compiler/installation.md b/src/content/learn/react-compiler/installation.md index f4498ab77a..1db4dee05c 100644 --- a/src/content/learn/react-compiler/installation.md +++ b/src/content/learn/react-compiler/installation.md @@ -172,7 +172,7 @@ React 编译器包含一条 ESLint 规则,可帮助识别无法优化的代码 npm install -D eslint-plugin-react-hooks@latest -如果你尚未配置好 eslint-plugin-react-hooks,参考 [readme 的安装说明来进行配置](https://github.com/facebook/react/blob/main/packages/eslint-plugin-react-hooks/README.md#installation)。编译器规则可在 `recommended-latest` 预设中找到。 +如果你尚未配置好 eslint-plugin-react-hooks,参考 [readme 的安装说明](https://github.com/facebook/react/blob/main/packages/eslint-plugin-react-hooks/README.md#installation)来进行配置。编译器规则可在 `recommended-latest` 预设中找到。 ESLint 规则将会: - 识别对 [React 规则](/reference/rules) 的违反情况 From 1397e7d222959ce5f8cc24157e46bc416b60c1ad Mon Sep 17 00:00:00 2001 From: Helian Nuits Date: Fri, 15 May 2026 10:15:19 +0800 Subject: [PATCH 2/2] Update installation.md --- src/content/learn/react-compiler/installation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/learn/react-compiler/installation.md b/src/content/learn/react-compiler/installation.md index 1db4dee05c..d1f70a94b3 100644 --- a/src/content/learn/react-compiler/installation.md +++ b/src/content/learn/react-compiler/installation.md @@ -172,7 +172,7 @@ React 编译器包含一条 ESLint 规则,可帮助识别无法优化的代码 npm install -D eslint-plugin-react-hooks@latest -如果你尚未配置好 eslint-plugin-react-hooks,参考 [readme 的安装说明](https://github.com/facebook/react/blob/main/packages/eslint-plugin-react-hooks/README.md#installation)来进行配置。编译器规则可在 `recommended-latest` 预设中找到。 +如果你尚未配置好 eslint-plugin-react-hooks,参考 [readme 的安装说明](https://github.com/facebook/react/blob/main/packages/eslint-plugin-react-hooks/README.md#installation) 来进行配置。编译器规则可在 `recommended-latest` 预设中找到。 ESLint 规则将会: - 识别对 [React 规则](/reference/rules) 的违反情况