From 578c3d64efe9c16879b57235bad4392463ee2e20 Mon Sep 17 00:00:00 2001 From: zomars Date: Tue, 12 Jul 2022 14:57:49 -0600 Subject: [PATCH] Enables react/self-closing-comp lint rule --- packages/config/eslint-preset.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/config/eslint-preset.js b/packages/config/eslint-preset.js index 95a4fda02f..81d9a9931f 100644 --- a/packages/config/eslint-preset.js +++ b/packages/config/eslint-preset.js @@ -17,6 +17,7 @@ module.exports = { "@next/next/no-html-link-for-pages": "off", "jsx-a11y/role-supports-aria-props": "off", // @see https://github.com/vercel/next.js/issues/27989#issuecomment-897638654 "react/jsx-curly-brace-presence": ["error", { props: "never", children: "never" }], + "react/self-closing-comp": ["error", { component: true, html: true }], }, overrides: [ {