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
Install [ESLint](https://www.github.com/eslint/eslint) either locally or globally. (Note that locally, per project, is strongly preferred)
10
+
Install [`eslint`](https://www.github.com/eslint/eslint) either locally or globally. (Note that locally, per project, is strongly preferred)
11
11
12
12
```sh
13
13
$ npm install eslint --save-dev
14
14
```
15
15
16
-
If you installed `ESLint` globally, you have to install React plugin globally too. Otherwise, install it locally.
16
+
If you installed `eslint` globally, you have to install React plugin globally too. Otherwise, install it locally.
17
17
18
18
```sh
19
19
$ npm install eslint-plugin-react --save-dev
@@ -92,7 +92,7 @@ Add "react" to the plugins section.
92
92
93
93
Enable JSX support.
94
94
95
-
With ESLint 2+
95
+
With `eslint` 2+
96
96
97
97
```json
98
98
{
@@ -244,7 +244,7 @@ To enable this configuration use the `extends` property in your `.eslintrc` conf
244
244
}
245
245
```
246
246
247
-
See [ESLint documentation](https://eslint.org/docs/user-guide/configuring/configuration-files#extending-configuration-files) for more information about extending configuration files.
247
+
See [`eslint` documentation](https://eslint.org/docs/user-guide/configuring/configuration-files#extending-configuration-files) for more information about extending configuration files.
248
248
249
249
## All
250
250
@@ -264,7 +264,7 @@ This pairs well with the `eslint:all` rule.
264
264
265
265
# License
266
266
267
-
ESLint-plugin-React is licensed under the [MIT License](http://www.opensource.org/licenses/mit-license.php).
267
+
`eslint-plugin-react` is licensed under the [MIT License](http://www.opensource.org/licenses/mit-license.php).
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](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.
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/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](http://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