packages/babel-plugin-transform-modules-commonjs/src/index.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function exit has 64 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        exit(path, state) {
          if (!isModule(path)) return;

          // Rename the bindings auto-injected into the scope so there is no
          // risk of conflict between the bindings.
Severity: Major
Found in packages/babel-plugin-transform-modules-commonjs/src/index.js - About 2 hrs to fix

    Function AssignmentExpression has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        AssignmentExpression(path) {
          const left = path.get("left");
          if (left.isIdentifier()) {
            const localName = path.node.name;
            if (localName !== "module" && localName !== "exports") return;
    Severity: Minor
    Found in packages/babel-plugin-transform-modules-commonjs/src/index.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status