eslint-plugin-react-web-api 5.30.0-beta.15 → 5.30.0-beta.16
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 +3 -3
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -20,7 +20,7 @@ var __exportAll = (all, no_symbols) => {
|
|
|
20
20
|
};
|
|
21
21
|
// package.json
|
|
22
22
|
var name$1 = "eslint-plugin-react-web-api";
|
|
23
|
-
var version = "5.30.0-beta.
|
|
23
|
+
var version = "5.30.0-beta.16";
|
|
24
24
|
// src/utils/create-rule.ts
|
|
25
25
|
function getDocsUrl(ruleName) {
|
|
26
26
|
return `https://eslint-react.xyz/docs/rules/web-api-${ruleName}`;
|
|
@@ -703,7 +703,7 @@ function create$3(context) {
|
|
|
703
703
|
if (dEntries.some((e) => !isInsideObserverCallback(e.node) && isInCleanupPhase(e.node) && isSameObserver(e.observer))) continue;
|
|
704
704
|
const matchedOEntries = oEntries.filter((e) => isSameObserver(e.observer));
|
|
705
705
|
const matchedUEntries = uEntries.filter((e) => isSameObserver(e.observer));
|
|
706
|
-
const isDynamic = or(Check.isCallExpression, Check.
|
|
706
|
+
const isDynamic = or(Check.isCallExpression, Check.isConditionalOrLoop);
|
|
707
707
|
if (matchedOEntries.some((e) => {
|
|
708
708
|
const entryPhaseNode = phaseNode ?? Traverse.findParent(e.node, isUseEffectCallback$3);
|
|
709
709
|
const isPhaseNode = (n) => n === entryPhaseNode;
|
|
@@ -955,7 +955,7 @@ function create$1(context) {
|
|
|
955
955
|
if (dEntries.some((e) => !isInsideObserverCallback(e.node) && isInCleanupPhase(e.node) && isSameObserver(e.observer))) continue;
|
|
956
956
|
const matchedOEntries = oEntries.filter((e) => isSameObserver(e.observer));
|
|
957
957
|
const matchedUEntries = uEntries.filter((e) => isSameObserver(e.observer));
|
|
958
|
-
const isDynamic = (node) => node?.type === AST_NODE_TYPES.CallExpression || Check.
|
|
958
|
+
const isDynamic = (node) => node?.type === AST_NODE_TYPES.CallExpression || Check.isConditionalOrLoop(node);
|
|
959
959
|
if (matchedOEntries.some((e) => {
|
|
960
960
|
const entryPhaseNode = phaseNode ?? Traverse.findParent(e.node, isUseEffectCallback$1);
|
|
961
961
|
const isPhaseNode = (node) => node === entryPhaseNode;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-web-api",
|
|
3
|
-
"version": "5.30.0-beta.
|
|
3
|
+
"version": "5.30.0-beta.16",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for interacting with Web APIs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -37,11 +37,11 @@
|
|
|
37
37
|
"dist"
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@eslint-react/ast": "5.30.0-beta.
|
|
41
|
-
"@eslint-react/core": "5.30.0-beta.
|
|
42
|
-
"@eslint-react/eslint": "5.30.0-beta.
|
|
43
|
-
"@eslint-react/shared": "5.30.0-beta.
|
|
44
|
-
"@eslint-react/var": "5.30.0-beta.
|
|
40
|
+
"@eslint-react/ast": "5.30.0-beta.16",
|
|
41
|
+
"@eslint-react/core": "5.30.0-beta.16",
|
|
42
|
+
"@eslint-react/eslint": "5.30.0-beta.16",
|
|
43
|
+
"@eslint-react/shared": "5.30.0-beta.16",
|
|
44
|
+
"@eslint-react/var": "5.30.0-beta.16",
|
|
45
45
|
"@typescript-eslint/types": "^8.72.1",
|
|
46
46
|
"@typescript-eslint/utils": "^8.72.1",
|
|
47
47
|
"ts-pattern": "^5.9.2"
|