From 30b98ba02e1879c3ce9b77a593b4d6751c31d2ac Mon Sep 17 00:00:00 2001 From: Kai Date: Sat, 1 Jan 2022 16:04:17 +0000 Subject: [PATCH] More HTTP => HTTPS --- docs/rules/jsx-curly-spacing.md | 2 +- docs/rules/jsx-uses-vars.md | 2 +- docs/rules/no-render-return-value.md | 2 +- docs/rules/no-unused-prop-types.md | 2 +- docs/rules/prefer-stateless-function.md | 2 +- docs/rules/prop-types.md | 2 +- docs/rules/require-default-props.md | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/rules/jsx-curly-spacing.md b/docs/rules/jsx-curly-spacing.md index 2a533195e3..9f428f5d81 100644 --- a/docs/rules/jsx-curly-spacing.md +++ b/docs/rules/jsx-curly-spacing.md @@ -219,7 +219,7 @@ Examples of **correct** code for this rule, when configured with `"never"` and ` ; ``` -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. +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. ### Shorthand options diff --git a/docs/rules/jsx-uses-vars.md b/docs/rules/jsx-uses-vars.md index a0238f6ff1..4a5e5f1766 100644 --- a/docs/rules/jsx-uses-vars.md +++ b/docs/rules/jsx-uses-vars.md @@ -1,6 +1,6 @@ # Prevent variables used in JSX to be incorrectly marked as unused (react/jsx-uses-vars) -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. +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. This rule only has an effect when the `no-unused-vars` rule is enabled. diff --git a/docs/rules/no-render-return-value.md b/docs/rules/no-render-return-value.md index b528251d14..319bfd142b 100644 --- a/docs/rules/no-render-return-value.md +++ b/docs/rules/no-render-return-value.md @@ -1,6 +1,6 @@ # Prevent usage of the return value of ReactDOM.render (react/no-render-return-value) -> `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. +> `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. Source: [ReactDOM documentation](https://facebook.github.io/react/docs/react-dom.html#render) diff --git a/docs/rules/no-unused-prop-types.md b/docs/rules/no-unused-prop-types.md index c9950dbfc5..6ca79d46cc 100644 --- a/docs/rules/no-unused-prop-types.md +++ b/docs/rules/no-unused-prop-types.md @@ -140,5 +140,5 @@ AComponent.propTypes = { ``` [PropTypes]: https://reactjs.org/docs/typechecking-with-proptypes.html -[TypeScript]: http://www.typescriptlang.org/ +[TypeScript]: https://www.typescriptlang.org/ [Flow]: https://flow.org/ diff --git a/docs/rules/prefer-stateless-function.md b/docs/rules/prefer-stateless-function.md index 8c2ede9275..9e283c2652 100644 --- a/docs/rules/prefer-stateless-function.md +++ b/docs/rules/prefer-stateless-function.md @@ -6,7 +6,7 @@ Stateless functional components are simpler than class based components and will This rule will check your class based React components for -* 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)) +* 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)) * instance property other than `this.props` and `this.context` * extension of `React.PureComponent` (if the `ignorePureComponents` flag is true) * presence of `ref` attribute in JSX diff --git a/docs/rules/prop-types.md b/docs/rules/prop-types.md index ce0b1e8f32..2eb2a7fd87 100644 --- a/docs/rules/prop-types.md +++ b/docs/rules/prop-types.md @@ -176,5 +176,5 @@ For now we should detect components created with: * an ES6 class that inherit from `React.Component` or `Component` [PropTypes]: https://reactjs.org/docs/typechecking-with-proptypes.html -[TypeScript]: http://www.typescriptlang.org/ +[TypeScript]: https://www.typescriptlang.org/ [Flow]: https://flow.org/ diff --git a/docs/rules/require-default-props.md b/docs/rules/require-default-props.md index 8feaaf477d..7857710c71 100644 --- a/docs/rules/require-default-props.md +++ b/docs/rules/require-default-props.md @@ -348,5 +348,5 @@ If you don't care about using `defaultProps` for your component's props that are - [Official React documentation on defaultProps](https://facebook.github.io/react/docs/typechecking-with-proptypes.html#default-prop-values) [PropTypes]: https://reactjs.org/docs/typechecking-with-proptypes.html -[TypeScript]: http://www.typescriptlang.org/ +[TypeScript]: https://www.typescriptlang.org/ [Flow]: https://flow.org/