eslint-plugin-react-web-api 1.17.2-next.7 → 1.17.3-next.0
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 +5 -2
- package/dist/index.mjs +5 -2
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -35,7 +35,7 @@ var VAR2__namespace = /*#__PURE__*/_interopNamespace(VAR2);
|
|
|
35
35
|
|
|
36
36
|
// package.json
|
|
37
37
|
var name = "eslint-plugin-react-web-api";
|
|
38
|
-
var version = "1.17.
|
|
38
|
+
var version = "1.17.3-next.0";
|
|
39
39
|
var createRule = shared.createRuleForPlugin("web-api");
|
|
40
40
|
function getInstanceID(node, prev) {
|
|
41
41
|
switch (true) {
|
|
@@ -55,7 +55,10 @@ function getPhaseKindOfFunction(node) {
|
|
|
55
55
|
return tsPattern.match(node).when(core.isSetupFunction, () => tools.O.some("setup")).when(core.isCleanupFunction, () => tools.O.some("cleanup")).when(core.isComponentDidMountFunction, () => tools.O.some("mount")).when(core.isComponentWillUnmountFunction, () => tools.O.some("unmount")).otherwise(tools.O.none);
|
|
56
56
|
}
|
|
57
57
|
function isInstanceIDEqual(a, b, context) {
|
|
58
|
-
return AST2__namespace.isNodeEqual(a, b) || VAR2__namespace.isNodeValueEqual(a, b, [
|
|
58
|
+
return AST2__namespace.isNodeEqual(a, b) || VAR2__namespace.isNodeValueEqual(a, b, [
|
|
59
|
+
context.sourceCode.getScope(a),
|
|
60
|
+
context.sourceCode.getScope(b)
|
|
61
|
+
]);
|
|
59
62
|
}
|
|
60
63
|
var EventListenerEntry = tools.Data.taggedEnum();
|
|
61
64
|
var ObserverEntry = tools.Data.taggedEnum();
|
package/dist/index.mjs
CHANGED
|
@@ -11,7 +11,7 @@ import { AST_NODE_TYPES as AST_NODE_TYPES$1 } from '@typescript-eslint/types';
|
|
|
11
11
|
|
|
12
12
|
// package.json
|
|
13
13
|
var name = "eslint-plugin-react-web-api";
|
|
14
|
-
var version = "1.17.
|
|
14
|
+
var version = "1.17.3-next.0";
|
|
15
15
|
var createRule = createRuleForPlugin("web-api");
|
|
16
16
|
function getInstanceID(node, prev) {
|
|
17
17
|
switch (true) {
|
|
@@ -31,7 +31,10 @@ function getPhaseKindOfFunction(node) {
|
|
|
31
31
|
return match(node).when(isSetupFunction, () => O.some("setup")).when(isCleanupFunction, () => O.some("cleanup")).when(isComponentDidMountFunction, () => O.some("mount")).when(isComponentWillUnmountFunction, () => O.some("unmount")).otherwise(O.none);
|
|
32
32
|
}
|
|
33
33
|
function isInstanceIDEqual(a, b, context) {
|
|
34
|
-
return AST2.isNodeEqual(a, b) || VAR2.isNodeValueEqual(a, b, [
|
|
34
|
+
return AST2.isNodeEqual(a, b) || VAR2.isNodeValueEqual(a, b, [
|
|
35
|
+
context.sourceCode.getScope(a),
|
|
36
|
+
context.sourceCode.getScope(b)
|
|
37
|
+
]);
|
|
35
38
|
}
|
|
36
39
|
var EventListenerEntry = Data.taggedEnum();
|
|
37
40
|
var ObserverEntry = Data.taggedEnum();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-web-api",
|
|
3
|
-
"version": "1.17.
|
|
3
|
+
"version": "1.17.3-next.0",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for interacting with Web APIs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
"@typescript-eslint/utils": "^8.16.0",
|
|
48
48
|
"birecord": "^0.1.1",
|
|
49
49
|
"ts-pattern": "^5.5.0",
|
|
50
|
-
"@eslint-react/ast": "1.17.
|
|
51
|
-
"@eslint-react/
|
|
52
|
-
"@eslint-react/
|
|
53
|
-
"@eslint-react/
|
|
54
|
-
"@eslint-react/
|
|
55
|
-
"@eslint-react/
|
|
56
|
-
"@eslint-react/
|
|
50
|
+
"@eslint-react/ast": "1.17.3-next.0",
|
|
51
|
+
"@eslint-react/jsx": "1.17.3-next.0",
|
|
52
|
+
"@eslint-react/shared": "1.17.3-next.0",
|
|
53
|
+
"@eslint-react/core": "1.17.3-next.0",
|
|
54
|
+
"@eslint-react/tools": "1.17.3-next.0",
|
|
55
|
+
"@eslint-react/var": "1.17.3-next.0",
|
|
56
|
+
"@eslint-react/types": "1.17.3-next.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@types/react": "^18.3.12",
|