eslint-plugin-react-debug 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
- all: {
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 = "all";
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, getSettingsFromContext, report } from "@eslint-react/shared";
1
+ import { DEFAULT_ESLINT_REACT_SETTINGS, WEBSITE_URL, defineRuleListener, getSettingsFromContext, report } from "@eslint-react/shared";
2
2
  import * as core from "@eslint-react/core";
3
3
  import { AST_NODE_TYPES, ESLintUtils } from "@typescript-eslint/utils";
4
4
  import { flow } from "@eslint-react/eff";
@@ -21,28 +21,10 @@ var __exportAll = (all, no_symbols) => {
21
21
  return target;
22
22
  };
23
23
 
24
- //#endregion
25
- //#region src/configs/all.ts
26
- var all_exports = /* @__PURE__ */ __exportAll({
27
- name: () => name$1,
28
- rules: () => rules,
29
- settings: () => settings
30
- });
31
- const name$1 = "react-debug/all";
32
- const rules = {
33
- "react-debug/class-component": "warn",
34
- "react-debug/function-component": "warn",
35
- "react-debug/hook": "warn",
36
- "react-debug/is-from-react": "warn",
37
- "react-debug/is-from-ref": "warn",
38
- "react-debug/jsx": "warn"
39
- };
40
- const settings = { "react-x": DEFAULT_ESLINT_REACT_SETTINGS };
41
-
42
24
  //#endregion
43
25
  //#region package.json
44
- var name = "eslint-plugin-react-debug";
45
- var version = "3.0.0-next.54";
26
+ var name$1 = "eslint-plugin-react-debug";
27
+ var version = "3.0.0-next.56";
46
28
 
47
29
  //#endregion
48
30
  //#region src/utils/create-rule.ts
@@ -281,7 +263,7 @@ function create(context) {
281
263
  //#region src/plugin.ts
282
264
  const plugin = {
283
265
  meta: {
284
- name,
266
+ name: name$1,
285
267
  version
286
268
  },
287
269
  rules: {
@@ -294,13 +276,32 @@ const plugin = {
294
276
  }
295
277
  };
296
278
 
279
+ //#endregion
280
+ //#region src/configs/all.ts
281
+ var all_exports = /* @__PURE__ */ __exportAll({
282
+ name: () => name,
283
+ plugins: () => plugins,
284
+ rules: () => rules,
285
+ settings: () => settings
286
+ });
287
+ const name = "react-debug/all";
288
+ const rules = {
289
+ "react-debug/class-component": "warn",
290
+ "react-debug/function-component": "warn",
291
+ "react-debug/hook": "warn",
292
+ "react-debug/is-from-react": "warn",
293
+ "react-debug/is-from-ref": "warn",
294
+ "react-debug/jsx": "warn"
295
+ };
296
+ const plugins = { "react-debug": plugin };
297
+ const settings = { "react-x": DEFAULT_ESLINT_REACT_SETTINGS };
298
+
297
299
  //#endregion
298
300
  //#region src/index.ts
299
- const { toFlatConfig } = getConfigAdapters("react-debug", plugin);
300
- var src_default = {
301
+ const finalPlugin = {
301
302
  ...plugin,
302
- configs: { ["all"]: toFlatConfig(all_exports) }
303
+ configs: { ["all"]: all_exports }
303
304
  };
304
305
 
305
306
  //#endregion
306
- export { src_default as default };
307
+ export { finalPlugin as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-debug",
3
- "version": "3.0.0-next.54",
3
+ "version": "3.0.0-next.56",
4
4
  "description": "ESLint React's ESLint plugin for debugging related rules.",
5
5
  "keywords": [
6
6
  "react",
@@ -43,16 +43,17 @@
43
43
  "@typescript-eslint/types": "canary",
44
44
  "@typescript-eslint/utils": "canary",
45
45
  "ts-pattern": "^5.9.0",
46
- "@eslint-react/ast": "3.0.0-next.54",
47
- "@eslint-react/eff": "3.0.0-next.54",
48
- "@eslint-react/core": "3.0.0-next.54",
49
- "@eslint-react/shared": "3.0.0-next.54",
50
- "@eslint-react/var": "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/shared": "3.0.0-next.56",
49
+ "@eslint-react/eff": "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": {