Eslint rule for MeteorJS to use only Meteor.Error constructor
MIT License
Rule to alert and fix new Error
constructors in Meteor projects to use new Meteor.Error
instead.
new Error
meteor npm i eslint-plugin-meteor-error -D
// .eslintrc.js
plugins: ["meteor-error"],
rules: {
"meteor-error/transform-error-constructor":
2, // or 1
},