eslint-plugin-react-web-api 3.0.0-next.54 → 3.0.0-next.56

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.ts CHANGED
@@ -1,20 +1,9 @@
1
- import * as _eslint_react_shared0 from "@eslint-react/shared";
1
+ import { ESLint, Linter } from "eslint";
2
2
 
3
3
  //#region src/index.d.ts
4
- declare const _default: {
5
- configs: {
6
- recommended: {
7
- plugins: {};
8
- name?: string;
9
- rules?: Record<string, _eslint_react_shared0.RuleConfig>;
10
- settings?: _eslint_react_shared0.SettingsConfig;
11
- };
12
- };
13
- meta: {
14
- name: string;
15
- version: string;
16
- };
17
- rules: Record<string, _eslint_react_shared0.CompatibleRule>;
4
+ type ConfigName = "recommended";
5
+ declare const finalPlugin: ESLint.Plugin & {
6
+ configs: Record<ConfigName, Linter.Config>;
18
7
  };
19
8
  //#endregion
20
- export { _default as default };
9
+ export { finalPlugin as default };
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { DEFAULT_ESLINT_REACT_SETTINGS, WEBSITE_URL, defineRuleListener, getConfigAdapters } from "@eslint-react/shared";
1
+ import { DEFAULT_ESLINT_REACT_SETTINGS, WEBSITE_URL, defineRuleListener } from "@eslint-react/shared";
2
2
  import * as ast from "@eslint-react/ast";
3
3
  import * as core from "@eslint-react/core";
4
4
  import { dual, or, unit } from "@eslint-react/eff";
@@ -24,26 +24,10 @@ var __exportAll = (all, no_symbols) => {
24
24
  return target;
25
25
  };
26
26
 
27
- //#endregion
28
- //#region src/configs/recommended.ts
29
- var recommended_exports = /* @__PURE__ */ __exportAll({
30
- name: () => name$1,
31
- rules: () => rules,
32
- settings: () => settings
33
- });
34
- const name$1 = "react-web-api/recommended";
35
- const rules = {
36
- "react-web-api/no-leaked-event-listener": "warn",
37
- "react-web-api/no-leaked-interval": "warn",
38
- "react-web-api/no-leaked-resize-observer": "warn",
39
- "react-web-api/no-leaked-timeout": "warn"
40
- };
41
- const settings = { "react-x": DEFAULT_ESLINT_REACT_SETTINGS };
42
-
43
27
  //#endregion
44
28
  //#region package.json
45
- var name = "eslint-plugin-react-web-api";
46
- var version = "3.0.0-next.54";
29
+ var name$1 = "eslint-plugin-react-web-api";
30
+ var version = "3.0.0-next.56";
47
31
 
48
32
  //#endregion
49
33
  //#region src/types/component-phase.ts
@@ -604,7 +588,7 @@ function create(context) {
604
588
  //#region src/plugin.ts
605
589
  const plugin = {
606
590
  meta: {
607
- name,
591
+ name: name$1,
608
592
  version
609
593
  },
610
594
  rules: {
@@ -615,13 +599,30 @@ const plugin = {
615
599
  }
616
600
  };
617
601
 
602
+ //#endregion
603
+ //#region src/configs/recommended.ts
604
+ var recommended_exports = /* @__PURE__ */ __exportAll({
605
+ name: () => name,
606
+ plugins: () => plugins,
607
+ rules: () => rules,
608
+ settings: () => settings
609
+ });
610
+ const name = "react-web-api/recommended";
611
+ const rules = {
612
+ "react-web-api/no-leaked-event-listener": "warn",
613
+ "react-web-api/no-leaked-interval": "warn",
614
+ "react-web-api/no-leaked-resize-observer": "warn",
615
+ "react-web-api/no-leaked-timeout": "warn"
616
+ };
617
+ const plugins = { "react-web-api": plugin };
618
+ const settings = { "react-x": DEFAULT_ESLINT_REACT_SETTINGS };
619
+
618
620
  //#endregion
619
621
  //#region src/index.ts
620
- const { toFlatConfig } = getConfigAdapters("react-web-api", plugin);
621
- var src_default = {
622
+ const finalPlugin = {
622
623
  ...plugin,
623
- configs: { ["recommended"]: toFlatConfig(recommended_exports) }
624
+ configs: { ["recommended"]: recommended_exports }
624
625
  };
625
626
 
626
627
  //#endregion
627
- export { src_default as default };
628
+ export { finalPlugin as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-web-api",
3
- "version": "3.0.0-next.54",
3
+ "version": "3.0.0-next.56",
4
4
  "description": "ESLint React's ESLint plugin for interacting with Web APIs",
5
5
  "keywords": [
6
6
  "react",
@@ -43,16 +43,17 @@
43
43
  "@typescript-eslint/utils": "canary",
44
44
  "birecord": "^0.1.1",
45
45
  "ts-pattern": "^5.9.0",
46
- "@eslint-react/core": "3.0.0-next.54",
47
- "@eslint-react/eff": "3.0.0-next.54",
48
- "@eslint-react/var": "3.0.0-next.54",
49
- "@eslint-react/ast": "3.0.0-next.54",
50
- "@eslint-react/shared": "3.0.0-next.54"
46
+ "@eslint-react/ast": "3.0.0-next.56",
47
+ "@eslint-react/core": "3.0.0-next.56",
48
+ "@eslint-react/eff": "3.0.0-next.56",
49
+ "@eslint-react/shared": "3.0.0-next.56",
50
+ "@eslint-react/var": "3.0.0-next.56"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@types/react": "^19.2.14",
54
54
  "@types/react-dom": "^19.2.3",
55
- "tsdown": "^0.21.0-beta.1",
55
+ "eslint": "^10.0.2",
56
+ "tsdown": "^0.21.0-beta.2",
56
57
  "@local/configs": "0.0.0"
57
58
  },
58
59
  "peerDependencies": {