@eslint-react/eslint-plugin 2.2.1 → 2.2.2-next.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.js CHANGED
@@ -1,14 +1,25 @@
1
- import { __export } from "./chunk-CTAAG5j7.js";
2
- import reactDom from "eslint-plugin-react-dom";
1
+ import react from "eslint-plugin-react-x";
3
2
  import reactHooksExtra from "eslint-plugin-react-hooks-extra";
4
3
  import reactNamingConvention from "eslint-plugin-react-naming-convention";
5
4
  import reactWebApi from "eslint-plugin-react-web-api";
6
- import react from "eslint-plugin-react-x";
5
+ import reactDom from "eslint-plugin-react-dom";
7
6
  import { DEFAULT_ESLINT_REACT_SETTINGS } from "@eslint-react/shared";
8
7
 
8
+ //#region rolldown:runtime
9
+ var __defProp = Object.defineProperty;
10
+ var __export = (all) => {
11
+ let target = {};
12
+ for (var name$17 in all) __defProp(target, name$17, {
13
+ get: all[name$17],
14
+ enumerable: true
15
+ });
16
+ return target;
17
+ };
18
+
19
+ //#endregion
9
20
  //#region package.json
10
21
  var name = "@eslint-react/eslint-plugin";
11
- var version = "2.2.1";
22
+ var version = "2.2.2-next.0";
12
23
 
13
24
  //#endregion
14
25
  //#region src/configs/dom.ts
@@ -474,42 +485,6 @@ const rules = {
474
485
  const plugins = { ...plugins$1 };
475
486
  const settings = { ...settings$1 };
476
487
 
477
- //#endregion
478
- //#region src/utils/type-of.ts
479
- /**
480
- * This is an enhanced version of the typeof operator to check the type of more complex values.
481
- * In this case we just mind about arrays and objects. We can add more on demand.
482
- * @param t the value to be checked
483
- * @returns the type of the value
484
- */
485
- function typeOf(t) {
486
- return Object.prototype.toString.call(t).replace(/^\[object (.+)\]$/, "$1").toLowerCase();
487
- }
488
-
489
- //#endregion
490
- //#region src/utils/transform-keys.ts
491
- /**
492
- * This function is used to shallowly transform the keys of an object.
493
- * It will only be transformed at runtime, so it's not type safe.
494
- * @param obj the object to transform.
495
- * @param transform the function to transform the keys from string to string.
496
- * @returns the transformed object.
497
- * @example transformKeys({ 'foo-bar': { 'fizz-buzz': true } }, camelCase)
498
- * // { fooBar: { 'fizz-buzz': true } }
499
- */
500
- function transformKeys(obj, transform) {
501
- if (typeOf(obj) !== "object") return obj;
502
- const res = {};
503
- for (const key in obj) res[transform(key)] = obj[key];
504
- return res;
505
- }
506
-
507
- //#endregion
508
- //#region src/utils/pad-keys-left.ts
509
- function padKeysLeft(obj, left) {
510
- return transformKeys(obj, (key) => `${left}${key}`);
511
- }
512
-
513
488
  //#endregion
514
489
  //#region src/index.ts
515
490
  const plugin = {
@@ -517,16 +492,6 @@ const plugin = {
517
492
  name,
518
493
  version
519
494
  },
520
- rules: {
521
- ...react.rules,
522
- ...padKeysLeft(reactDom.rules, "dom/"),
523
- ...padKeysLeft(reactWebApi.rules, "web-api/"),
524
- ...padKeysLeft(reactHooksExtra.rules, "hooks-extra/"),
525
- ...padKeysLeft(reactNamingConvention.rules, "naming-convention/")
526
- }
527
- };
528
- var src_default = {
529
- ...plugin,
530
495
  configs: {
531
496
  ["all"]: all_exports,
532
497
  ["disable-conflict-eslint-plugin-react"]: disable_conflict_eslint_plugin_react_exports,
@@ -544,8 +509,10 @@ var src_default = {
544
509
  ["strict-typescript"]: strict_typescript_exports,
545
510
  ["web-api"]: web_api_exports,
546
511
  ["x"]: x_exports
547
- }
512
+ },
513
+ rules: { ...react.rules }
548
514
  };
515
+ var src_default = plugin;
549
516
 
550
517
  //#endregion
551
518
  export { src_default as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/eslint-plugin",
3
- "version": "2.2.1",
3
+ "version": "2.2.2-next.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",
@@ -37,21 +37,21 @@
37
37
  "./package.json"
38
38
  ],
39
39
  "dependencies": {
40
- "@typescript-eslint/scope-manager": "^8.46.0",
41
- "@typescript-eslint/type-utils": "^8.46.0",
42
- "@typescript-eslint/types": "^8.46.0",
43
- "@typescript-eslint/utils": "^8.46.0",
40
+ "@typescript-eslint/scope-manager": "^8.46.1",
41
+ "@typescript-eslint/type-utils": "^8.46.1",
42
+ "@typescript-eslint/types": "^8.46.1",
43
+ "@typescript-eslint/utils": "^8.46.1",
44
44
  "ts-api-utils": "^2.1.0",
45
- "@eslint-react/eff": "2.2.1",
46
- "@eslint-react/shared": "2.2.1",
47
- "eslint-plugin-react-dom": "2.2.1",
48
- "eslint-plugin-react-hooks-extra": "2.2.1",
49
- "eslint-plugin-react-naming-convention": "2.2.1",
50
- "eslint-plugin-react-web-api": "2.2.1",
51
- "eslint-plugin-react-x": "2.2.1"
45
+ "@eslint-react/eff": "2.2.2-next.0",
46
+ "@eslint-react/shared": "2.2.2-next.0",
47
+ "eslint-plugin-react-dom": "2.2.2-next.0",
48
+ "eslint-plugin-react-hooks-extra": "2.2.2-next.0",
49
+ "eslint-plugin-react-web-api": "2.2.2-next.0",
50
+ "eslint-plugin-react-x": "2.2.2-next.0",
51
+ "eslint-plugin-react-naming-convention": "2.2.2-next.0"
52
52
  },
53
53
  "devDependencies": {
54
- "tsdown": "^0.15.6",
54
+ "tsdown": "^0.15.7",
55
55
  "@local/configs": "0.0.0"
56
56
  },
57
57
  "peerDependencies": {
@@ -1,13 +0,0 @@
1
- //#region rolldown:runtime
2
- var __defProp = Object.defineProperty;
3
- var __export = (all) => {
4
- let target = {};
5
- for (var name in all) __defProp(target, name, {
6
- get: all[name],
7
- enumerable: true
8
- });
9
- return target;
10
- };
11
-
12
- //#endregion
13
- export { __export };