From eb4b3677a27b25c10d7cc84b848b9b37a853a6aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bal=C3=A1zs=20Orb=C3=A1n?= Date: Wed, 7 Sep 2022 23:21:09 +0200 Subject: [PATCH 1/3] fix(eslint): allow `jsx` on `style` --- packages/eslint-config-next/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/eslint-config-next/index.js b/packages/eslint-config-next/index.js index 5c846dee12afd25..0bf9f9d4ab0aac0 100644 --- a/packages/eslint-config-next/index.js +++ b/packages/eslint-config-next/index.js @@ -60,6 +60,7 @@ module.exports = { plugins: ['import', 'react', 'jsx-a11y'], rules: { 'import/no-anonymous-default-export': 'warn', + 'react/no-unknown-property': [1, { allow: ['style', 'jsx'] }], 'react/react-in-jsx-scope': 'off', 'react/prop-types': 'off', 'jsx-a11y/alt-text': [ From 6ef5c20917977117bd67c3d86b5c385915f43a17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bal=C3=A1zs=20Orb=C3=A1n?= Date: Thu, 8 Sep 2022 02:42:29 +0200 Subject: [PATCH 2/3] use correct syntax to allow `jsx` as prop --- packages/eslint-config-next/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/eslint-config-next/index.js b/packages/eslint-config-next/index.js index 0bf9f9d4ab0aac0..68da742c9d50888 100644 --- a/packages/eslint-config-next/index.js +++ b/packages/eslint-config-next/index.js @@ -60,7 +60,7 @@ module.exports = { plugins: ['import', 'react', 'jsx-a11y'], rules: { 'import/no-anonymous-default-export': 'warn', - 'react/no-unknown-property': [1, { allow: ['style', 'jsx'] }], + 'react/no-unknown-property': [2, { ignore: ['jsx'] }], 'react/react-in-jsx-scope': 'off', 'react/prop-types': 'off', 'jsx-a11y/alt-text': [ From d39704035da35c944c0928ba1a14cbe8efb95203 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bal=C3=A1zs=20Orb=C3=A1n?= Date: Thu, 8 Sep 2022 15:49:43 +0200 Subject: [PATCH 3/3] turn off `reract/no-unknown-property` --- packages/eslint-config-next/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/eslint-config-next/index.js b/packages/eslint-config-next/index.js index 68da742c9d50888..24a28c0c523b543 100644 --- a/packages/eslint-config-next/index.js +++ b/packages/eslint-config-next/index.js @@ -60,7 +60,7 @@ module.exports = { plugins: ['import', 'react', 'jsx-a11y'], rules: { 'import/no-anonymous-default-export': 'warn', - 'react/no-unknown-property': [2, { ignore: ['jsx'] }], + 'react/no-unknown-property': 'off', 'react/react-in-jsx-scope': 'off', 'react/prop-types': 'off', 'jsx-a11y/alt-text': [