import { styles } from '@dotcom-tool-kit/logger' export const movedPluginOptions = >(option: string, task: string, newName = option) => [ (options: T) => !(option in options), { message: `the option ${styles.code(option)} has moved to ${styles.code( `options.tasks.${styles.task(task)}.${newName}` )}` } ] as const