eslint-plugin-react-web-api 5.21.1 → 5.21.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 +3 -3
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -27,7 +27,7 @@ var __exportAll = (all, no_symbols) => {
|
|
|
27
27
|
//#endregion
|
|
28
28
|
//#region package.json
|
|
29
29
|
var name$1 = "eslint-plugin-react-web-api";
|
|
30
|
-
var version = "5.21.
|
|
30
|
+
var version = "5.21.3";
|
|
31
31
|
|
|
32
32
|
//#endregion
|
|
33
33
|
//#region src/utils/create-rule.ts
|
|
@@ -853,7 +853,7 @@ function create$3(context) {
|
|
|
853
853
|
const dEntries = [];
|
|
854
854
|
return {
|
|
855
855
|
["CallExpression"](node) {
|
|
856
|
-
if (
|
|
856
|
+
if (Traverse.findParent(node, (n) => isUseEffectSetupCallback(n) || isUseEffectCleanupCallback(n)) == null) return;
|
|
857
857
|
const callee = Extract.unwrap(node.callee);
|
|
858
858
|
if (callee.type !== AST_NODE_TYPES.MemberExpression) return;
|
|
859
859
|
const { object } = callee;
|
|
@@ -1046,7 +1046,7 @@ function create$1(context) {
|
|
|
1046
1046
|
const dEntries = [];
|
|
1047
1047
|
return {
|
|
1048
1048
|
["CallExpression"](node) {
|
|
1049
|
-
if (
|
|
1049
|
+
if (Traverse.findParent(node, (n) => isUseEffectSetupCallback(n) || isUseEffectCleanupCallback(n)) == null) return;
|
|
1050
1050
|
const callee = Extract.unwrap(node.callee);
|
|
1051
1051
|
if (callee.type !== AST_NODE_TYPES.MemberExpression) return;
|
|
1052
1052
|
const { object } = callee;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-web-api",
|
|
3
|
-
"version": "5.21.
|
|
3
|
+
"version": "5.21.3",
|
|
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.21.
|
|
41
|
-
"@eslint-react/core": "5.21.
|
|
42
|
-
"@eslint-react/eslint": "5.21.
|
|
43
|
-
"@eslint-react/shared": "5.21.
|
|
44
|
-
"@eslint-react/var": "5.21.
|
|
40
|
+
"@eslint-react/ast": "5.21.3",
|
|
41
|
+
"@eslint-react/core": "5.21.3",
|
|
42
|
+
"@eslint-react/eslint": "5.21.3",
|
|
43
|
+
"@eslint-react/shared": "5.21.3",
|
|
44
|
+
"@eslint-react/var": "5.21.3",
|
|
45
45
|
"@typescript-eslint/types": "^8.70.1",
|
|
46
46
|
"@typescript-eslint/utils": "^8.70.1",
|
|
47
47
|
"ts-pattern": "^5.9.0"
|