eslint-plugin-react-web-api 1.24.0-next.16 → 1.24.0-next.17

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
@@ -32,7 +32,7 @@ var VAR2__namespace = /*#__PURE__*/_interopNamespace(VAR2);
32
32
 
33
33
  // package.json
34
34
  var name = "eslint-plugin-react-web-api";
35
- var version = "1.24.0-next.16";
35
+ var version = "1.24.0-next.17";
36
36
  var createRule = shared.createRuleForPlugin("web-api");
37
37
  function getInstanceID(node, prev) {
38
38
  switch (true) {
@@ -70,9 +70,9 @@ var defaultOptions = {
70
70
  };
71
71
  function getCallKind(node) {
72
72
  switch (true) {
73
- case (node.callee.type === utils.AST_NODE_TYPES.Identifier && tsPattern.isMatching(tsPattern.P.union("addEventListener", "removeEventListener", "abort"), node.callee.name)):
73
+ case (node.callee.type === utils.AST_NODE_TYPES.Identifier && tsPattern.isMatching(tsPattern.P.union("addEventListener", "removeEventListener", "abort"))(node.callee.name)):
74
74
  return node.callee.name;
75
- case (node.callee.type === utils.AST_NODE_TYPES.MemberExpression && node.callee.property.type === utils.AST_NODE_TYPES.Identifier && tsPattern.isMatching(tsPattern.P.union("addEventListener", "removeEventListener", "abort"), node.callee.property.name)):
75
+ case (node.callee.type === utils.AST_NODE_TYPES.MemberExpression && node.callee.property.type === utils.AST_NODE_TYPES.Identifier && tsPattern.isMatching(tsPattern.P.union("addEventListener", "removeEventListener", "abort"))(node.callee.property.name)):
76
76
  return node.callee.property.name;
77
77
  default:
78
78
  return "other";
@@ -294,9 +294,9 @@ var RULE_FEATURES2 = [
294
294
  ];
295
295
  function getCallKind2(node) {
296
296
  switch (true) {
297
- case (node.callee.type === utils.AST_NODE_TYPES.Identifier && tsPattern.isMatching(tsPattern.P.union("setInterval", "clearInterval"), node.callee.name)):
297
+ case (node.callee.type === utils.AST_NODE_TYPES.Identifier && tsPattern.isMatching(tsPattern.P.union("setInterval", "clearInterval"))(node.callee.name)):
298
298
  return node.callee.name;
299
- case (node.callee.type === utils.AST_NODE_TYPES.MemberExpression && node.callee.property.type === utils.AST_NODE_TYPES.Identifier && tsPattern.isMatching(tsPattern.P.union("setInterval", "clearInterval"), node.callee.property.name)):
299
+ case (node.callee.type === utils.AST_NODE_TYPES.MemberExpression && node.callee.property.type === utils.AST_NODE_TYPES.Identifier && tsPattern.isMatching(tsPattern.P.union("setInterval", "clearInterval"))(node.callee.property.name)):
300
300
  return node.callee.property.name;
301
301
  default:
302
302
  return "other";
@@ -440,9 +440,9 @@ function isFromObserver(node, context) {
440
440
  }
441
441
  function getCallKind3(node, context) {
442
442
  switch (true) {
443
- case (node.callee.type === utils.AST_NODE_TYPES.Identifier && tsPattern.isMatching(tsPattern.P.union("observe", "unobserve", "disconnect"), node.callee.name) && isFromObserver(node.callee, context)):
443
+ case (node.callee.type === utils.AST_NODE_TYPES.Identifier && tsPattern.isMatching(tsPattern.P.union("observe", "unobserve", "disconnect"))(node.callee.name) && isFromObserver(node.callee, context)):
444
444
  return node.callee.name;
445
- case (node.callee.type === utils.AST_NODE_TYPES.MemberExpression && node.callee.property.type === utils.AST_NODE_TYPES.Identifier && tsPattern.isMatching(tsPattern.P.union("observe", "unobserve", "disconnect"), node.callee.property.name) && isFromObserver(node.callee, context)):
445
+ case (node.callee.type === utils.AST_NODE_TYPES.MemberExpression && node.callee.property.type === utils.AST_NODE_TYPES.Identifier && tsPattern.isMatching(tsPattern.P.union("observe", "unobserve", "disconnect"))(node.callee.property.name) && isFromObserver(node.callee, context)):
446
446
  return node.callee.property.name;
447
447
  default:
448
448
  return "other";
@@ -587,9 +587,9 @@ var RULE_FEATURES4 = [
587
587
  ];
588
588
  function getCallKind4(node) {
589
589
  switch (true) {
590
- case (node.callee.type === utils.AST_NODE_TYPES.Identifier && tsPattern.isMatching(tsPattern.P.union("setTimeout", "clearTimeout"), node.callee.name)):
590
+ case (node.callee.type === utils.AST_NODE_TYPES.Identifier && tsPattern.isMatching(tsPattern.P.union("setTimeout", "clearTimeout"))(node.callee.name)):
591
591
  return node.callee.name;
592
- case (node.callee.type === utils.AST_NODE_TYPES.MemberExpression && node.callee.property.type === utils.AST_NODE_TYPES.Identifier && tsPattern.isMatching(tsPattern.P.union("setTimeout", "clearTimeout"), node.callee.property.name)):
592
+ case (node.callee.type === utils.AST_NODE_TYPES.MemberExpression && node.callee.property.type === utils.AST_NODE_TYPES.Identifier && tsPattern.isMatching(tsPattern.P.union("setTimeout", "clearTimeout"))(node.callee.property.name)):
593
593
  return node.callee.property.name;
594
594
  default:
595
595
  return "other";
package/dist/index.mjs CHANGED
@@ -9,7 +9,7 @@ import { AST_NODE_TYPES as AST_NODE_TYPES$1 } from '@typescript-eslint/types';
9
9
 
10
10
  // package.json
11
11
  var name = "eslint-plugin-react-web-api";
12
- var version = "1.24.0-next.16";
12
+ var version = "1.24.0-next.17";
13
13
  var createRule = createRuleForPlugin("web-api");
14
14
  function getInstanceID(node, prev) {
15
15
  switch (true) {
@@ -47,9 +47,9 @@ var defaultOptions = {
47
47
  };
48
48
  function getCallKind(node) {
49
49
  switch (true) {
50
- case (node.callee.type === AST_NODE_TYPES.Identifier && isMatching(P.union("addEventListener", "removeEventListener", "abort"), node.callee.name)):
50
+ case (node.callee.type === AST_NODE_TYPES.Identifier && isMatching(P.union("addEventListener", "removeEventListener", "abort"))(node.callee.name)):
51
51
  return node.callee.name;
52
- case (node.callee.type === AST_NODE_TYPES.MemberExpression && node.callee.property.type === AST_NODE_TYPES.Identifier && isMatching(P.union("addEventListener", "removeEventListener", "abort"), node.callee.property.name)):
52
+ case (node.callee.type === AST_NODE_TYPES.MemberExpression && node.callee.property.type === AST_NODE_TYPES.Identifier && isMatching(P.union("addEventListener", "removeEventListener", "abort"))(node.callee.property.name)):
53
53
  return node.callee.property.name;
54
54
  default:
55
55
  return "other";
@@ -271,9 +271,9 @@ var RULE_FEATURES2 = [
271
271
  ];
272
272
  function getCallKind2(node) {
273
273
  switch (true) {
274
- case (node.callee.type === AST_NODE_TYPES.Identifier && isMatching(P.union("setInterval", "clearInterval"), node.callee.name)):
274
+ case (node.callee.type === AST_NODE_TYPES.Identifier && isMatching(P.union("setInterval", "clearInterval"))(node.callee.name)):
275
275
  return node.callee.name;
276
- case (node.callee.type === AST_NODE_TYPES.MemberExpression && node.callee.property.type === AST_NODE_TYPES.Identifier && isMatching(P.union("setInterval", "clearInterval"), node.callee.property.name)):
276
+ case (node.callee.type === AST_NODE_TYPES.MemberExpression && node.callee.property.type === AST_NODE_TYPES.Identifier && isMatching(P.union("setInterval", "clearInterval"))(node.callee.property.name)):
277
277
  return node.callee.property.name;
278
278
  default:
279
279
  return "other";
@@ -417,9 +417,9 @@ function isFromObserver(node, context) {
417
417
  }
418
418
  function getCallKind3(node, context) {
419
419
  switch (true) {
420
- case (node.callee.type === AST_NODE_TYPES.Identifier && isMatching(P.union("observe", "unobserve", "disconnect"), node.callee.name) && isFromObserver(node.callee, context)):
420
+ case (node.callee.type === AST_NODE_TYPES.Identifier && isMatching(P.union("observe", "unobserve", "disconnect"))(node.callee.name) && isFromObserver(node.callee, context)):
421
421
  return node.callee.name;
422
- case (node.callee.type === AST_NODE_TYPES.MemberExpression && node.callee.property.type === AST_NODE_TYPES.Identifier && isMatching(P.union("observe", "unobserve", "disconnect"), node.callee.property.name) && isFromObserver(node.callee, context)):
422
+ case (node.callee.type === AST_NODE_TYPES.MemberExpression && node.callee.property.type === AST_NODE_TYPES.Identifier && isMatching(P.union("observe", "unobserve", "disconnect"))(node.callee.property.name) && isFromObserver(node.callee, context)):
423
423
  return node.callee.property.name;
424
424
  default:
425
425
  return "other";
@@ -564,9 +564,9 @@ var RULE_FEATURES4 = [
564
564
  ];
565
565
  function getCallKind4(node) {
566
566
  switch (true) {
567
- case (node.callee.type === AST_NODE_TYPES.Identifier && isMatching(P.union("setTimeout", "clearTimeout"), node.callee.name)):
567
+ case (node.callee.type === AST_NODE_TYPES.Identifier && isMatching(P.union("setTimeout", "clearTimeout"))(node.callee.name)):
568
568
  return node.callee.name;
569
- case (node.callee.type === AST_NODE_TYPES.MemberExpression && node.callee.property.type === AST_NODE_TYPES.Identifier && isMatching(P.union("setTimeout", "clearTimeout"), node.callee.property.name)):
569
+ case (node.callee.type === AST_NODE_TYPES.MemberExpression && node.callee.property.type === AST_NODE_TYPES.Identifier && isMatching(P.union("setTimeout", "clearTimeout"))(node.callee.property.name)):
570
570
  return node.callee.property.name;
571
571
  default:
572
572
  return "other";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-web-api",
3
- "version": "1.24.0-next.16",
3
+ "version": "1.24.0-next.17",
4
4
  "description": "ESLint React's ESLint plugin for interacting with Web APIs",
5
5
  "keywords": [
6
6
  "react",
@@ -45,13 +45,13 @@
45
45
  "@typescript-eslint/types": "^8.20.0",
46
46
  "@typescript-eslint/utils": "^8.20.0",
47
47
  "string-ts": "^2.2.0",
48
- "ts-pattern": "^5.6.0",
49
- "@eslint-react/core": "1.24.0-next.16",
50
- "@eslint-react/jsx": "1.24.0-next.16",
51
- "@eslint-react/ast": "1.24.0-next.16",
52
- "@eslint-react/eff": "1.24.0-next.16",
53
- "@eslint-react/shared": "1.24.0-next.16",
54
- "@eslint-react/var": "1.24.0-next.16"
48
+ "ts-pattern": "^5.6.1",
49
+ "@eslint-react/ast": "1.24.0-next.17",
50
+ "@eslint-react/eff": "1.24.0-next.17",
51
+ "@eslint-react/core": "1.24.0-next.17",
52
+ "@eslint-react/jsx": "1.24.0-next.17",
53
+ "@eslint-react/shared": "1.24.0-next.17",
54
+ "@eslint-react/var": "1.24.0-next.17"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@types/react": "^19.0.7",