Skip to content

Commit 79bc7e3

Browse files
authored
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.
1 parent 8cf47a8 commit 79bc7e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/rules/react-in-jsx-scope.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@ var Hello = <div>Hello {this.props.name}</div>;
4444

4545
If you are not using JSX, or if you are setting `React` as a global variable.
4646

47-
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"`).
47+
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"`).

0 commit comments

Comments
 (0)