From c151282c78b6a09aa849e346d7106f554de072f7 Mon Sep 17 00:00:00 2001 From: Anton Dosov Date: Thu, 26 Sep 2024 15:22:43 +0200 Subject: [PATCH] add eslint rule --- packages/kbn-eslint-config/.eslintrc.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/kbn-eslint-config/.eslintrc.js b/packages/kbn-eslint-config/.eslintrc.js index a68dc6ecd949e..202732094feef 100644 --- a/packages/kbn-eslint-config/.eslintrc.js +++ b/packages/kbn-eslint-config/.eslintrc.js @@ -171,6 +171,13 @@ module.exports = { from: 'rison-node', to: '@kbn/rison', }, + { + from: 'react-dom/client', + to: 'react-dom', + exact: true, + disallowedMessage: + 'Use `react-dom` instead of `react-dom/client` until upgraded to React 18', + }, ], ],