Skip to content

Commit fa90fe5

Browse files
Update sort-prop-types.md
1 parent 6e8dadb commit fa90fe5

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

docs/rules/sort-prop-types.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ class Component extends React.Component {
8383
"callbacksLast": <boolean>,
8484
"ignoreCase": <boolean>,
8585
"requiredFirst": <boolean>,
86-
"sortShapeProp": <boolean>
86+
"sortShapeProp": <boolean>,
87+
"noSortAlphabetically": <boolean>
8788
}]
8889
...
8990
```
@@ -142,6 +143,20 @@ var Component = createReactClass({
142143
...
143144
});
144145
```
146+
### `noSortAlphabetically`
147+
148+
When `true`, alphabetical order is not enforced:
149+
150+
```js
151+
var Component = createReactClass({
152+
propTypes: {
153+
barRequired: PropTypes.any.isRequired,
154+
z: PropTypes.string,
155+
a: PropTypes.number,
156+
},
157+
...
158+
});
159+
```
145160

146161
## When not to use
147162

0 commit comments

Comments
 (0)