eslint-plugin-react-web-api
Advanced tools
Comparing version
@@ -59,3 +59,3 @@ 'use strict'; | ||
var name2 = "eslint-plugin-react-web-api"; | ||
var version = "1.52.3-beta.1"; | ||
var version = "1.52.3-beta.2"; | ||
var createRule = utils.ESLintUtils.RuleCreator(shared.getDocsUrl("web-api")); | ||
@@ -72,3 +72,3 @@ function getPhaseKindOfFunction(node) { | ||
// once: false, | ||
signal: eff._ | ||
signal: eff.unit | ||
}; | ||
@@ -89,3 +89,3 @@ function getCallKind(node) { | ||
function getSignalValueExpression(node, initialScope) { | ||
if (node == null) return eff._; | ||
if (node == null) return eff.unit; | ||
switch (node.type) { | ||
@@ -98,3 +98,3 @@ case utils.AST_NODE_TYPES.Identifier: { | ||
default: | ||
return eff._; | ||
return eff.unit; | ||
} | ||
@@ -107,3 +107,3 @@ } | ||
function getPropValue(prop, filter = (a) => true) { | ||
if (prop?.type !== utils.AST_NODE_TYPES.Property) return eff._; | ||
if (prop?.type !== utils.AST_NODE_TYPES.Property) return eff.unit; | ||
const { value } = prop; | ||
@@ -121,3 +121,3 @@ let v = value; | ||
} | ||
return filter(v) ? v : eff._; | ||
return filter(v) ? v : eff.unit; | ||
} | ||
@@ -141,3 +141,3 @@ function getOpts(node2) { | ||
const pSignal = findProp(node2.properties, "signal"); | ||
const vSignal = pSignal?.type === utils.AST_NODE_TYPES.Property ? getSignalValueExpression(pSignal.value, initialScope) : eff._; | ||
const vSignal = pSignal?.type === utils.AST_NODE_TYPES.Property ? getSignalValueExpression(pSignal.value, initialScope) : eff.unit; | ||
return { capture: vCapture, signal: vSignal }; | ||
@@ -144,0 +144,0 @@ } |
{ | ||
"name": "eslint-plugin-react-web-api", | ||
"version": "1.52.3-beta.1", | ||
"version": "1.52.3-beta.2", | ||
"description": "ESLint React's ESLint plugin for interacting with Web APIs", | ||
@@ -51,8 +51,8 @@ "keywords": [ | ||
"ts-pattern": "^5.7.1", | ||
"@eslint-react/ast": "1.52.3-beta.1", | ||
"@eslint-react/core": "1.52.3-beta.1", | ||
"@eslint-react/eff": "1.52.3-beta.1", | ||
"@eslint-react/kit": "1.52.3-beta.1", | ||
"@eslint-react/var": "1.52.3-beta.1", | ||
"@eslint-react/shared": "1.52.3-beta.1" | ||
"@eslint-react/ast": "1.52.3-beta.2", | ||
"@eslint-react/eff": "1.52.3-beta.2", | ||
"@eslint-react/kit": "1.52.3-beta.2", | ||
"@eslint-react/core": "1.52.3-beta.2", | ||
"@eslint-react/var": "1.52.3-beta.2", | ||
"@eslint-react/shared": "1.52.3-beta.2" | ||
}, | ||
@@ -59,0 +59,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
59277
0.07%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed