id: no-discarded-error
valid:
  - 'throw new Error("x")'
  - 'const e = new Error("x")'
  - 'throw new TypeError("x")'
invalid:
  - 'new Error("x")'
  - 'new TypeError("x")'
  - 'new RangeError("x")'
