When I import my dependency's dependency eslint will emit node/no-extraneous-import error since that package is not in my package.json. What is the proper way to handle the situation?
As an example, using Chakra-UI only requires @chakra-ui/react package which has required packages as dependencies. If I want to import the default theme I can do it as import defaultTheme from '@chakra-ui/theme'; but that will emit the error. I don't like to add @chakra-ui/theme to my package.json to avoid future version mismatches.