This rule enforces a message
value to be passed in when throwing an instance of a built-in Error
object, which leads to more readable and debuggable code.
throw Error();
throw Error('');
throw new TypeError();
const error = new Error();
throw error;
throw Error('Foo');
throw new TypeError('Foo');
const error = new Error('Foo');
throw error;