Skip to content

vit0rr/eslint-meteor-error

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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