@eslint-react/jsx 1.23.3-next.4 → 1.23.3-next.6

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
@@ -71,7 +71,7 @@ function getProp(props, propName, initialScope) {
71
71
  function getPropValue(attribute, initialScope) {
72
72
  if (attribute.type === types.AST_NODE_TYPES.JSXAttribute && "value" in attribute) {
73
73
  const { value } = attribute;
74
- if (value === null) {
74
+ if (value == null) {
75
75
  return eff.O.none();
76
76
  }
77
77
  if (value.type === types.AST_NODE_TYPES.Literal) {
@@ -214,7 +214,7 @@ function isJSXValue(node, jsxCtx, hint = DEFAULT_JSX_VALUE_HINT) {
214
214
  case "bigint":
215
215
  return !(hint & JSXValueHint.SkipBigIntLiteral);
216
216
  }
217
- if (node.value === null) {
217
+ if (node.value == null) {
218
218
  return !(hint & JSXValueHint.SkipNullLiteral);
219
219
  }
220
220
  return false;
package/dist/index.mjs CHANGED
@@ -48,7 +48,7 @@ function getProp(props, propName, initialScope) {
48
48
  function getPropValue(attribute, initialScope) {
49
49
  if (attribute.type === AST_NODE_TYPES.JSXAttribute && "value" in attribute) {
50
50
  const { value } = attribute;
51
- if (value === null) {
51
+ if (value == null) {
52
52
  return O.none();
53
53
  }
54
54
  if (value.type === AST_NODE_TYPES.Literal) {
@@ -191,7 +191,7 @@ function isJSXValue(node, jsxCtx, hint = DEFAULT_JSX_VALUE_HINT) {
191
191
  case "bigint":
192
192
  return !(hint & JSXValueHint.SkipBigIntLiteral);
193
193
  }
194
- if (node.value === null) {
194
+ if (node.value == null) {
195
195
  return !(hint & JSXValueHint.SkipNullLiteral);
196
196
  }
197
197
  return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/jsx",
3
- "version": "1.23.3-next.4",
3
+ "version": "1.23.3-next.6",
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": {
@@ -37,10 +37,10 @@
37
37
  "@typescript-eslint/types": "^8.19.1",
38
38
  "@typescript-eslint/utils": "^8.19.1",
39
39
  "ts-pattern": "^5.6.0",
40
- "@eslint-react/types": "1.23.3-next.4",
41
- "@eslint-react/var": "1.23.3-next.4",
42
- "@eslint-react/eff": "1.23.3-next.4",
43
- "@eslint-react/ast": "1.23.3-next.4"
40
+ "@eslint-react/ast": "1.23.3-next.6",
41
+ "@eslint-react/var": "1.23.3-next.6",
42
+ "@eslint-react/types": "1.23.3-next.6",
43
+ "@eslint-react/eff": "1.23.3-next.6"
44
44
  },
45
45
  "devDependencies": {
46
46
  "tsup": "^8.3.5",