@eslint-react/eslint-plugin 2.9.1 → 2.9.2-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.
Files changed (2) hide show
  1. package/dist/index.js +44 -43
  2. package/package.json +9 -9
package/dist/index.js CHANGED
@@ -3,8 +3,8 @@ import reactHooksExtra from "eslint-plugin-react-hooks-extra";
3
3
  import reactNamingConvention from "eslint-plugin-react-naming-convention";
4
4
  import reactWebApi from "eslint-plugin-react-web-api";
5
5
  import reactDom from "eslint-plugin-react-dom";
6
- import { DEFAULT_ESLINT_REACT_SETTINGS } from "@eslint-react/shared";
7
6
  import reactRsc from "eslint-plugin-react-rsc";
7
+ import { DEFAULT_ESLINT_REACT_SETTINGS } from "@eslint-react/shared";
8
8
 
9
9
  //#region rolldown:runtime
10
10
  var __defProp = Object.defineProperty;
@@ -25,7 +25,7 @@ var __exportAll = (all, symbols) => {
25
25
  //#endregion
26
26
  //#region package.json
27
27
  var name$19 = "@eslint-react/eslint-plugin";
28
- var version = "2.9.1";
28
+ var version = "2.9.2-beta.0";
29
29
 
30
30
  //#endregion
31
31
  //#region src/configs/dom.ts
@@ -52,15 +52,26 @@ const rules$19 = {
52
52
  const plugins$11 = { "@eslint-react/dom": reactDom };
53
53
 
54
54
  //#endregion
55
- //#region src/configs/x.ts
56
- var x_exports = /* @__PURE__ */ __exportAll({
55
+ //#region src/configs/rsc.ts
56
+ var rsc_exports = /* @__PURE__ */ __exportAll({
57
57
  name: () => name$17,
58
58
  plugins: () => plugins$10,
59
- rules: () => rules$18,
59
+ rules: () => rules$18
60
+ });
61
+ const name$17 = "@eslint-react/rsc";
62
+ const rules$18 = { "@eslint-react/rsc/function-definition": "error" };
63
+ const plugins$10 = { "@eslint-react/rsc": reactRsc };
64
+
65
+ //#endregion
66
+ //#region src/configs/x.ts
67
+ var x_exports = /* @__PURE__ */ __exportAll({
68
+ name: () => name$16,
69
+ plugins: () => plugins$9,
70
+ rules: () => rules$17,
60
71
  settings: () => settings$8
61
72
  });
62
- const name$17 = "@eslint-react/x";
63
- const rules$18 = {
73
+ const name$16 = "@eslint-react/x";
74
+ const rules$17 = {
64
75
  "@eslint-react/jsx-key-before-spread": "warn",
65
76
  "@eslint-react/jsx-no-comment-textnodes": "warn",
66
77
  "@eslint-react/jsx-no-duplicate-props": "warn",
@@ -101,19 +112,19 @@ const rules$18 = {
101
112
  "@eslint-react/no-useless-forward-ref": "warn",
102
113
  "@eslint-react/prefer-use-state-lazy-initialization": "warn"
103
114
  };
104
- const plugins$10 = { "@eslint-react": react };
115
+ const plugins$9 = { "@eslint-react": react };
105
116
  const settings$8 = { "react-x": DEFAULT_ESLINT_REACT_SETTINGS };
106
117
 
107
118
  //#endregion
108
119
  //#region src/configs/all.ts
109
120
  var all_exports = /* @__PURE__ */ __exportAll({
110
- name: () => name$16,
111
- plugins: () => plugins$9,
112
- rules: () => rules$17,
121
+ name: () => name$15,
122
+ plugins: () => plugins$8,
123
+ rules: () => rules$16,
113
124
  settings: () => settings$7
114
125
  });
115
- const name$16 = "@eslint-react/all";
116
- const rules$17 = {
126
+ const name$15 = "@eslint-react/all";
127
+ const rules$16 = {
117
128
  "@eslint-react/jsx-key-before-spread": "warn",
118
129
  "@eslint-react/jsx-no-comment-textnodes": "warn",
119
130
  "@eslint-react/jsx-no-duplicate-props": "warn",
@@ -207,9 +218,10 @@ const rules$17 = {
207
218
  "@eslint-react/naming-convention/ref-name": "off",
208
219
  "@eslint-react/naming-convention/use-state": "warn"
209
220
  };
210
- const plugins$9 = {
211
- ...plugins$10,
221
+ const plugins$8 = {
222
+ ...plugins$9,
212
223
  ...plugins$11,
224
+ ...plugins$10,
213
225
  "@eslint-react/hooks-extra": reactHooksExtra,
214
226
  "@eslint-react/naming-convention": reactNamingConvention,
215
227
  "@eslint-react/web-api": reactWebApi
@@ -219,8 +231,8 @@ const settings$7 = { ...settings$8 };
219
231
  //#endregion
220
232
  //#region src/configs/disable-conflict-eslint-plugin-react.ts
221
233
  var disable_conflict_eslint_plugin_react_exports = /* @__PURE__ */ __exportAll({
222
- name: () => name$15,
223
- rules: () => rules$16
234
+ name: () => name$14,
235
+ rules: () => rules$15
224
236
  });
225
237
  const conflictingRules = [
226
238
  "react/button-has-type",
@@ -270,26 +282,26 @@ const conflictingRules = [
270
282
  "react/prop-types",
271
283
  "react/void-dom-elements-no-children"
272
284
  ];
273
- const name$15 = "@eslint-react/disable-conflict-eslint-plugin-react";
274
- const rules$16 = Object.fromEntries(conflictingRules.map((key) => [key, "off"]));
285
+ const name$14 = "@eslint-react/disable-conflict-eslint-plugin-react";
286
+ const rules$15 = Object.fromEntries(conflictingRules.map((key) => [key, "off"]));
275
287
 
276
288
  //#endregion
277
289
  //#region src/configs/disable-dom.ts
278
290
  var disable_dom_exports = /* @__PURE__ */ __exportAll({
279
- name: () => name$14,
280
- rules: () => rules$15
291
+ name: () => name$13,
292
+ rules: () => rules$14
281
293
  });
282
- const name$14 = "@eslint-react/disable-dom";
283
- const rules$15 = Object.fromEntries(Object.entries(rules$19).map(([key]) => [key, "off"]));
294
+ const name$13 = "@eslint-react/disable-dom";
295
+ const rules$14 = Object.fromEntries(Object.entries(rules$19).map(([key]) => [key, "off"]));
284
296
 
285
297
  //#endregion
286
298
  //#region src/configs/disable-experimental.ts
287
299
  var disable_experimental_exports = /* @__PURE__ */ __exportAll({
288
- name: () => name$13,
289
- rules: () => rules$14
300
+ name: () => name$12,
301
+ rules: () => rules$13
290
302
  });
291
- const name$13 = "@eslint-react/disable-experimental";
292
- const rules$14 = {
303
+ const name$12 = "@eslint-react/disable-experimental";
304
+ const rules$13 = {
293
305
  "@eslint-react/jsx-key-before-spread": "off",
294
306
  "@eslint-react/jsx-no-iife": "off",
295
307
  "@eslint-react/no-duplicate-key": "off",
@@ -304,17 +316,6 @@ const rules$14 = {
304
316
  "@eslint-react/rsc/function-definition": "off"
305
317
  };
306
318
 
307
- //#endregion
308
- //#region src/configs/rsc.ts
309
- var rsc_exports = /* @__PURE__ */ __exportAll({
310
- name: () => name$12,
311
- plugins: () => plugins$8,
312
- rules: () => rules$13
313
- });
314
- const name$12 = "@eslint-react/rsc";
315
- const rules$13 = { "@eslint-react/rsc/function-definition": "error" };
316
- const plugins$8 = { "@eslint-react/rsc": reactRsc };
317
-
318
319
  //#endregion
319
320
  //#region src/configs/disable-rsc.ts
320
321
  var disable_rsc_exports = /* @__PURE__ */ __exportAll({
@@ -322,7 +323,7 @@ var disable_rsc_exports = /* @__PURE__ */ __exportAll({
322
323
  rules: () => rules$12
323
324
  });
324
325
  const name$11 = "@eslint-react/disable-rsc";
325
- const rules$12 = Object.fromEntries(Object.entries(rules$13).map(([key]) => [key, "off"]));
326
+ const rules$12 = Object.fromEntries(Object.entries(rules$18).map(([key]) => [key, "off"]));
326
327
 
327
328
  //#endregion
328
329
  //#region src/configs/disable-type-checked.ts
@@ -384,7 +385,7 @@ const rules$8 = {
384
385
  "@eslint-react/dom/no-render-return-value": "error"
385
386
  };
386
387
  const plugins$6 = {
387
- ...plugins$10,
388
+ ...plugins$9,
388
389
  ...plugins$11
389
390
  };
390
391
 
@@ -396,7 +397,7 @@ var off_exports = /* @__PURE__ */ __exportAll({
396
397
  });
397
398
  const name$6 = "@eslint-react/off";
398
399
  const rules$7 = {
399
- ...Object.fromEntries(Object.entries(rules$17).map(([key]) => [key, "off"])),
400
+ ...Object.fromEntries(Object.entries(rules$16).map(([key]) => [key, "off"])),
400
401
  ...rules$11
401
402
  };
402
403
 
@@ -410,7 +411,7 @@ var recommended_exports = /* @__PURE__ */ __exportAll({
410
411
  });
411
412
  const name$5 = "@eslint-react/recommended";
412
413
  const rules$6 = {
413
- ...rules$18,
414
+ ...rules$17,
414
415
  ...rules$19,
415
416
  ...rules$10,
416
417
  "@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": "warn",
@@ -419,7 +420,7 @@ const rules$6 = {
419
420
  "@eslint-react/naming-convention/use-state": "warn"
420
421
  };
421
422
  const plugins$5 = {
422
- ...plugins$10,
423
+ ...plugins$9,
423
424
  ...plugins$11,
424
425
  ...plugins$7,
425
426
  "@eslint-react/hooks-extra": reactHooksExtra,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/eslint-plugin",
3
- "version": "2.9.1",
3
+ "version": "2.9.2-beta.0",
4
4
  "description": "A unified plugin that combines all individual plugins from the eslint-react monorepo into one.",
5
5
  "keywords": [
6
6
  "react",
@@ -45,14 +45,14 @@
45
45
  "@typescript-eslint/types": "^8.54.0",
46
46
  "@typescript-eslint/utils": "^8.54.0",
47
47
  "ts-api-utils": "^2.4.0",
48
- "@eslint-react/eff": "2.9.1",
49
- "@eslint-react/shared": "2.9.1",
50
- "eslint-plugin-react-dom": "2.9.1",
51
- "eslint-plugin-react-rsc": "2.9.1",
52
- "eslint-plugin-react-naming-convention": "2.9.1",
53
- "eslint-plugin-react-web-api": "2.9.1",
54
- "eslint-plugin-react-hooks-extra": "2.9.1",
55
- "eslint-plugin-react-x": "2.9.1"
48
+ "@eslint-react/eff": "2.9.2-beta.0",
49
+ "@eslint-react/shared": "2.9.2-beta.0",
50
+ "eslint-plugin-react-dom": "2.9.2-beta.0",
51
+ "eslint-plugin-react-rsc": "2.9.2-beta.0",
52
+ "eslint-plugin-react-hooks-extra": "2.9.2-beta.0",
53
+ "eslint-plugin-react-web-api": "2.9.2-beta.0",
54
+ "eslint-plugin-react-naming-convention": "2.9.2-beta.0",
55
+ "eslint-plugin-react-x": "2.9.2-beta.0"
56
56
  },
57
57
  "devDependencies": {
58
58
  "tsdown": "^0.20.1",