eslint-plugin-meteor-error
v1.2.2
Published
Eslint rule for MeteorJS to use only Meteor.Error constructor
Downloads
8
Readme
eslint-meteor-error
Rule to alert and fix new Error
constructors in Meteor projects to use new Meteor.Error
instead.
- Alert/Error using
new Error
- Fixable rule
How to install
meteor npm i eslint-plugin-meteor-error -D
// .eslintrc.js
plugins: ["meteor-error"],
rules: {
"meteor-error/transform-error-constructor":
2, // or 1
},