We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32b751f commit 6b179edCopy full SHA for 6b179ed
lib/rules/sort-prop-types.js
@@ -166,7 +166,7 @@ module.exports = {
166
167
return {
168
CallExpression: function(node) {
169
- if (!sortShapeProp || !isShapeProp(node) || (!node.arguments && !node.arguments[0])) {
+ if (!sortShapeProp || !isShapeProp(node) || !(node.arguments && node.arguments[0])) {
170
return;
171
}
172
checkSorted(node.arguments[0].properties);
0 commit comments