eslint-plugin-react-x 3.0.0-next.55 → 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,86 +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
- /**
7
- * Disable experimental rules that might be subject to change in the future
8
- */
9
- "disable-experimental": {
10
- plugins: {};
11
- name?: string;
12
- rules?: Record<string, _eslint_react_shared0.RuleConfig>;
13
- settings?: _eslint_react_shared0.SettingsConfig;
14
- };
15
- /**
16
- * Disable rules that can be enforced by TypeScript
17
- */
18
- "disable-type-checked": {
19
- plugins: {};
20
- name?: string;
21
- rules?: Record<string, _eslint_react_shared0.RuleConfig>;
22
- settings?: _eslint_react_shared0.SettingsConfig;
23
- };
24
- /**
25
- * Enforce rules that are recommended by ESLint React for general purpose React + React DOM projects
26
- */
27
- recommended: {
28
- plugins: {};
29
- name?: string;
30
- rules?: Record<string, _eslint_react_shared0.RuleConfig>;
31
- settings?: _eslint_react_shared0.SettingsConfig;
32
- };
33
- /**
34
- * Same as the `recommended-typescript` preset but enables additional rules that require type information
35
- */
36
- "recommended-type-checked": {
37
- plugins: {};
38
- name?: string;
39
- rules?: Record<string, _eslint_react_shared0.RuleConfig>;
40
- settings?: _eslint_react_shared0.SettingsConfig;
41
- };
42
- /**
43
- * Same as the `recommended` preset but disables rules that can be enforced by TypeScript
44
- */
45
- "recommended-typescript": {
46
- plugins: {};
47
- name?: string;
48
- rules?: Record<string, _eslint_react_shared0.RuleConfig>;
49
- settings?: _eslint_react_shared0.SettingsConfig;
50
- };
51
- /**
52
- * More strict version of the `recommended` preset
53
- */
54
- strict: {
55
- plugins: {};
56
- name?: string;
57
- rules?: Record<string, _eslint_react_shared0.RuleConfig>;
58
- settings?: _eslint_react_shared0.SettingsConfig;
59
- };
60
- /**
61
- * Same as the `strict-typescript` preset but enables additional rules that require type information
62
- */
63
- "strict-type-checked": {
64
- plugins: {};
65
- name?: string;
66
- rules?: Record<string, _eslint_react_shared0.RuleConfig>;
67
- settings?: _eslint_react_shared0.SettingsConfig;
68
- };
69
- /**
70
- * Same as the `strict` preset but disables rules that can be enforced by TypeScript
71
- */
72
- "strict-typescript": {
73
- plugins: {};
74
- name?: string;
75
- rules?: Record<string, _eslint_react_shared0.RuleConfig>;
76
- settings?: _eslint_react_shared0.SettingsConfig;
77
- };
78
- };
79
- meta: {
80
- name: string;
81
- version: string;
82
- };
83
- rules: Record<string, _eslint_react_shared0.CompatibleRule>;
4
+ type ConfigName = "disable-experimental" | "disable-type-checked" | "recommended" | "recommended-type-checked" | "recommended-typescript" | "strict" | "strict-type-checked" | "strict-typescript";
5
+ declare const finalPlugin: ESLint.Plugin & {
6
+ configs: Record<ConfigName, Linter.Config>;
84
7
  };
85
8
  //#endregion
86
- export { _default as default };
9
+ export { finalPlugin as default };
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { DEFAULT_ESLINT_REACT_SETTINGS, IMPURE_CTORS, IMPURE_FUNCS, WEBSITE_URL, coerceSettings, defineRuleListener, getConfigAdapters, getSettingsFromContext, report, toRegExp } from "@eslint-react/shared";
1
+ import { DEFAULT_ESLINT_REACT_SETTINGS, IMPURE_CTORS, IMPURE_FUNCS, WEBSITE_URL, coerceSettings, defineRuleListener, getSettingsFromContext, report, toRegExp } 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 { ESLintUtils } from "@typescript-eslint/utils";
@@ -68,7 +68,7 @@ const rules$7 = {
68
68
  //#endregion
69
69
  //#region package.json
70
70
  var name$6 = "eslint-plugin-react-x";
71
- var version = "3.0.0-next.55";
71
+ var version = "3.0.0-next.56";
72
72
 
73
73
  //#endregion
74
74
  //#region src/utils/create-rule.ts
@@ -7342,20 +7342,19 @@ const settings = { ...settings$1 };
7342
7342
 
7343
7343
  //#endregion
7344
7344
  //#region src/index.ts
7345
- const { toFlatConfig } = getConfigAdapters("react-x", plugin);
7346
- var src_default = {
7345
+ const finalPlugin = {
7347
7346
  ...plugin,
7348
7347
  configs: {
7349
- ["disable-experimental"]: toFlatConfig(disable_experimental_exports),
7350
- ["disable-type-checked"]: toFlatConfig(disable_type_checked_exports),
7351
- ["recommended"]: toFlatConfig(recommended_exports),
7352
- ["recommended-type-checked"]: toFlatConfig(recommended_type_checked_exports),
7353
- ["recommended-typescript"]: toFlatConfig(recommended_typescript_exports),
7354
- ["strict"]: toFlatConfig(strict_exports),
7355
- ["strict-type-checked"]: toFlatConfig(strict_type_checked_exports),
7356
- ["strict-typescript"]: toFlatConfig(strict_typescript_exports)
7348
+ ["disable-experimental"]: disable_experimental_exports,
7349
+ ["disable-type-checked"]: disable_type_checked_exports,
7350
+ ["recommended"]: recommended_exports,
7351
+ ["recommended-type-checked"]: recommended_type_checked_exports,
7352
+ ["recommended-typescript"]: recommended_typescript_exports,
7353
+ ["strict"]: strict_exports,
7354
+ ["strict-type-checked"]: strict_type_checked_exports,
7355
+ ["strict-typescript"]: strict_typescript_exports
7357
7356
  }
7358
7357
  };
7359
7358
 
7360
7359
  //#endregion
7361
- export { src_default as default };
7360
+ export { finalPlugin as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-x",
3
- "version": "3.0.0-next.55",
3
+ "version": "3.0.0-next.56",
4
4
  "description": "A set of composable ESLint rules for libraries and frameworks that use React as a UI runtime.",
5
5
  "keywords": [
6
6
  "react",
@@ -45,16 +45,17 @@
45
45
  "string-ts": "^2.3.1",
46
46
  "ts-api-utils": "^2.4.0",
47
47
  "ts-pattern": "^5.9.0",
48
- "@eslint-react/ast": "3.0.0-next.55",
49
- "@eslint-react/eff": "3.0.0-next.55",
50
- "@eslint-react/shared": "3.0.0-next.55",
51
- "@eslint-react/var": "3.0.0-next.55",
52
- "@eslint-react/core": "3.0.0-next.55"
48
+ "@eslint-react/core": "3.0.0-next.56",
49
+ "@eslint-react/eff": "3.0.0-next.56",
50
+ "@eslint-react/shared": "3.0.0-next.56",
51
+ "@eslint-react/ast": "3.0.0-next.56",
52
+ "@eslint-react/var": "3.0.0-next.56"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@types/react": "^19.2.14",
56
56
  "@types/react-dom": "^19.2.3",
57
- "tsdown": "^0.21.0-beta.1",
57
+ "eslint": "^10.0.2",
58
+ "tsdown": "^0.21.0-beta.2",
58
59
  "tsl-dx": "^0.8.0",
59
60
  "@local/configs": "0.0.0"
60
61
  },