From 5c8990b5d3daca092cab2645172a0de5fb89dde5 Mon Sep 17 00:00:00 2001 From: Ahmad Faraz Date: Mon, 6 May 2024 18:02:27 +0500 Subject: [PATCH] fixed lint error --- packages/unminify/src/transformations/un-jsx.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/unminify/src/transformations/un-jsx.ts b/packages/unminify/src/transformations/un-jsx.ts index faf24c3a..c619040f 100644 --- a/packages/unminify/src/transformations/un-jsx.ts +++ b/packages/unminify/src/transformations/un-jsx.ts @@ -5,11 +5,11 @@ import { generateName } from '@wakaru/ast-utils/identifier' import { isNull, isTrue, isUndefined } from '@wakaru/ast-utils/matchers' import { removeDeclarationIfUnused } from '@wakaru/ast-utils/scope' import { nonNullable } from '@wakaru/shared/array' -import type { ASTTransformation } from '@wakaru/shared/rule' import { createJSCodeshiftTransformationRule } from '@wakaru/shared/rule' +import { z } from 'zod' +import type { ASTTransformation } from '@wakaru/shared/rule' import type { ExpressionKind, LiteralKind } from 'ast-types/lib/gen/kinds' import type { ASTNode, ASTPath, CallExpression, Collection, Identifier, JSCodeshift, JSXAttribute, JSXElement, JSXExpressionContainer, JSXFragment, JSXIdentifier, JSXMemberExpression, JSXSpreadAttribute, JSXSpreadChild, JSXText, MemberExpression, RestElement, SpreadElement, StringLiteral, VariableDeclarator } from 'jscodeshift' -import { z } from 'zod' export const Schema = z.object({ pragma: z.string().optional().describe('The pragma to use for JSX transformation.'),