We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5194c50 + dbdd689 commit 9842eb6Copy full SHA for 9842eb6
lib/rules/display-name.js
@@ -158,6 +158,10 @@ module.exports = function(context) {
158
ObjectExpression: function(node) {
159
// Search for the displayName declaration
160
node.properties.forEach(function(property) {
161
+ if (!property.key) {
162
+ return;
163
+ }
164
+
165
if (!isDisplayNameDeclaration(property.key)) {
166
return;
167
}
lib/rules/jsx-sort-prop-types.js
@@ -81,6 +81,10 @@ module.exports = function(context) {
81
82
83
84
85
86
87
88
if (!isPropTypesDeclaration(property.key)) {
89
90
0 commit comments