packages/cli/src/transformers/integrations/ant-design.ts
Function transformer
has 116 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default async function transformer(file: FileInfo, api: API) {
const j = api.jscodeshift;
const source = j(file.source);
const refineElement = source.find(j.JSXElement, {
Function addAntDesignImports
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const addAntDesignImports = (j: JSCodeshift, source: Collection) => {
addOrUpdateImports(
j,
source,
"@refinedev/antd",