yannickcr/eslint-plugin-react

View on GitHub
lib/rules/no-object-type-as-default-prop.js

Summary

Maintainability
A
1 hr
Test Coverage

Function verifyDefaultPropsDestructuring has 37 lines of code (exceeds 25 allowed). Consider refactoring.
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;
Severity: Minor
Found in lib/rules/no-object-type-as-default-prop.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status