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 16169d6 commit a54e7cdCopy full SHA for a54e7cd
lib/rules/boolean-prop-naming.js
@@ -175,7 +175,7 @@ module.exports = {
175
let newProptypes = proptypes;
176
newProptypes = newProptypes || [];
177
178
- newProptypes.forEach((prop) => {
+ (newProptypes || []).forEach((prop) => {
179
if (config.validateNested && nestedPropTypes(prop)) {
180
runCheck(prop.value.arguments[0].properties, addInvalidProp);
181
return;
0 commit comments