packages/babel-plugin-transform-modules-commonjs/src/index.js
Function exit
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
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.
Function AssignmentExpression
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
AssignmentExpression(path) {
const left = path.get("left");
if (left.isIdentifier()) {
const localName = path.node.name;
if (localName !== "module" && localName !== "exports") return;