suspicious/noReactNativeDeepImports
suspicious · since 2.4.13
No autofixRecommended
biome.json
{
"linter": {
"rules": {
"suspicious": {
"noReactNativeDeepImports": "error"
}
}
}
}import View from "react-native/Libraries/Components/View/View";const Platform = require("react-native/Libraries/Utilities/Platform");const View = require("react-native/Libraries/Components/View/View");import { View } from "react-native";const { Platform } = require("react-native");Examples from the Biome documentation.
ESLint does not have this rule.
Oxlint does not have this rule.
suspicious/noReactNativeDeepImports
suspicious · since 2.4.13
{
"linter": {
"rules": {
"suspicious": {
"noReactNativeDeepImports": "error"
}
}
}
}Disallow useVisibleTask$() functions in Qwik components.
Disallow raw text outside <Text> components in React Native.
Disallow quickfix.biome in supported editor settings.
Prevents React-specific JSX properties from being used.
Disallow using variables from outside the function passed to page.evaluate() and page.addInitScript().