@eslint-react/eslint-plugin 2.6.3-beta.0 → 2.6.4-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.
package/README.md CHANGED
@@ -156,6 +156,8 @@ export default defineConfig(
156
156
  Disable rules in the `dom` preset.
157
157
  - `disable-web-api`\
158
158
  Disable rules in the `web-api` preset.
159
+ - `disable-experimental`\
160
+ Disable rules that have an "🧪 Experimental" feature flag.
159
161
  - `disable-type-checked`\
160
162
  Disable rules that require type information.
161
163
  - `disable-conflict-eslint-plugin-react`\
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-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-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";
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
@@ -9,9 +9,9 @@ import { DEFAULT_ESLINT_REACT_SETTINGS } from "@eslint-react/shared";
9
9
  var __defProp = Object.defineProperty;
10
10
  var __exportAll = (all, symbols) => {
11
11
  let target = {};
12
- for (var name$17 in all) {
13
- __defProp(target, name$17, {
14
- get: all[name$17],
12
+ for (var name$18 in all) {
13
+ __defProp(target, name$18, {
14
+ get: all[name$18],
15
15
  enumerable: true
16
16
  });
17
17
  }
@@ -23,18 +23,18 @@ var __exportAll = (all, symbols) => {
23
23
 
24
24
  //#endregion
25
25
  //#region package.json
26
- var name$16 = "@eslint-react/eslint-plugin";
27
- var version = "2.6.3-beta.0";
26
+ var name$17 = "@eslint-react/eslint-plugin";
27
+ var version = "2.6.4-beta.0";
28
28
 
29
29
  //#endregion
30
30
  //#region src/configs/dom.ts
31
31
  var dom_exports = /* @__PURE__ */ __exportAll({
32
- name: () => name$15,
32
+ name: () => name$16,
33
33
  plugins: () => plugins$10,
34
- rules: () => rules$16
34
+ rules: () => rules$17
35
35
  });
36
- const name$15 = "@eslint-react/dom";
37
- const rules$16 = {
36
+ const name$16 = "@eslint-react/dom";
37
+ const rules$17 = {
38
38
  "@eslint-react/dom/no-dangerously-set-innerhtml": "warn",
39
39
  "@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error",
40
40
  "@eslint-react/dom/no-find-dom-node": "error",
@@ -53,13 +53,13 @@ const plugins$10 = { "@eslint-react/dom": reactDom };
53
53
  //#endregion
54
54
  //#region src/configs/x.ts
55
55
  var x_exports = /* @__PURE__ */ __exportAll({
56
- name: () => name$14,
56
+ name: () => name$15,
57
57
  plugins: () => plugins$9,
58
- rules: () => rules$15,
58
+ rules: () => rules$16,
59
59
  settings: () => settings$8
60
60
  });
61
- const name$14 = "@eslint-react/x";
62
- const rules$15 = {
61
+ const name$15 = "@eslint-react/x";
62
+ const rules$16 = {
63
63
  "@eslint-react/jsx-key-before-spread": "warn",
64
64
  "@eslint-react/jsx-no-comment-textnodes": "warn",
65
65
  "@eslint-react/jsx-no-duplicate-props": "warn",
@@ -106,13 +106,13 @@ const settings$8 = { "react-x": DEFAULT_ESLINT_REACT_SETTINGS };
106
106
  //#endregion
107
107
  //#region src/configs/all.ts
108
108
  var all_exports = /* @__PURE__ */ __exportAll({
109
- name: () => name$13,
109
+ name: () => name$14,
110
110
  plugins: () => plugins$8,
111
- rules: () => rules$14,
111
+ rules: () => rules$15,
112
112
  settings: () => settings$7
113
113
  });
114
- const name$13 = "@eslint-react/all";
115
- const rules$14 = {
114
+ const name$14 = "@eslint-react/all";
115
+ const rules$15 = {
116
116
  "@eslint-react/jsx-key-before-spread": "warn",
117
117
  "@eslint-react/jsx-no-comment-textnodes": "warn",
118
118
  "@eslint-react/jsx-no-duplicate-props": "warn",
@@ -217,8 +217,8 @@ const settings$7 = { ...settings$8 };
217
217
  //#endregion
218
218
  //#region src/configs/disable-conflict-eslint-plugin-react.ts
219
219
  var disable_conflict_eslint_plugin_react_exports = /* @__PURE__ */ __exportAll({
220
- name: () => name$12,
221
- rules: () => rules$13
220
+ name: () => name$13,
221
+ rules: () => rules$14
222
222
  });
223
223
  const conflictingRules = [
224
224
  "react/button-has-type",
@@ -268,17 +268,38 @@ const conflictingRules = [
268
268
  "react/prop-types",
269
269
  "react/void-dom-elements-no-children"
270
270
  ];
271
- const name$12 = "@eslint-react/disable-conflict-eslint-plugin-react";
272
- const rules$13 = Object.fromEntries(conflictingRules.map((key) => [key, "off"]));
271
+ const name$13 = "@eslint-react/disable-conflict-eslint-plugin-react";
272
+ const rules$14 = Object.fromEntries(conflictingRules.map((key) => [key, "off"]));
273
273
 
274
274
  //#endregion
275
275
  //#region src/configs/disable-dom.ts
276
276
  var disable_dom_exports = /* @__PURE__ */ __exportAll({
277
+ name: () => name$12,
278
+ rules: () => rules$13
279
+ });
280
+ const name$12 = "@eslint-react/disable-dom";
281
+ const rules$13 = Object.fromEntries(Object.entries(rules$17).map(([key]) => [key, "off"]));
282
+
283
+ //#endregion
284
+ //#region src/configs/disable-experimental.ts
285
+ var disable_experimental_exports = /* @__PURE__ */ __exportAll({
277
286
  name: () => name$11,
278
287
  rules: () => rules$12
279
288
  });
280
- const name$11 = "@eslint-react/disable-dom";
281
- const rules$12 = Object.fromEntries(Object.entries(rules$16).map(([key]) => [key, "off"]));
289
+ const name$11 = "@eslint-react/disable-experimental";
290
+ const rules$12 = {
291
+ "@eslint-react/jsx-key-before-spread": "off",
292
+ "@eslint-react/jsx-no-iife": "off",
293
+ "@eslint-react/no-duplicate-key": "off",
294
+ "@eslint-react/no-implicit-key": "off",
295
+ "@eslint-react/no-misused-capture-owner-stack": "off",
296
+ "@eslint-react/no-unnecessary-key": "off",
297
+ "@eslint-react/no-unnecessary-use-callback": "off",
298
+ "@eslint-react/no-unnecessary-use-memo": "off",
299
+ "@eslint-react/no-unnecessary-use-ref": "off",
300
+ "@eslint-react/no-unused-props": "off",
301
+ "@eslint-react/prefer-read-only-props": "off"
302
+ };
282
303
 
283
304
  //#endregion
284
305
  //#region src/configs/disable-type-checked.ts
@@ -352,7 +373,7 @@ var off_exports = /* @__PURE__ */ __exportAll({
352
373
  });
353
374
  const name$6 = "@eslint-react/off";
354
375
  const rules$7 = {
355
- ...Object.fromEntries(Object.entries(rules$14).map(([key]) => [key, "off"])),
376
+ ...Object.fromEntries(Object.entries(rules$15).map(([key]) => [key, "off"])),
356
377
  ...rules$11
357
378
  };
358
379
 
@@ -366,8 +387,8 @@ var recommended_exports = /* @__PURE__ */ __exportAll({
366
387
  });
367
388
  const name$5 = "@eslint-react/recommended";
368
389
  const rules$6 = {
369
- ...rules$15,
370
390
  ...rules$16,
391
+ ...rules$17,
371
392
  ...rules$10,
372
393
  "@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": "warn",
373
394
  "@eslint-react/naming-convention/context-name": "warn",
@@ -496,13 +517,14 @@ const settings = { ...settings$1 };
496
517
  //#region src/index.ts
497
518
  const plugin = {
498
519
  meta: {
499
- name: name$16,
520
+ name: name$17,
500
521
  version
501
522
  },
502
523
  configs: {
503
524
  ["all"]: all_exports,
504
525
  ["disable-conflict-eslint-plugin-react"]: disable_conflict_eslint_plugin_react_exports,
505
526
  ["disable-dom"]: disable_dom_exports,
527
+ ["disable-experimental"]: disable_experimental_exports,
506
528
  ["disable-type-checked"]: disable_type_checked_exports,
507
529
  ["disable-web-api"]: disable_web_api_exports,
508
530
  ["dom"]: dom_exports,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/eslint-plugin",
3
- "version": "2.6.3-beta.0",
3
+ "version": "2.6.4-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,13 +45,13 @@
45
45
  "@typescript-eslint/types": "^8.53.0",
46
46
  "@typescript-eslint/utils": "^8.53.0",
47
47
  "ts-api-utils": "^2.4.0",
48
- "@eslint-react/eff": "2.6.3-beta.0",
49
- "eslint-plugin-react-dom": "2.6.3-beta.0",
50
- "eslint-plugin-react-hooks-extra": "2.6.3-beta.0",
51
- "@eslint-react/shared": "2.6.3-beta.0",
52
- "eslint-plugin-react-naming-convention": "2.6.3-beta.0",
53
- "eslint-plugin-react-web-api": "2.6.3-beta.0",
54
- "eslint-plugin-react-x": "2.6.3-beta.0"
48
+ "@eslint-react/eff": "2.6.4-beta.0",
49
+ "@eslint-react/shared": "2.6.4-beta.0",
50
+ "eslint-plugin-react-dom": "2.6.4-beta.0",
51
+ "eslint-plugin-react-hooks-extra": "2.6.4-beta.0",
52
+ "eslint-plugin-react-naming-convention": "2.6.4-beta.0",
53
+ "eslint-plugin-react-web-api": "2.6.4-beta.0",
54
+ "eslint-plugin-react-x": "2.6.4-beta.0"
55
55
  },
56
56
  "devDependencies": {
57
57
  "tsdown": "^0.20.0-beta.3",