UNPKG

@10up/eslint-config

Version:
10 lines (8 loc) 271 B
/* eslint-disable no-console */ /* eslint-disable no-constant-condition */ const shouldNotHappen = true; if (shouldNotHappen) { console.error('Something bad happened!'); // Should not use process exit. Use throw instead. throw new Error('Something bad happened!'); }