@eslint-react/eslint-plugin 2.9.0-beta.0 → 2.9.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.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { CompatibleConfig, CompatiblePlugin } from "@eslint-react/shared";
2
2
 
3
3
  //#region src/index.d.ts
4
- type ConfigName = "all" | "disable-conflict-eslint-plugin-react" | "disable-dom" | "disable-experimental" | "disable-type-checked" | "disable-web-api" | "dom" | "no-deprecated" | "off" | "recommended" | "recommended-type-checked" | "recommended-typescript" | "strict" | "strict-type-checked" | "strict-typescript" | "web-api" | "x";
4
+ type ConfigName = "all" | "disable-conflict-eslint-plugin-react" | "disable-dom" | "disable-rsc" | "disable-experimental" | "disable-type-checked" | "disable-web-api" | "dom" | "rsc" | "no-deprecated" | "off" | "recommended" | "recommended-type-checked" | "recommended-typescript" | "strict" | "strict-type-checked" | "strict-typescript" | "web-api" | "x";
5
5
  declare const plugin: CompatiblePlugin & {
6
6
  /**
7
7
  * For more information about each preset, please refer to the documentation.
package/dist/index.js CHANGED
@@ -4,6 +4,7 @@ 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
6
  import { DEFAULT_ESLINT_REACT_SETTINGS } from "@eslint-react/shared";
7
+ import reactRsc from "eslint-plugin-react-rsc";
7
8
 
8
9
  //#region rolldown:runtime
9
10
  var __defProp = Object.defineProperty;
@@ -23,18 +24,18 @@ var __exportAll = (all, symbols) => {
23
24
 
24
25
  //#endregion
25
26
  //#region package.json
26
- var name$17 = "@eslint-react/eslint-plugin";
27
- var version = "2.9.0-beta.0";
27
+ var name$19 = "@eslint-react/eslint-plugin";
28
+ var version = "2.9.0";
28
29
 
29
30
  //#endregion
30
31
  //#region src/configs/dom.ts
31
32
  var dom_exports = /* @__PURE__ */ __exportAll({
32
- name: () => name$16,
33
- plugins: () => plugins$10,
34
- rules: () => rules$17
33
+ name: () => name$18,
34
+ plugins: () => plugins$11,
35
+ rules: () => rules$19
35
36
  });
36
- const name$16 = "@eslint-react/dom";
37
- const rules$17 = {
37
+ const name$18 = "@eslint-react/dom";
38
+ const rules$19 = {
38
39
  "@eslint-react/dom/no-dangerously-set-innerhtml": "warn",
39
40
  "@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error",
40
41
  "@eslint-react/dom/no-find-dom-node": "error",
@@ -48,18 +49,18 @@ const rules$17 = {
48
49
  "@eslint-react/dom/no-use-form-state": "error",
49
50
  "@eslint-react/dom/no-void-elements-with-children": "error"
50
51
  };
51
- const plugins$10 = { "@eslint-react/dom": reactDom };
52
+ const plugins$11 = { "@eslint-react/dom": reactDom };
52
53
 
53
54
  //#endregion
54
55
  //#region src/configs/x.ts
55
56
  var x_exports = /* @__PURE__ */ __exportAll({
56
- name: () => name$15,
57
- plugins: () => plugins$9,
58
- rules: () => rules$16,
57
+ name: () => name$17,
58
+ plugins: () => plugins$10,
59
+ rules: () => rules$18,
59
60
  settings: () => settings$8
60
61
  });
61
- const name$15 = "@eslint-react/x";
62
- const rules$16 = {
62
+ const name$17 = "@eslint-react/x";
63
+ const rules$18 = {
63
64
  "@eslint-react/jsx-key-before-spread": "warn",
64
65
  "@eslint-react/jsx-no-comment-textnodes": "warn",
65
66
  "@eslint-react/jsx-no-duplicate-props": "warn",
@@ -100,19 +101,19 @@ const rules$16 = {
100
101
  "@eslint-react/no-useless-forward-ref": "warn",
101
102
  "@eslint-react/prefer-use-state-lazy-initialization": "warn"
102
103
  };
103
- const plugins$9 = { "@eslint-react": react };
104
+ const plugins$10 = { "@eslint-react": react };
104
105
  const settings$8 = { "react-x": DEFAULT_ESLINT_REACT_SETTINGS };
105
106
 
106
107
  //#endregion
107
108
  //#region src/configs/all.ts
108
109
  var all_exports = /* @__PURE__ */ __exportAll({
109
- name: () => name$14,
110
- plugins: () => plugins$8,
111
- rules: () => rules$15,
110
+ name: () => name$16,
111
+ plugins: () => plugins$9,
112
+ rules: () => rules$17,
112
113
  settings: () => settings$7
113
114
  });
114
- const name$14 = "@eslint-react/all";
115
- const rules$15 = {
115
+ const name$16 = "@eslint-react/all";
116
+ const rules$17 = {
116
117
  "@eslint-react/jsx-key-before-spread": "warn",
117
118
  "@eslint-react/jsx-no-comment-textnodes": "warn",
118
119
  "@eslint-react/jsx-no-duplicate-props": "warn",
@@ -175,7 +176,6 @@ const rules$15 = {
175
176
  "@eslint-react/prefer-namespace-import": "warn",
176
177
  "@eslint-react/prefer-read-only-props": "off",
177
178
  "@eslint-react/prefer-use-state-lazy-initialization": "warn",
178
- "@eslint-react/rsc-no-misused-use-server": "error",
179
179
  "@eslint-react/dom/no-dangerously-set-innerhtml": "warn",
180
180
  "@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error",
181
181
  "@eslint-react/dom/no-find-dom-node": "error",
@@ -194,6 +194,7 @@ const rules$15 = {
194
194
  "@eslint-react/dom/no-use-form-state": "warn",
195
195
  "@eslint-react/dom/no-void-elements-with-children": "error",
196
196
  "@eslint-react/dom/prefer-namespace-import": "warn",
197
+ "@eslint-react/rsc/function-definition": "error",
197
198
  "@eslint-react/web-api/no-leaked-event-listener": "warn",
198
199
  "@eslint-react/web-api/no-leaked-interval": "warn",
199
200
  "@eslint-react/web-api/no-leaked-resize-observer": "warn",
@@ -206,9 +207,9 @@ const rules$15 = {
206
207
  "@eslint-react/naming-convention/ref-name": "off",
207
208
  "@eslint-react/naming-convention/use-state": "warn"
208
209
  };
209
- const plugins$8 = {
210
- ...plugins$9,
210
+ const plugins$9 = {
211
211
  ...plugins$10,
212
+ ...plugins$11,
212
213
  "@eslint-react/hooks-extra": reactHooksExtra,
213
214
  "@eslint-react/naming-convention": reactNamingConvention,
214
215
  "@eslint-react/web-api": reactWebApi
@@ -218,8 +219,8 @@ const settings$7 = { ...settings$8 };
218
219
  //#endregion
219
220
  //#region src/configs/disable-conflict-eslint-plugin-react.ts
220
221
  var disable_conflict_eslint_plugin_react_exports = /* @__PURE__ */ __exportAll({
221
- name: () => name$13,
222
- rules: () => rules$14
222
+ name: () => name$15,
223
+ rules: () => rules$16
223
224
  });
224
225
  const conflictingRules = [
225
226
  "react/button-has-type",
@@ -269,26 +270,26 @@ const conflictingRules = [
269
270
  "react/prop-types",
270
271
  "react/void-dom-elements-no-children"
271
272
  ];
272
- const name$13 = "@eslint-react/disable-conflict-eslint-plugin-react";
273
- const rules$14 = Object.fromEntries(conflictingRules.map((key) => [key, "off"]));
273
+ const name$15 = "@eslint-react/disable-conflict-eslint-plugin-react";
274
+ const rules$16 = Object.fromEntries(conflictingRules.map((key) => [key, "off"]));
274
275
 
275
276
  //#endregion
276
277
  //#region src/configs/disable-dom.ts
277
278
  var disable_dom_exports = /* @__PURE__ */ __exportAll({
278
- name: () => name$12,
279
- rules: () => rules$13
279
+ name: () => name$14,
280
+ rules: () => rules$15
280
281
  });
281
- const name$12 = "@eslint-react/disable-dom";
282
- const rules$13 = Object.fromEntries(Object.entries(rules$17).map(([key]) => [key, "off"]));
282
+ const name$14 = "@eslint-react/disable-dom";
283
+ const rules$15 = Object.fromEntries(Object.entries(rules$19).map(([key]) => [key, "off"]));
283
284
 
284
285
  //#endregion
285
286
  //#region src/configs/disable-experimental.ts
286
287
  var disable_experimental_exports = /* @__PURE__ */ __exportAll({
287
- name: () => name$11,
288
- rules: () => rules$12
288
+ name: () => name$13,
289
+ rules: () => rules$14
289
290
  });
290
- const name$11 = "@eslint-react/disable-experimental";
291
- const rules$12 = {
291
+ const name$13 = "@eslint-react/disable-experimental";
292
+ const rules$14 = {
292
293
  "@eslint-react/jsx-key-before-spread": "off",
293
294
  "@eslint-react/jsx-no-iife": "off",
294
295
  "@eslint-react/no-duplicate-key": "off",
@@ -300,9 +301,29 @@ const rules$12 = {
300
301
  "@eslint-react/no-unnecessary-use-ref": "off",
301
302
  "@eslint-react/no-unused-props": "off",
302
303
  "@eslint-react/prefer-read-only-props": "off",
303
- "@eslint-react/rsc-no-misused-use-server": "off"
304
+ "@eslint-react/rsc/function-definition": "off"
304
305
  };
305
306
 
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
+ //#endregion
319
+ //#region src/configs/disable-rsc.ts
320
+ var disable_rsc_exports = /* @__PURE__ */ __exportAll({
321
+ name: () => name$11,
322
+ rules: () => rules$12
323
+ });
324
+ const name$11 = "@eslint-react/disable-rsc";
325
+ const rules$12 = Object.fromEntries(Object.entries(rules$13).map(([key]) => [key, "off"]));
326
+
306
327
  //#endregion
307
328
  //#region src/configs/disable-type-checked.ts
308
329
  var disable_type_checked_exports = /* @__PURE__ */ __exportAll({
@@ -363,8 +384,8 @@ const rules$8 = {
363
384
  "@eslint-react/dom/no-render-return-value": "error"
364
385
  };
365
386
  const plugins$6 = {
366
- ...plugins$9,
367
- ...plugins$10
387
+ ...plugins$10,
388
+ ...plugins$11
368
389
  };
369
390
 
370
391
  //#endregion
@@ -375,7 +396,7 @@ var off_exports = /* @__PURE__ */ __exportAll({
375
396
  });
376
397
  const name$6 = "@eslint-react/off";
377
398
  const rules$7 = {
378
- ...Object.fromEntries(Object.entries(rules$15).map(([key]) => [key, "off"])),
399
+ ...Object.fromEntries(Object.entries(rules$17).map(([key]) => [key, "off"])),
379
400
  ...rules$11
380
401
  };
381
402
 
@@ -389,8 +410,8 @@ var recommended_exports = /* @__PURE__ */ __exportAll({
389
410
  });
390
411
  const name$5 = "@eslint-react/recommended";
391
412
  const rules$6 = {
392
- ...rules$16,
393
- ...rules$17,
413
+ ...rules$18,
414
+ ...rules$19,
394
415
  ...rules$10,
395
416
  "@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": "warn",
396
417
  "@eslint-react/naming-convention/context-name": "warn",
@@ -398,8 +419,8 @@ const rules$6 = {
398
419
  "@eslint-react/naming-convention/use-state": "warn"
399
420
  };
400
421
  const plugins$5 = {
401
- ...plugins$9,
402
422
  ...plugins$10,
423
+ ...plugins$11,
403
424
  ...plugins$7,
404
425
  "@eslint-react/hooks-extra": reactHooksExtra,
405
426
  "@eslint-react/naming-convention": reactNamingConvention
@@ -518,7 +539,7 @@ const settings = { ...settings$1 };
518
539
  //#region src/index.ts
519
540
  const plugin = {
520
541
  meta: {
521
- name: name$17,
542
+ name: name$19,
522
543
  version
523
544
  },
524
545
  configs: {
@@ -526,6 +547,7 @@ const plugin = {
526
547
  ["disable-conflict-eslint-plugin-react"]: disable_conflict_eslint_plugin_react_exports,
527
548
  ["disable-dom"]: disable_dom_exports,
528
549
  ["disable-experimental"]: disable_experimental_exports,
550
+ ["disable-rsc"]: disable_rsc_exports,
529
551
  ["disable-type-checked"]: disable_type_checked_exports,
530
552
  ["disable-web-api"]: disable_web_api_exports,
531
553
  ["dom"]: dom_exports,
@@ -534,6 +556,7 @@ const plugin = {
534
556
  ["recommended"]: recommended_exports,
535
557
  ["recommended-type-checked"]: recommended_type_checked_exports,
536
558
  ["recommended-typescript"]: recommended_typescript_exports,
559
+ ["rsc"]: rsc_exports,
537
560
  ["strict"]: strict_exports,
538
561
  ["strict-type-checked"]: strict_type_checked_exports,
539
562
  ["strict-typescript"]: strict_typescript_exports,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/eslint-plugin",
3
- "version": "2.9.0-beta.0",
3
+ "version": "2.9.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,13 +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.0-beta.0",
49
- "@eslint-react/shared": "2.9.0-beta.0",
50
- "eslint-plugin-react-hooks-extra": "2.9.0-beta.0",
51
- "eslint-plugin-react-naming-convention": "2.9.0-beta.0",
52
- "eslint-plugin-react-dom": "2.9.0-beta.0",
53
- "eslint-plugin-react-x": "2.9.0-beta.0",
54
- "eslint-plugin-react-web-api": "2.9.0-beta.0"
48
+ "@eslint-react/eff": "2.9.0",
49
+ "@eslint-react/shared": "2.9.0",
50
+ "eslint-plugin-react-dom": "2.9.0",
51
+ "eslint-plugin-react-hooks-extra": "2.9.0",
52
+ "eslint-plugin-react-naming-convention": "2.9.0",
53
+ "eslint-plugin-react-rsc": "2.9.0",
54
+ "eslint-plugin-react-web-api": "2.9.0",
55
+ "eslint-plugin-react-x": "2.9.0"
55
56
  },
56
57
  "devDependencies": {
57
58
  "tsdown": "^0.20.1",