From 7673ac126e6d075c74012f640f560b6e97f07841 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Costa?= Date: Wed, 25 Nov 2026 15:22:29 +0100 Subject: [PATCH] feat(lint): share the JSX boolean shorthand rule --- .changeset/shared-jsx-boolean.md | 9 +++++ .../eslint-config-react/eslint.config.mjs | 13 +++---- packages/eslint-config-react/package.json | 4 +- .../rules/jsx-shorthand-boolean.mjs | 25 ------------ packages/eslint-plugin/index.mjs | 12 ++++++ packages/eslint-plugin/package.json | 29 ++++++++++++++ .../rules/jsx-shorthand-boolean.mjs | 30 +++++++++++++++ .../rules/jsx-shorthand-boolean.test.mjs | 13 +++++-- packages/oxlint-config-react/index.mjs | 19 ++++++---- packages/oxlint-config-react/package.json | 2 +- pnpm-lock.yaml | 38 ++++++------------- 11 files changed, 120 insertions(+), 74 deletions(-) create mode 100644 .changeset/shared-jsx-boolean.md delete mode 100644 packages/eslint-config-react/rules/jsx-shorthand-boolean.mjs create mode 100644 packages/eslint-plugin/index.mjs create mode 100644 packages/eslint-plugin/package.json create mode 100644 packages/eslint-plugin/rules/jsx-shorthand-boolean.mjs rename packages/{eslint-config-react => eslint-plugin}/rules/jsx-shorthand-boolean.test.mjs (72%) diff --git a/.changeset/shared-jsx-boolean.md b/.changeset/shared-jsx-boolean.md new file mode 100644 index 00000000..8b860748 --- /dev/null +++ b/.changeset/shared-jsx-boolean.md @@ -0,0 +1,9 @@ +--- +'@frontify/eslint-config-react': patch +'@frontify/eslint-plugin': patch +'@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 `