@eslint-react/jsx
Advanced tools
Comparing version 0.8.12 to 0.8.13-beta.0
@@ -106,16 +106,2 @@ import { RuleContext } from '@eslint-react/shared'; | ||
declare function isFragmentElement(node: TSESTree.JSXElement, pragma: string, fragment: string): boolean; | ||
/** | ||
* Check if a JSXElement or JSXFragment has only one literal child and is not a child | ||
* @param node The AST node to check | ||
* @returns `true` if the node has only one literal child and is not a child | ||
* @example Somehow fragment like this is useful: <Foo content={<>ee eeee eeee ...</>} /> | ||
*/ | ||
declare function isFragmentWithOnlyTextAndIsNotChild(node: TSESTree.JSXElement | TSESTree.JSXFragment): boolean; | ||
/** | ||
* Check if a JSXElement or JSXFragment has less than two non-padding children and the first child is not a call expression | ||
* @param node The AST node to check | ||
* @returns boolean | ||
*/ | ||
declare function isFragmentHasLessThanTwoChildren(node: TSESTree.JSXElement | TSESTree.JSXFragment): boolean; | ||
declare function isFragmentWithSingleExpression(node: TSESTree.JSXElement | TSESTree.JSXFragment): boolean; | ||
@@ -250,2 +236,2 @@ /** | ||
export { type CallFromPragmaPredicate, JSXValueCheckHint, defaultJSXValueCheckHint, elementType, findPropInAttributes, findPropInProperties, getFragmentFromContext, getPragmaFromContext, getProp, getPropName, getPropValue, hasAnyProp, hasChildren, hasEveryProp, hasProp, hdlAnimation, hdlClipboard, hdlComposition, hdlFocus, hdlForm, hdlImage, hdlKeyboard, hdlMedia, hdlMouse, hdlScroll, hdlSelection, hdlTouch, hdlTransition, hdlWheel, isCallFromPragma, isChildOfJSXElement, isChildrenOfCreateElement, isCloneElementCall, isCreateElementCall, isFragment, isFragmentElement, isFragmentHasLessThanTwoChildren, isFragmentSyntax, isFragmentWithOnlyTextAndIsNotChild, isFragmentWithSingleExpression, isFunctionReturningJSXValue, isInitializedFromPragma, isInsideCreateElementProps, isInsidePropValue, isJSXElementOfBuiltinComponent, isJSXElementOfUserDefinedComponent, isJSXValue, isLineBreak, isLiteral, isPaddingSpaces, isPropertyOfPragma, isWhiteSpace, traverseUpProp }; | ||
export { type CallFromPragmaPredicate, JSXValueCheckHint, defaultJSXValueCheckHint, elementType, findPropInAttributes, findPropInProperties, getFragmentFromContext, getPragmaFromContext, getProp, getPropName, getPropValue, hasAnyProp, hasChildren, hasEveryProp, hasProp, hdlAnimation, hdlClipboard, hdlComposition, hdlFocus, hdlForm, hdlImage, hdlKeyboard, hdlMedia, hdlMouse, hdlScroll, hdlSelection, hdlTouch, hdlTransition, hdlWheel, isCallFromPragma, isChildOfJSXElement, isChildrenOfCreateElement, isCloneElementCall, isCreateElementCall, isFragment, isFragmentElement, isFragmentSyntax, isFunctionReturningJSXValue, isInitializedFromPragma, isInsideCreateElementProps, isInsidePropValue, isJSXElementOfBuiltinComponent, isJSXElementOfUserDefinedComponent, isJSXValue, isLineBreak, isLiteral, isPaddingSpaces, isPropertyOfPragma, isWhiteSpace, traverseUpProp }; |
{ | ||
"name": "@eslint-react/jsx", | ||
"version": "0.8.12", | ||
"version": "0.8.13-beta.0", | ||
"description": "ESLint x React's TSESTree AST utility module for static analysis of JSX.", | ||
@@ -37,12 +37,12 @@ "homepage": "https://github.com/rel1cx/eslint-react", | ||
"dependencies": { | ||
"@typescript-eslint/scope-manager": "6.13.0", | ||
"@typescript-eslint/types": "6.13.0", | ||
"@typescript-eslint/utils": "6.13.0" | ||
"@typescript-eslint/scope-manager": "6.13.1", | ||
"@typescript-eslint/types": "6.13.1", | ||
"@typescript-eslint/utils": "6.13.1" | ||
}, | ||
"devDependencies": { | ||
"micro-memoize": "4.1.2", | ||
"@eslint-react/ast": "0.8.12", | ||
"@eslint-react/shared": "0.8.12", | ||
"@eslint-react/types": "0.8.12", | ||
"@eslint-react/tools": "0.8.12" | ||
"@eslint-react/ast": "0.8.13-beta.0", | ||
"@eslint-react/types": "0.8.13-beta.0", | ||
"@eslint-react/tools": "0.8.13-beta.0", | ||
"@eslint-react/shared": "0.8.13-beta.0" | ||
}, | ||
@@ -49,0 +49,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
770879
23188
+ Added@typescript-eslint/scope-manager@6.13.1(transitive)
+ Added@typescript-eslint/types@6.13.1(transitive)
+ Added@typescript-eslint/typescript-estree@6.13.1(transitive)
+ Added@typescript-eslint/utils@6.13.1(transitive)
+ Added@typescript-eslint/visitor-keys@6.13.1(transitive)
- Removed@typescript-eslint/scope-manager@6.13.0(transitive)
- Removed@typescript-eslint/types@6.13.0(transitive)
- Removed@typescript-eslint/typescript-estree@6.13.0(transitive)
- Removed@typescript-eslint/utils@6.13.0(transitive)
- Removed@typescript-eslint/visitor-keys@6.13.0(transitive)