fbredius/storybook

View on GitHub
lib/cli/scripts/generate-sb-packages-versions.js

Summary

Maintainability
A
1 hr
Test Coverage

Function run has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const run = async () => {
  const updatedVersion = process.argv[process.argv.length - 1];

  if (!semver.valid(updatedVersion)) throw new Error(`Invalid version: ${updatedVersion}`);

Severity: Minor
Found in lib/cli/scripts/generate-sb-packages-versions.js - About 1 hr to fix

    Parsing error: The keyword 'const' is reserved
    Open

    const { readJson, writeFile } = require('fs-extra');

    For more information visit Source: http://eslint.org/docs/rules/

    There are no issues that match your filters.

    Category
    Status