packages/codemod/src/transformations/v4/metadata-to-meta.ts
Function metaDataToMeta
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const metaDataToMeta = (j: JSCodeshift, source: Collection) => {
// find all JSX elements
source.find(j.JSXElement).forEach((path) => {
const attributes = path.node.openingElement.attributes;
if (!attributes) return;