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