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 56b17ca commit c155bfdCopy full SHA for c155bfd
lib/rules/boolean-prop-naming.js
@@ -172,10 +172,7 @@ module.exports = {
172
* @param {Function} addInvalidProp callback to run for each error
173
*/
174
function runCheck(proptypes, addInvalidProp) {
175
- let newProptypes = proptypes;
176
- newProptypes = newProptypes || [];
177
-
178
- (newProptypes || []).forEach((prop) => {
+ (proptypes || []).forEach((prop) => {
179
if (config.validateNested && nestedPropTypes(prop)) {
180
runCheck(prop.value.arguments[0].properties, addInvalidProp);
181
return;
0 commit comments