Skip to content

Commit 6a3b363

Browse files
committed
[Docs]: fix typo
1 parent ee00db7 commit 6a3b363

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

docs/rules/default-props-match-prop-types.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ MyStatelessComponent.propTypes = {
127127
};
128128

129129
MyStatelessComponent.defaultProps = {
130-
bar: 'some default'
130+
bar: 'some default'
131131
};
132132
```
133133

@@ -193,6 +193,7 @@ If you don't care about stray `defaultsProps` in your components, you can disabl
193193
- [require-default-props](./require-default-props.md)
194194

195195
# Resources
196+
196197
- [Official React documentation on defaultProps](https://facebook.github.io/react/docs/typechecking-with-proptypes.html#default-prop-values)
197198

198199
[PropTypes]: https://reactjs.org/docs/typechecking-with-proptypes.html

docs/rules/sort-prop-types.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ var Component = createReactClass({
1818
...
1919
});
2020
```
21+
2122
```jsx
2223
type Props = {
2324
z: number,
@@ -28,6 +29,7 @@ class Component extends React.Component<Props> {
2829
...
2930
}
3031
```
32+
3133
```jsx
3234
class Component extends React.Component {
3335
static propTypes = {
@@ -53,6 +55,7 @@ var Component = createReactClass({
5355
...
5456
});
5557
```
58+
5659
```jsx
5760
type Props = {
5861
a: string,
@@ -63,6 +66,7 @@ class Component extends React.Component<Props> {
6366
...
6467
}
6568
```
69+
6670
```jsx
6771
class Component extends React.Component {
6872
static propTypes = {
@@ -144,6 +148,7 @@ var Component = createReactClass({
144148
...
145149
});
146150
```
151+
147152
### `noSortAlphabetically`
148153

149154
When `true`, alphabetical order is not enforced:

0 commit comments

Comments
 (0)