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
When `true` the rule ignores the case-sensitivity of the declarations order.
88
91
92
+
### `callbacksLast`
93
+
94
+
When `true`, prop types for props beginning with "on" must be listed after all other props:
95
+
96
+
```js
97
+
var Component =React.createClass({
98
+
propTypes: {
99
+
a:React.PropTypes.number,
100
+
z:React.PropTypes.string,
101
+
onBar:React.PropTypes.func,
102
+
onFoo:React.PropTypes.func,
103
+
},
104
+
...
105
+
});
106
+
```
107
+
89
108
## When not to use
90
109
91
110
This rule is a formatting preference and not following it won't negatively affect the quality of your code. If alphabetizing props declarations isn't a part of your coding standards, then you can leave this rule off.
This rule is a formatting preference and not following it won't negatively affect the quality of your code. If alphabetizing props isn't a part of your coding standards, then you can leave this rule off.
0 commit comments