eslint-plugin-react-web-api 1.52.9-next.0 → 1.52.10-beta.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.d.mts CHANGED
@@ -1,25 +1,23 @@
1
- import * as _eslint_react_shared from '@eslint-react/shared';
2
- import { RulePreset } from '@eslint-react/kit';
1
+ import * as _eslint_react_kit from '@eslint-react/kit';
3
2
 
4
3
  declare const _default: {
5
4
  configs: {
6
5
  recommended: {
7
- plugins: {
8
- "react-web-api": _eslint_react_shared.CompatiblePlugin;
9
- };
6
+ plugins: {};
10
7
  name?: string;
11
- rules?: Record<string, any>;
8
+ rules?: Record<string, _eslint_react_kit.RuleConfig>;
9
+ settings?: _eslint_react_kit.SettingsConfig;
12
10
  };
13
11
  "recommended-legacy": {
14
12
  plugins: string[];
15
- rules: RulePreset;
13
+ rules: Record<string, _eslint_react_kit.RuleConfig<unknown[]>> | undefined;
16
14
  };
17
15
  };
18
16
  meta: {
19
17
  name: string;
20
18
  version: string;
21
19
  };
22
- rules: Record<string, any>;
20
+ rules: Record<string, _eslint_react_kit.CompatibleRule>;
23
21
  };
24
22
 
25
23
  export { _default as default };
package/dist/index.d.ts CHANGED
@@ -1,25 +1,23 @@
1
- import * as _eslint_react_shared from '@eslint-react/shared';
2
- import { RulePreset } from '@eslint-react/kit';
1
+ import * as _eslint_react_kit from '@eslint-react/kit';
3
2
 
4
3
  declare const _default: {
5
4
  configs: {
6
5
  recommended: {
7
- plugins: {
8
- "react-web-api": _eslint_react_shared.CompatiblePlugin;
9
- };
6
+ plugins: {};
10
7
  name?: string;
11
- rules?: Record<string, any>;
8
+ rules?: Record<string, _eslint_react_kit.RuleConfig>;
9
+ settings?: _eslint_react_kit.SettingsConfig;
12
10
  };
13
11
  "recommended-legacy": {
14
12
  plugins: string[];
15
- rules: RulePreset;
13
+ rules: Record<string, _eslint_react_kit.RuleConfig<unknown[]>> | undefined;
16
14
  };
17
15
  };
18
16
  meta: {
19
17
  name: string;
20
18
  version: string;
21
19
  };
22
- rules: Record<string, any>;
20
+ rules: Record<string, _eslint_react_kit.CompatibleRule>;
23
21
  };
24
22
 
25
23
  export { _default as default };
package/dist/index.js CHANGED
@@ -57,7 +57,7 @@ var settings = {
57
57
 
58
58
  // package.json
59
59
  var name2 = "eslint-plugin-react-web-api";
60
- var version = "1.52.9-next.0";
60
+ var version = "1.52.10-beta.0";
61
61
  var createRule = utils.ESLintUtils.RuleCreator(shared.getDocsUrl("web-api"));
62
62
  function getPhaseKindOfFunction(node) {
63
63
  return tsPattern.match(node).when(ER4__namespace.isFunctionOfUseEffectSetup, () => "setup").when(ER4__namespace.isFunctionOfUseEffectCleanup, () => "cleanup").when(ER4__namespace.isFunctionOfComponentDidMount, () => "mount").when(ER4__namespace.isFunctionOfComponentWillUnmount, () => "unmount").otherwise(() => null);
@@ -732,20 +732,7 @@ var plugin = {
732
732
  };
733
733
 
734
734
  // src/index.ts
735
- function toFlatConfig(config) {
736
- return {
737
- ...config,
738
- plugins: {
739
- "react-web-api": plugin
740
- }
741
- };
742
- }
743
- function toLegacyConfig({ rules: rules2 }) {
744
- return {
745
- plugins: ["react-web-api"],
746
- rules: rules2
747
- };
748
- }
735
+ var { toFlatConfig, toLegacyConfig } = shared.getConfigAdapters("react-web-api", plugin);
749
736
  var index_default = {
750
737
  ...plugin,
751
738
  configs: {
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { getDocsUrl, DEFAULT_ESLINT_REACT_SETTINGS } from '@eslint-react/shared';
1
+ import { getDocsUrl, getConfigAdapters, DEFAULT_ESLINT_REACT_SETTINGS } from '@eslint-react/shared';
2
2
  import * as AST from '@eslint-react/ast';
3
3
  import * as ER4 from '@eslint-react/core';
4
4
  import { or, unit } from '@eslint-react/eff';
@@ -33,7 +33,7 @@ var settings = {
33
33
 
34
34
  // package.json
35
35
  var name2 = "eslint-plugin-react-web-api";
36
- var version = "1.52.9-next.0";
36
+ var version = "1.52.10-beta.0";
37
37
  var createRule = ESLintUtils.RuleCreator(getDocsUrl("web-api"));
38
38
  function getPhaseKindOfFunction(node) {
39
39
  return match(node).when(ER4.isFunctionOfUseEffectSetup, () => "setup").when(ER4.isFunctionOfUseEffectCleanup, () => "cleanup").when(ER4.isFunctionOfComponentDidMount, () => "mount").when(ER4.isFunctionOfComponentWillUnmount, () => "unmount").otherwise(() => null);
@@ -708,20 +708,7 @@ var plugin = {
708
708
  };
709
709
 
710
710
  // src/index.ts
711
- function toFlatConfig(config) {
712
- return {
713
- ...config,
714
- plugins: {
715
- "react-web-api": plugin
716
- }
717
- };
718
- }
719
- function toLegacyConfig({ rules: rules2 }) {
720
- return {
721
- plugins: ["react-web-api"],
722
- rules: rules2
723
- };
724
- }
711
+ var { toFlatConfig, toLegacyConfig } = getConfigAdapters("react-web-api", plugin);
725
712
  var index_default = {
726
713
  ...plugin,
727
714
  configs: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-web-api",
3
- "version": "1.52.9-next.0",
3
+ "version": "1.52.10-beta.0",
4
4
  "description": "ESLint React's ESLint plugin for interacting with Web APIs",
5
5
  "keywords": [
6
6
  "react",
@@ -48,12 +48,12 @@
48
48
  "@typescript-eslint/utils": "^8.41.0",
49
49
  "string-ts": "^2.2.1",
50
50
  "ts-pattern": "^5.8.0",
51
- "@eslint-react/ast": "1.52.9-next.0",
52
- "@eslint-react/eff": "1.52.9-next.0",
53
- "@eslint-react/shared": "1.52.9-next.0",
54
- "@eslint-react/kit": "1.52.9-next.0",
55
- "@eslint-react/var": "1.52.9-next.0",
56
- "@eslint-react/core": "1.52.9-next.0"
51
+ "@eslint-react/ast": "1.52.10-beta.0",
52
+ "@eslint-react/core": "1.52.10-beta.0",
53
+ "@eslint-react/kit": "1.52.10-beta.0",
54
+ "@eslint-react/eff": "1.52.10-beta.0",
55
+ "@eslint-react/var": "1.52.10-beta.0",
56
+ "@eslint-react/shared": "1.52.10-beta.0"
57
57
  },
58
58
  "devDependencies": {
59
59
  "@types/react": "^19.1.12",