@eslint-react/jsx 1.9.0-beta.0 → 1.9.0-beta.3

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.js CHANGED
@@ -254,9 +254,8 @@ function isJSXValue(node, context, hint = DEFAULT_JSX_VALUE_HINT) {
254
254
  if (name === "undefined") return !(hint & JSXValueHint.SkipUndefinedLiteral);
255
255
  if (ast.isJSXTagNameExpression(node2)) return true;
256
256
  const initialScope = context.sourceCode.getScope(node2);
257
- const maybeVariable = _var.findVariable(name, initialScope);
258
257
  return tools.F.pipe(
259
- maybeVariable,
258
+ _var.findVariable(name, initialScope),
260
259
  tools.O.flatMap(_var.getVariableNode(0)),
261
260
  tools.O.exists((n) => isJSXValue(n, context, hint))
262
261
  );
package/dist/index.mjs CHANGED
@@ -232,9 +232,8 @@ function isJSXValue(node, context, hint = DEFAULT_JSX_VALUE_HINT) {
232
232
  if (name === "undefined") return !(hint & JSXValueHint.SkipUndefinedLiteral);
233
233
  if (isJSXTagNameExpression(node2)) return true;
234
234
  const initialScope = context.sourceCode.getScope(node2);
235
- const maybeVariable = findVariable(name, initialScope);
236
235
  return F.pipe(
237
- maybeVariable,
236
+ findVariable(name, initialScope),
238
237
  O.flatMap(getVariableNode(0)),
239
238
  O.exists((n) => isJSXValue(n, context, hint))
240
239
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/jsx",
3
- "version": "1.9.0-beta.0",
3
+ "version": "1.9.0-beta.3",
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": {
@@ -35,18 +35,18 @@
35
35
  "./package.json"
36
36
  ],
37
37
  "dependencies": {
38
- "@typescript-eslint/scope-manager": "^8.0.0",
39
- "@typescript-eslint/types": "^8.0.0",
40
- "@typescript-eslint/utils": "^8.0.0",
41
- "remeda": "^2.7.0",
38
+ "@typescript-eslint/scope-manager": "^8.0.1",
39
+ "@typescript-eslint/types": "^8.0.1",
40
+ "@typescript-eslint/utils": "^8.0.1",
41
+ "remeda": "^2.7.1",
42
42
  "ts-pattern": "^5.2.0",
43
- "@eslint-react/ast": "1.9.0-beta.0",
44
- "@eslint-react/tools": "1.9.0-beta.0",
45
- "@eslint-react/var": "1.9.0-beta.0",
46
- "@eslint-react/types": "1.9.0-beta.0"
43
+ "@eslint-react/ast": "1.9.0-beta.3",
44
+ "@eslint-react/tools": "1.9.0-beta.3",
45
+ "@eslint-react/types": "1.9.0-beta.3",
46
+ "@eslint-react/var": "1.9.0-beta.3"
47
47
  },
48
48
  "devDependencies": {
49
- "tsup": "8.2.4"
49
+ "tsup": "^8.2.4"
50
50
  },
51
51
  "scripts": {
52
52
  "build": "tsup",