File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -17,9 +17,11 @@ This change log adheres to standards from [Keep a CHANGELOG](https://keepachange
17
17
### Changed
18
18
* [ readme] remove global usage and eslint version from readme ([ #3254 ] [ ] @aladdin-add )
19
19
* [ Refactor] fix linter errors ([ #3261 ] [ ] @golopot )
20
+ * [ Docs] [ ` no-unused-prop-types ` ] : fix syntax errors ([ #3259 ] [ ] @mrdulin )
20
21
21
22
[ #3261 ] : https://github.com/yannickcr/eslint-plugin-react/pull/3261
22
23
[ #3260 ] : https://github.com/yannickcr/eslint-plugin-react/pull/3260
24
+ [ #3259 ] : https://github.com/yannickcr/eslint-plugin-react/pull/3259
23
25
[ #3254 ] : https://github.com/yannickcr/eslint-plugin-react/pull/3254
24
26
[ #3251 ] : https://github.com/yannickcr/eslint-plugin-react/pull/3251
25
27
[ #3244 ] : https://github.com/yannickcr/eslint-plugin-react/pull/3244
Original file line number Diff line number Diff line change @@ -15,18 +15,18 @@ class Hello extends React.Component {
15
15
render () {
16
16
return < div> Hello Bob< / div> ;
17
17
}
18
- });
18
+ }
19
19
20
20
Hello .propTypes = {
21
21
name: PropTypes .string
22
- },
22
+ };
23
23
```
24
24
25
25
``` jsx
26
26
type Props = {
27
- firstname: string,
28
- middlename: string, // middlename is never used by the Hello component
29
- lastname: string
27
+ firstname: string;
28
+ middlename: string; // middlename is never used by the Hello component
29
+ lastname: string;
30
30
}
31
31
32
32
class Hello extends React .Component < Props> {
@@ -62,11 +62,11 @@ class Hello extends React.Component {
62
62
render () {
63
63
return < div> Hello {this .props .name }< / div> ;
64
64
}
65
- };
65
+ }
66
66
67
- Hello .propTypes : {
67
+ Hello .propTypes = {
68
68
name: PropTypes .string
69
- },
69
+ };
70
70
```
71
71
72
72
## Rule Options
You can’t perform that action at this time.
0 commit comments