fbredius/storybook

View on GitHub
addons/docs/src/frameworks/react/extractArgTypes.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function extractArgTypes has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const extractArgTypes: ArgTypesExtractor = (component) => {
  if (component) {
    const { rows } = extractProps(component);
    if (rows) {
      return rows.reduce((acc: StrictArgTypes, row: PropDef) => {
Severity: Minor
Found in addons/docs/src/frameworks/react/extractArgTypes.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status