lib/rules/no-object-type-as-default-prop.js
Function verifyDefaultPropsDestructuring
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function verifyDefaultPropsDestructuring(context, properties) {
// Loop through each of the default params
properties.filter((prop) => prop.type === 'Property' && prop.value.type === 'AssignmentPattern').forEach((prop) => {
const propName = prop.key.name;
const propDefaultValue = prop.value;