https://github.com/Trott/eslint-plugin-new-with-error
Require `throw new Error()` and not `throw Error()`
https://github.com/Trott/eslint-plugin-new-with-error
Last synced: 20 days ago
JSON representation
Require `throw new Error()` and not `throw Error()`
- Host: GitHub
- URL: https://github.com/Trott/eslint-plugin-new-with-error
- Owner: Trott
- License: other
- Created: 2015-11-10T16:29:14.000Z (over 9 years ago)
- Default Branch: main
- Last Pushed: 2025-05-05T22:48:15.000Z (28 days ago)
- Last Synced: 2025-05-05T23:33:36.940Z (28 days ago)
- Language: JavaScript
- Size: 1.84 MB
- Stars: 26
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG
- License: LICENSE
Awesome Lists containing this project
- awesome-eslint - new-with-error - Require errors to be thrown using `new`. (Plugins / Practices and Specific ES Features)
- fucking-awesome-eslint - new-with-error - Require errors to be thrown using `new`. (Plugins / Practices and Specific ES Features)
- fucking-awesome-eslint - new-with-error - Require errors to be thrown using `new`. (Plugins / Practices and Specific ES Features)
README
# eslint-plugin-new-with-error
Require `throw new Error()` and not `throw Error()`* Installation: `npm install eslint-plugin-new-with-error`
* [Documentation](docs/rules/new-with-error.md)