Skip to content

Commit

Permalink
Update sort-prop-types.md
Browse files Browse the repository at this point in the history
  • Loading branch information
christophehurpeau authored Jul 23, 2018
1 parent 6e8dadb commit fa90fe5
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion docs/rules/sort-prop-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ class Component extends React.Component {
"callbacksLast": <boolean>,
"ignoreCase": <boolean>,
"requiredFirst": <boolean>,
"sortShapeProp": <boolean>
"sortShapeProp": <boolean>,
"noSortAlphabetically": <boolean>
}]
...
```
Expand Down Expand Up @@ -142,6 +143,20 @@ var Component = createReactClass({
...
});
```
### `noSortAlphabetically`

When `true`, alphabetical order is not enforced:

```js
var Component = createReactClass({
propTypes: {
barRequired: PropTypes.any.isRequired,
z: PropTypes.string,
a: PropTypes.number,
},
...
});
```

## When not to use

Expand Down

0 comments on commit fa90fe5

Please sign in to comment.