@eslint-react/jsx 0.8.13-beta.0 → 0.9.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1,9 +1,16 @@
1
- import { RuleContext } from '@eslint-react/shared';
2
1
  import { TSESTree } from '@typescript-eslint/types';
2
+ import { RuleContext } from '@eslint-react/shared';
3
3
  import { TSESTreeFunction } from '@eslint-react/ast';
4
4
  import { O } from '@eslint-react/tools';
5
5
  import { TSESTree as TSESTree$1 } from '@typescript-eslint/utils';
6
6
 
7
+ /**
8
+ * Returns the tag name associated with a JSXOpeningElement.
9
+ * @param node The visited JSXOpeningElement node object.
10
+ * @returns The element's tag name.
11
+ */
12
+ declare function elementType(node: TSESTree.JSXOpeningElement | TSESTree.JSXOpeningFragment): string;
13
+
7
14
  /**
8
15
  * Determines whether inside createElement's props.
9
16
  * @param node The AST node to check
@@ -69,13 +76,6 @@ declare const isCreateElementCall: CallFromPragmaPredicate;
69
76
  */
70
77
  declare const isCloneElementCall: CallFromPragmaPredicate;
71
78
 
72
- /**
73
- * Returns the tag name associated with a JSXOpeningElement.
74
- * @param node The visited JSXOpeningElement node object.
75
- * @returns The element's tag name.
76
- */
77
- declare function elementType(node: TSESTree.JSXOpeningElement | TSESTree.JSXOpeningFragment): string;
78
-
79
79
  declare const hdlAnimation: readonly ["onAnimationStart", "onAnimationEnd", "onAnimationIteration"];
80
80
  declare const hdlClipboard: readonly ["onCopy", "onCut", "onPaste"];
81
81
  declare const hdlComposition: readonly ["onCompositionEnd", "onCompositionStart", "onCompositionUpdate"];
package/dist/index.d.ts CHANGED
@@ -1,9 +1,16 @@
1
- import { RuleContext } from '@eslint-react/shared';
2
1
  import { TSESTree } from '@typescript-eslint/types';
2
+ import { RuleContext } from '@eslint-react/shared';
3
3
  import { TSESTreeFunction } from '@eslint-react/ast';
4
4
  import { O } from '@eslint-react/tools';
5
5
  import { TSESTree as TSESTree$1 } from '@typescript-eslint/utils';
6
6
 
7
+ /**
8
+ * Returns the tag name associated with a JSXOpeningElement.
9
+ * @param node The visited JSXOpeningElement node object.
10
+ * @returns The element's tag name.
11
+ */
12
+ declare function elementType(node: TSESTree.JSXOpeningElement | TSESTree.JSXOpeningFragment): string;
13
+
7
14
  /**
8
15
  * Determines whether inside createElement's props.
9
16
  * @param node The AST node to check
@@ -69,13 +76,6 @@ declare const isCreateElementCall: CallFromPragmaPredicate;
69
76
  */
70
77
  declare const isCloneElementCall: CallFromPragmaPredicate;
71
78
 
72
- /**
73
- * Returns the tag name associated with a JSXOpeningElement.
74
- * @param node The visited JSXOpeningElement node object.
75
- * @returns The element's tag name.
76
- */
77
- declare function elementType(node: TSESTree.JSXOpeningElement | TSESTree.JSXOpeningFragment): string;
78
-
79
79
  declare const hdlAnimation: readonly ["onAnimationStart", "onAnimationEnd", "onAnimationIteration"];
80
80
  declare const hdlClipboard: readonly ["onCopy", "onCut", "onPaste"];
81
81
  declare const hdlComposition: readonly ["onCompositionEnd", "onCompositionStart", "onCompositionUpdate"];