You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add support for `PureComponent` in [`prefer-stateless-function`][] ([#781][]@tiemevanveen)
2190
2192
2191
2193
### Fixed
2192
-
* Fix [`jsx-uses-vars`][] to work better with [`prefer-const`](http://eslint.org/docs/rules/prefer-const). You'll need to upgrade to ESLint 3.4.0 to completely fix the compatibility issue ([#716][])
2194
+
* Fix [`jsx-uses-vars`][] to work better with [`prefer-const`](https://eslint.org/docs/rules/prefer-const). You'll need to upgrade to ESLint 3.4.0 to completely fix the compatibility issue ([#716][])
Copy file name to clipboardExpand all lines: README.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -262,11 +262,11 @@ This pairs well with the `eslint:all` rule.
262
262
}
263
263
```
264
264
265
-
**Note**: These configurations will import `eslint-plugin-react` and enable JSX in [parser options](http://eslint.org/docs/user-guide/configuring#specifying-parser-options).
265
+
**Note**: These configurations will import `eslint-plugin-react` and enable JSX in [parser options](https://eslint.org/docs/user-guide/configuring/language-options#specifying-parser-options).
266
266
267
267
# License
268
268
269
-
`eslint-plugin-react` is licensed under the [MIT License](http://www.opensource.org/licenses/mit-license.php).
269
+
`eslint-plugin-react` is licensed under the [MIT License](https://opensource.org/licenses/mit-license.php).
Copy file name to clipboardExpand all lines: docs/rules/jsx-curly-spacing.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -219,7 +219,7 @@ Examples of **correct** code for this rule, when configured with `"never"` and `
219
219
<App blah={3} foo={ {bar:true, baz:true} } />;
220
220
```
221
221
222
-
Please note that spacing of the object literal curly braces themselves is controlled by the built-in [`object-curly-spacing`](http://eslint.org/docs/rules/object-curly-spacing) rule.
222
+
Please note that spacing of the object literal curly braces themselves is controlled by the built-in [`object-curly-spacing`](https://eslint.org/docs/rules/object-curly-spacing) rule.
Copy file name to clipboardExpand all lines: docs/rules/jsx-uses-vars.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Prevent variables used in JSX to be incorrectly marked as unused (react/jsx-uses-vars)
2
2
3
-
Since 0.17.0 the `eslint``no-unused-vars` rule does not detect variables used in JSX ([see details](http://eslint.org/blog/2015/03/eslint-0.17.0-released#changes-to-jsxreact-handling)). This rule will find variables used in JSX and mark them as used.
3
+
Since 0.17.0 the `eslint``no-unused-vars` rule does not detect variables used in JSX ([see details](https://eslint.org/blog/2015/03/eslint-0.17.0-released#changes-to-jsxreact-handling)). This rule will find variables used in JSX and mark them as used.
4
4
5
5
This rule only has an effect when the `no-unused-vars` rule is enabled.
Copy file name to clipboardExpand all lines: docs/rules/no-render-return-value.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Prevent usage of the return value of ReactDOM.render (react/no-render-return-value)
2
2
3
-
> `ReactDOM.render()` currently returns a reference to the root `ReactComponent` instance. However, using this return value is legacy and should be avoided because future versions of React may render components asynchronously in some cases. If you need a reference to the root `ReactComponent` instance, the preferred solution is to attach a [callback ref](http://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute) to the root element.
3
+
> `ReactDOM.render()` currently returns a reference to the root `ReactComponent` instance. However, using this return value is legacy and should be avoided because future versions of React may render components asynchronously in some cases. If you need a reference to the root `ReactComponent` instance, the preferred solution is to attach a [callback ref](https://reactjs.org/docs/refs-and-the-dom.html#callback-refs) to the root element.
Copy file name to clipboardExpand all lines: docs/rules/prefer-stateless-function.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ Stateless functional components are simpler than class based components and will
6
6
7
7
This rule will check your class based React components for
8
8
9
-
* methods/properties other than `displayName`, `propTypes`, `contextTypes`, `defaultProps`, `render` and useless constructor (same detection as `eslint`[no-useless-constructor rule](http://eslint.org/docs/rules/no-useless-constructor))
9
+
* methods/properties other than `displayName`, `propTypes`, `contextTypes`, `defaultProps`, `render` and useless constructor (same detection as `eslint`[no-useless-constructor rule](https://eslint.org/docs/rules/no-useless-constructor))
10
10
* instance property other than `this.props` and `this.context`
11
11
* extension of `React.PureComponent` (if the `ignorePureComponents` flag is true)
0 commit comments