Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.forEach(key => {
const unknownMessage = `Unknown key '${bold(key)}'.`;
const suggestedKey = didYouMean(key, availableConfigKeys);
const suggestedMessage = suggestedKey
? ` Did you mean '${bold(suggestedKey)}'?`
: '';
errors.push(`:question: ${unknownMessage}${suggestedMessage}`);
});