mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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
This commit is contained in:
committed by
Facebook GitHub Bot
parent
b52f0d8391
commit
bc808a5a35
@@ -124,5 +124,11 @@ module.exports = {
|
||||
],
|
||||
},
|
||||
},
|
||||
{
|
||||
files: ['**/*-itest{.fb,}.js'],
|
||||
rules: {
|
||||
'lint/no-react-native-imports': 'off',
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user