From c4b52720529535a756b790ea71e9e9c9af2f7232 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Costa?= Date: Thu, 3 Dec 2026 13:54:36 +0100 Subject: [PATCH] feat(lint): reject unnecessary type parameters --- .changeset/calm-rules-warn.md | 2 +- .changeset/shared-jsx-boolean.md | 2 +- .changeset/use-related-type-parameters.md | 8 ++++++++ packages/eslint-config-basic/eslint.config.mjs | 1 + packages/eslint-config-react/eslint.config.mjs | 2 +- .../eslint-plugin/rules/no-unchecked-json-cast.mjs | 2 ++ packages/oxlint-config-basic/index.mjs | 10 +++++----- 7 files changed, 19 insertions(+), 8 deletions(-) create mode 100644 .changeset/use-related-type-parameters.md diff --git a/.changeset/calm-rules-warn.md b/.changeset/calm-rules-warn.md index b1fcd9e7..309bb8f6 100644 --- a/.changeset/calm-rules-warn.md +++ b/.changeset/calm-rules-warn.md @@ -7,4 +7,4 @@ Report nested ternaries, redundant `else` branches, array `reduce`, and lint exc Check existing JSDoc for summaries and tag formatting. If a documented function has a parameter or destructured prop with a default, include an `@default` tag with its value. Keep JSDoc types in JavaScript and use TypeScript annotations in TypeScript. -Warn about function complexity, nesting depth, parameter count, and parameter mutation. Tests and stories omit those warnings and the errors for nested ternaries and redundant `else` branches. +Report function complexity, nesting depth, parameter count, and parameter mutation as errors. Tests and stories omit these checks and the checks for nested ternaries and redundant `else` branches. diff --git a/.changeset/shared-jsx-boolean.md b/.changeset/shared-jsx-boolean.md index 8b860748..885beb64 100644 --- a/.changeset/shared-jsx-boolean.md +++ b/.changeset/shared-jsx-boolean.md @@ -4,6 +4,6 @@ '@frontify/oxlint-config-react': minor --- -Share the JSX boolean shorthand rule between ESLint and Oxlint. Oxlint now reports explicit `={true}` on JSX props as an error. Use the prop name alone, such as `