eslint-plugin-react-web-api 1.37.4-next.0 → 1.38.0-beta.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.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _typescript_eslint_utils_ts_eslint from '@typescript-eslint/utils/ts-eslint';
2
- import { RulePreset } from '@eslint-react/shared';
2
+ import { RulePreset } from '@eslint-react/kit';
3
3
 
4
4
  type MessageID$3 = "expectedClearTimeoutInCleanup" | "expectedClearTimeoutInUnmount" | "expectedTimeoutId";
5
5
 
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _typescript_eslint_utils_ts_eslint from '@typescript-eslint/utils/ts-eslint';
2
- import { RulePreset } from '@eslint-react/shared';
2
+ import { RulePreset } from '@eslint-react/kit';
3
3
 
4
4
  type MessageID$3 = "expectedClearTimeoutInCleanup" | "expectedClearTimeoutInUnmount" | "expectedTimeoutId";
5
5
 
package/dist/index.js CHANGED
@@ -55,8 +55,8 @@ var settings = {
55
55
 
56
56
  // package.json
57
57
  var name2 = "eslint-plugin-react-web-api";
58
- var version = "1.37.4-next.0";
59
- var createRule = shared.createRuleForPlugin("web-api");
58
+ var version = "1.38.0-beta.3";
59
+ var createRule = utils.ESLintUtils.RuleCreator(shared.getDocsUrl("web-api"));
60
60
  function getPhaseKindOfFunction(node) {
61
61
  return tsPattern.match(node).when(core.isFunctionOfUseEffectSetup, () => "setup").when(core.isFunctionOfUseEffectCleanup, () => "cleanup").when(core.isFunctionOfComponentDidMount, () => "mount").when(core.isFunctionOfComponentWillUnmount, () => "unmount").otherwise(() => eff._);
62
62
  }
package/dist/index.mjs CHANGED
@@ -1,9 +1,9 @@
1
- import { createRuleForPlugin, DEFAULT_ESLINT_REACT_SETTINGS } from '@eslint-react/shared';
1
+ import { getDocsUrl, DEFAULT_ESLINT_REACT_SETTINGS } from '@eslint-react/shared';
2
2
  import * as AST from '@eslint-react/ast';
3
3
  import { ERPhaseRelevance, isInstanceIdEqual, getInstanceId, isInversePhase, isFunctionOfUseEffectSetup, isFunctionOfUseEffectCleanup, isFunctionOfComponentDidMount, isFunctionOfComponentWillUnmount } from '@eslint-react/core';
4
4
  import { _, or } from '@eslint-react/eff';
5
5
  import * as VAR from '@eslint-react/var';
6
- import { AST_NODE_TYPES } from '@typescript-eslint/utils';
6
+ import { ESLintUtils, AST_NODE_TYPES } from '@typescript-eslint/utils';
7
7
  import { match, isMatching, P } from 'ts-pattern';
8
8
 
9
9
  var __defProp = Object.defineProperty;
@@ -32,8 +32,8 @@ var settings = {
32
32
 
33
33
  // package.json
34
34
  var name2 = "eslint-plugin-react-web-api";
35
- var version = "1.37.4-next.0";
36
- var createRule = createRuleForPlugin("web-api");
35
+ var version = "1.38.0-beta.3";
36
+ var createRule = ESLintUtils.RuleCreator(getDocsUrl("web-api"));
37
37
  function getPhaseKindOfFunction(node) {
38
38
  return match(node).when(isFunctionOfUseEffectSetup, () => "setup").when(isFunctionOfUseEffectCleanup, () => "cleanup").when(isFunctionOfComponentDidMount, () => "mount").when(isFunctionOfComponentWillUnmount, () => "unmount").otherwise(() => _);
39
39
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-web-api",
3
- "version": "1.37.4-next.0",
3
+ "version": "1.38.0-beta.3",
4
4
  "description": "ESLint React's ESLint plugin for interacting with Web APIs",
5
5
  "keywords": [
6
6
  "react",
@@ -48,12 +48,13 @@
48
48
  "@typescript-eslint/utils": "^8.27.0",
49
49
  "string-ts": "^2.2.1",
50
50
  "ts-pattern": "^5.6.2",
51
- "@eslint-react/ast": "1.37.4-next.0",
52
- "@eslint-react/core": "1.37.4-next.0",
53
- "@eslint-react/jsx": "1.37.4-next.0",
54
- "@eslint-react/var": "1.37.4-next.0",
55
- "@eslint-react/shared": "1.37.4-next.0",
56
- "@eslint-react/eff": "1.37.4-next.0"
51
+ "@eslint-react/core": "1.38.0-beta.3",
52
+ "@eslint-react/eff": "1.38.0-beta.3",
53
+ "@eslint-react/ast": "1.38.0-beta.3",
54
+ "@eslint-react/shared": "1.38.0-beta.3",
55
+ "@eslint-react/var": "1.38.0-beta.3",
56
+ "@eslint-react/kit": "1.38.0-beta.3",
57
+ "@eslint-react/jsx": "1.38.0-beta.3"
57
58
  },
58
59
  "devDependencies": {
59
60
  "@types/react": "^19.0.12",