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