import Config from '../types/config/Config' ; import NormalizedPath from '../types/NormalizedPath' ; import getConfigManager from './getConfigManager' ; export default function getConfigsForFile ( filePath ) { const partialFenceSet = getConfigManager ( ) . getPartialConfigSetForPath ( filePath ) ; return Object . entries ( partialFenceSet ) . map ( ( [ _configPath , config ] ) => config ) ; }