From bc808a5a35238bcf132f13bbda2452caa8332719 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20Norte?= Date: Mon, 10 Mar 2025 06:05:44 -0700 Subject: [PATCH] Disable no-react-native-imports rule in Fantom tests (#49911) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/49911 Changelog: [internal] The approach in Fantom tests is to use the public API as much as we can, but forcing us to use relative imports in tests makes it harder to see what's the public API and what's not. This disables the lint rule so we can use package imports in Fantom tests without warnings/errors. Reviewed By: sammy-SC Differential Revision: D70779721 fbshipit-source-id: b244e6a36060e6bc60318fe285ffcf3a81a78acd --- .eslintrc.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.eslintrc.js b/.eslintrc.js index a71d9474a48..44f80b90415 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -124,5 +124,11 @@ module.exports = { ], }, }, + { + files: ['**/*-itest{.fb,}.js'], + rules: { + 'lint/no-react-native-imports': 'off', + }, + }, ], };