@masknet/no-default-error
Restrict the usage of default (unextended) error
This rule aims to restrict the usage of default errors in the project (in favor of custom ones)
throw Error()
throw new Error()
class UserDefinedError extends Error {
constructor(message) {
super(message)
}
}
throw new UserDefinedError()
https://github.com/andrewms2013/eslint-plugin-no-default-error