Skip to content

Commit

Permalink
[Docs] Pin link to code in react-in-jsx-scope docs
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
lencioni authored and ljharb committed Sep 21, 2021
1 parent 8cf47a8 commit eeb0144
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/rules/react-in-jsx-scope.md
Expand Up @@ -44,4 +44,4 @@ var Hello = <div>Hello {this.props.name}</div>;

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"`).
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 comments on commit eeb0144

Please sign in to comment.