@eslint-react/jsx 0.10.0 → 0.10.1-beta.0

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.cjs CHANGED
@@ -675,10 +675,10 @@ function getProp(props, propName, context, initialScope) {
675
675
  * @param predicate The predicate to check each node
676
676
  * @returns prop node if found
677
677
  */ function traverseUpProp(node, predicate = tools.F.constTrue) {
678
- const matcher = (node)=>{
678
+ const guard = (node)=>{
679
679
  return node.type === ast.NodeType.JSXAttribute && predicate(node);
680
680
  };
681
- return ast.traverseUpGuard(node, matcher);
681
+ return ast.traverseUpGuard(node, guard);
682
682
  }
683
683
 
684
684
  /**
package/dist/index.js CHANGED
@@ -675,10 +675,10 @@ function getProp(props, propName, context, initialScope) {
675
675
  * @param predicate The predicate to check each node
676
676
  * @returns prop node if found
677
677
  */ function traverseUpProp(node, predicate = tools.F.constTrue) {
678
- const matcher = (node)=>{
678
+ const guard = (node)=>{
679
679
  return node.type === ast.NodeType.JSXAttribute && predicate(node);
680
680
  };
681
- return ast.traverseUpGuard(node, matcher);
681
+ return ast.traverseUpGuard(node, guard);
682
682
  }
683
683
 
684
684
  /**
package/dist/index.mjs CHANGED
@@ -673,10 +673,10 @@ function getProp(props, propName, context, initialScope) {
673
673
  * @param predicate The predicate to check each node
674
674
  * @returns prop node if found
675
675
  */ function traverseUpProp(node, predicate = F.constTrue) {
676
- const matcher = (node)=>{
676
+ const guard = (node)=>{
677
677
  return node.type === NodeType.JSXAttribute && predicate(node);
678
678
  };
679
- return traverseUpGuard(node, matcher);
679
+ return traverseUpGuard(node, guard);
680
680
  }
681
681
 
682
682
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/jsx",
3
- "version": "0.10.0",
3
+ "version": "0.10.1-beta.0",
4
4
  "description": "ESLint React's TSESTree AST utility module for static analysis of JSX.",
5
5
  "homepage": "https://github.com/rel1cx/eslint-react",
6
6
  "bugs": {
@@ -39,10 +39,10 @@
39
39
  "@typescript-eslint/types": "6.15.0",
40
40
  "@typescript-eslint/utils": "6.15.0",
41
41
  "micro-memoize": "4.1.2",
42
- "@eslint-react/shared": "0.10.0",
43
- "@eslint-react/ast": "0.10.0",
44
- "@eslint-react/tools": "0.10.0",
45
- "@eslint-react/types": "0.10.0"
42
+ "@eslint-react/ast": "0.10.1-beta.0",
43
+ "@eslint-react/shared": "0.10.1-beta.0",
44
+ "@eslint-react/tools": "0.10.1-beta.0",
45
+ "@eslint-react/types": "0.10.1-beta.0"
46
46
  },
47
47
  "scripts": {
48
48
  "build": "rollup -c rollup.config.ts --configPlugin swc3 && cp dist/index.d.ts dist/index.d.mts",