ESLint Plugin Safeguard
A custom ESLint plugin that provides multiple rules to enforce best practices and code safety.
🚀 Features
- Ensures
await
expressions are insidetry-catch
blocks. - Helps enforce best practices for asynchronous error handling.
- Expandable with additional safety rules in the future.
📦 Installation
Install the plugin using pnpm
, npm
, or yarn
:
pnpm add -D eslint-plugin-safeguard
# or
npm install --save-dev eslint-plugin-safeguard
# or
yarn add -D eslint-plugin-safeguard
🛠 Available Rules
🔹 trycatch-ensurer
🔹 no-raw-error
🔹 consistent-import-name
📝 Contributing
Contributions are welcome! If you find a bug or have a feature request, please open an issue at GitHub Issues.
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
Author: Estarlin R (estarlincito.com)