eslint-plugin-react-x 2.1.0-next.6 → 2.1.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 +8 -13
  2. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -29,7 +29,7 @@ var __export = (all) => {
29
29
  //#endregion
30
30
  //#region package.json
31
31
  var name$3 = "eslint-plugin-react-x";
32
- var version = "2.1.0-next.6";
32
+ var version = "2.1.0";
33
33
 
34
34
  //#endregion
35
35
  //#region src/utils/create-rule.ts
@@ -3531,11 +3531,11 @@ const plugin = {
3531
3531
  var recommended_exports = /* @__PURE__ */ __export({
3532
3532
  name: () => name$2,
3533
3533
  plugins: () => plugins$2,
3534
- rules: () => rules$4,
3534
+ rules: () => rules$3,
3535
3535
  settings: () => settings$2
3536
3536
  });
3537
3537
  const name$2 = "react-x/recommended";
3538
- const rules$4 = {
3538
+ const rules$3 = {
3539
3539
  "react-x/jsx-no-comment-textnodes": "warn",
3540
3540
  "react-x/jsx-no-duplicate-props": "warn",
3541
3541
  "react-x/jsx-uses-react": "warn",
@@ -3571,7 +3571,6 @@ const rules$4 = {
3571
3571
  "react-x/no-unsafe-component-will-mount": "warn",
3572
3572
  "react-x/no-unsafe-component-will-receive-props": "warn",
3573
3573
  "react-x/no-unsafe-component-will-update": "warn",
3574
- "react-x/no-unused-class-component-members": "warn",
3575
3574
  "react-x/no-use-context": "warn",
3576
3575
  "react-x/no-useless-forward-ref": "warn",
3577
3576
  "react-x/prefer-use-state-lazy-initialization": "warn"
@@ -3579,15 +3578,11 @@ const rules$4 = {
3579
3578
  const plugins$2 = { "react-x": plugin };
3580
3579
  const settings$2 = { "react-x": DEFAULT_ESLINT_REACT_SETTINGS };
3581
3580
 
3582
- //#endregion
3583
- //#region src/configs/_tc.ts
3584
- const rules$3 = {
3585
- "react-x/no-leaked-conditional-rendering": "warn",
3586
- "react-x/no-unused-props": "warn"
3587
- };
3588
-
3589
3581
  //#endregion
3590
3582
  //#region src/configs/_ts.ts
3583
+ /**
3584
+ * Disables rules that are already handled by TypeScript
3585
+ */
3591
3586
  const rules$2 = {
3592
3587
  "react-x/jsx-no-duplicate-props": "off",
3593
3588
  "react-x/jsx-no-undef": "off",
@@ -3605,7 +3600,7 @@ var recommended_typescript_exports = /* @__PURE__ */ __export({
3605
3600
  });
3606
3601
  const name$1 = "react-x/recommended-typescript";
3607
3602
  const rules$1 = {
3608
- ...rules$4,
3603
+ ...rules$3,
3609
3604
  ...rules$2
3610
3605
  };
3611
3606
  const plugins$1 = { ...plugins$2 };
@@ -3622,7 +3617,7 @@ var recommended_type_checked_exports = /* @__PURE__ */ __export({
3622
3617
  const name = "react-x/recommended-type-checked";
3623
3618
  const rules = {
3624
3619
  ...rules$1,
3625
- ...rules$3
3620
+ "react-x/no-leaked-conditional-rendering": "error"
3626
3621
  };
3627
3622
  const plugins = { ...plugins$1 };
3628
3623
  const settings = { ...settings$1 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-x",
3
- "version": "2.1.0-next.6",
3
+ "version": "2.1.0",
4
4
  "description": "A set of composable ESLint rules for for libraries and frameworks that use React as a UI runtime.",
5
5
  "keywords": [
6
6
  "react",
@@ -43,12 +43,12 @@
43
43
  "string-ts": "^2.2.1",
44
44
  "ts-api-utils": "^2.1.0",
45
45
  "ts-pattern": "^5.8.0",
46
- "@eslint-react/ast": "2.1.0-next.6",
47
- "@eslint-react/core": "2.1.0-next.6",
48
- "@eslint-react/eff": "2.1.0-next.6",
49
- "@eslint-react/kit": "2.1.0-next.6",
50
- "@eslint-react/shared": "2.1.0-next.6",
51
- "@eslint-react/var": "2.1.0-next.6"
46
+ "@eslint-react/ast": "2.1.0",
47
+ "@eslint-react/core": "2.1.0",
48
+ "@eslint-react/eff": "2.1.0",
49
+ "@eslint-react/shared": "2.1.0",
50
+ "@eslint-react/var": "2.1.0",
51
+ "@eslint-react/kit": "2.1.0"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@types/react": "^19.2.2",