Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vit0rr/eslint-meteor-error
Eslint rule for MeteorJS to use only Meteor.Error constructor
https://github.com/vit0rr/eslint-meteor-error
error eslint eslint-meteor eslint-meteor-error meteor meteor-error meteorjs
Last synced: 24 days ago
JSON representation
Eslint rule for MeteorJS to use only Meteor.Error constructor
- Host: GitHub
- URL: https://github.com/vit0rr/eslint-meteor-error
- Owner: vit0rr
- License: mit
- Created: 2024-03-12T11:19:43.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-03-17T16:21:01.000Z (8 months ago)
- Last Synced: 2024-10-01T05:05:33.667Z (about 1 month ago)
- Topics: error, eslint, eslint-meteor, eslint-meteor-error, meteor, meteor-error, meteorjs
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/eslint-plugin-meteor-error
- Size: 157 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## eslint-meteor-error
Rule to alert and fix `new Error` constructors in Meteor projects to use `new Meteor.Error` instead.
![meteor-lint-pic](https://github.com/vit0rr/eslint-meteor-error/assets/70543018/00175c25-0738-4903-8083-3eff4ead4ab1)
![fixable-rule](https://github.com/vit0rr/eslint-meteor-error/assets/70543018/1ff4e550-3066-4378-bfa4-e7b5a1286359)
- Alert/Error using `new Error`
- Fixable rule## How to install
```sh
meteor npm i eslint-plugin-meteor-error -D
``````javascript
// .eslintrc.jsplugins: ["meteor-error"],
rules: {
"meteor-error/transform-error-constructor":
2, // or 1
},
```