/eslint-meteor-error

Eslint rule for MeteorJS to use only Meteor.Error constructor

Primary LanguageJavaScriptMIT LicenseMIT

eslint-meteor-error

Rule to alert and fix new Error constructors in Meteor projects to use new Meteor.Error instead.

meteor-lint-pic

fixable-rule

  • 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
  },