Skip to content

Commit a54e7cd

Browse files
committed
Addressed eslint-issues on boolean-prop-naming.js file
1 parent 16169d6 commit a54e7cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rules/boolean-prop-naming.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ module.exports = {
175175
let newProptypes = proptypes;
176176
newProptypes = newProptypes || [];
177177

178-
newProptypes.forEach((prop) => {
178+
(newProptypes || []).forEach((prop) => {
179179
if (config.validateNested && nestedPropTypes(prop)) {
180180
runCheck(prop.value.arguments[0].properties, addInvalidProp);
181181
return;

0 commit comments

Comments
 (0)