import { CONFIG_PREFIX } from './constants' ; import { Config , MeaningfulDependency } from './shared-types' ; export function isFromConfigKit ( fullConfigName ) { return fullConfigName . startsWith ( CONFIG_PREFIX ) ; } export function toConfigName ( fullConfigName ) { return fullConfigName . slice ( CONFIG_PREFIX . length ) as Config ; } export function toConfigPackage ( configName ) { return ( CONFIG_PREFIX + 'eslint-config-' + configName ) as MeaningfulDependency ; }