fbredius/storybook

View on GitHub
lib/cli/src/add.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function postinstallAddon has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const postinstallAddon = async (addonName: string, isOfficialAddon: boolean) => {
  let skipMsg = null;
  if (!isOfficialAddon) {
    skipMsg = 'unofficial addon';
  } else if (!fs.existsSync('.storybook')) {
Severity: Minor
Found in lib/cli/src/add.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status