From 79bc7e3e53c22521c8a109edb249e37f89e86c4a Mon Sep 17 00:00:00 2001 From: Joe Lencioni Date: Tue, 21 Sep 2021 13:15:47 -0500 Subject: [PATCH] Pin link to code in react-in-jsx-scope docs The lines have shifted since this was added, causing the incorrect range to be highlighted. We can fix this by pinning the link to a specific git SHA. --- docs/rules/react-in-jsx-scope.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/rules/react-in-jsx-scope.md b/docs/rules/react-in-jsx-scope.md index b3357dc671..8f0fc7598d 100644 --- a/docs/rules/react-in-jsx-scope.md +++ b/docs/rules/react-in-jsx-scope.md @@ -44,4 +44,4 @@ var Hello =
Hello {this.props.name}
; If you are not using JSX, or if you are setting `React` as a global variable. -If you are using the [new JSX transform from React 17](https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html#removing-unused-react-imports), you should disable this rule by extending [`react/jsx-runtime`](https://github.com/yannickcr/eslint-plugin-react/blob/HEAD/index.js#L163-L176) in your eslint config (add `"plugin:react/jsx-runtime"` to `"extends"`). \ No newline at end of file +If you are using the [new JSX transform from React 17](https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html#removing-unused-react-imports), you should disable this rule by extending [`react/jsx-runtime`](https://github.com/yannickcr/eslint-plugin-react/blob/8cf47a8ac2242ee00ea36eac4b6ae51956ba4411/index.js#L165-L179) in your eslint config (add `"plugin:react/jsx-runtime"` to `"extends"`).