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 err = new Error();
throw err;throw Error('Foo');throw new TypeError('Foo');const err = new Error('Foo');
throw err;