Theme switching ESLint rules #54570
Annotations
10 errors
lint:
src/components/HTMLEngineProvider/BaseHTMLEngineProvider.js#L7
'@styles/utils/fontFamily/singleFontFamily' import is restricted from being used by a pattern. Do not import style util functions directly. Please use the `useStyleUtils` hook or `withStyleUtils` HOC instead
|
lint:
src/components/Onfido/BaseOnfidoWeb.js#L8
'@styles/utils/fontFamily' import is restricted from being used by a pattern. Do not import style util functions directly. Please use the `useStyleUtils` hook or `withStyleUtils` HOC instead
|
lint:
src/components/Onfido/BaseOnfidoWeb.js#L9
'@styles/utils/fontWeight/bold' import is restricted from being used by a pattern. Do not import style util functions directly. Please use the `useStyleUtils` hook or `withStyleUtils` HOC instead
|
lint:
src/components/Text.tsx#L5
'@styles/utils/fontFamily' import is restricted from being used by a pattern. Do not import style util functions directly. Please use the `useStyleUtils` hook or `withStyleUtils` HOC instead
|
lint:
src/components/ThemeStylesProvider.tsx#L5
'default' import from '@styles/utils' is restricted. Do not import StyleUtils directly. Please use the `useStyleUtils` hook or `withStyleUtils` HOC instead
|
lint:
src/libs/Navigation/AppNavigator/getRootNavigatorScreenOptions.ts#L3
'@styles/utils/getNavigationModalCardStyles' import is restricted from being used by a pattern. Do not import style util functions directly. Please use the `useStyleUtils` hook or `withStyleUtils` HOC instead
|
lint:
src/libs/Navigation/AppNavigator/modalCardStyleInterpolator.ts#L3
'@styles/utils/cardStyles' import is restricted from being used by a pattern. Do not import style util functions directly. Please use the `useStyleUtils` hook or `withStyleUtils` HOC instead
|
lint:
src/libs/PopoverWithMeasuredContentUtils.ts#L1
'@styles/utils/roundToNearestMultipleOfFour' import is restricted from being used by a pattern. Do not import style util functions directly. Please use the `useStyleUtils` hook or `withStyleUtils` HOC instead
|
lint:
src/styles/theme/context/ThemeStylesContext.ts#L4
'DefaultStyleUtils' import from '@styles/utils' is restricted. Do not import StyleUtils directly. Please use the `useStyleUtils` hook or `withStyleUtils` HOC instead
|
lint:
src/styles/utils/cardStyles/index.ts#L1
'@styles/utils/positioning' import is restricted from being used by a pattern. Do not import style util functions directly. Please use the `useStyleUtils` hook or `withStyleUtils` HOC instead
|