diff --git a/packages/plugins/eslint-plugin-react-x/src/configs/recommended-type-checked.ts b/packages/plugins/eslint-plugin-react-x/src/configs/recommended-type-checked.ts index 67b86de33..caee1003d 100644 --- a/packages/plugins/eslint-plugin-react-x/src/configs/recommended-type-checked.ts +++ b/packages/plugins/eslint-plugin-react-x/src/configs/recommended-type-checked.ts @@ -7,6 +7,7 @@ export const name = "react-x/recommended-type-checked"; export const rules = { ...recommendedTypeScript.rules, "react-x/no-leaked-conditional-rendering": "warn", + "react-x/no-unused-props": "warn", // "react-x/prefer-read-only-props": "warn", } as const satisfies RulePreset; diff --git a/packages/plugins/eslint-plugin-react-x/src/rules/no-unused-props.md b/packages/plugins/eslint-plugin-react-x/src/rules/no-unused-props.md index 5fd8990c6..a72ac4c45 100644 --- a/packages/plugins/eslint-plugin-react-x/src/rules/no-unused-props.md +++ b/packages/plugins/eslint-plugin-react-x/src/rules/no-unused-props.md @@ -14,6 +14,14 @@ react-x/no-unused-props @eslint-react/no-unused-props ``` +**Features** + +`💭` `🧪` + +**Presets** + +- `recommended-type-checked` + ## Description Warns about unused component prop declarations. diff --git a/packages/plugins/eslint-plugin/src/configs/recommended-type-checked.ts b/packages/plugins/eslint-plugin/src/configs/recommended-type-checked.ts index 62ef6c7dd..cbd0d9922 100644 --- a/packages/plugins/eslint-plugin/src/configs/recommended-type-checked.ts +++ b/packages/plugins/eslint-plugin/src/configs/recommended-type-checked.ts @@ -7,6 +7,7 @@ export const name = "@eslint-react/recommended-type-checked"; export const rules = { ...recommendedTypeScript.rules, "@eslint-react/no-leaked-conditional-rendering": "warn", + "@eslint-react/no-unused-props": "warn", // "@eslint-react/prefer-read-only-props": "warn", } as const satisfies RulePreset;