Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

eslint-plugin-safeguard

estarlincito43MIT2.0.7TypeScript support: included

A custom ESLint plugin that provides multiple rules to enforce best practices and code safety.

eslint, eslint-plugin, safeguard, trycatch-ensurer

readme

ESLint Plugin Safeguard

A custom ESLint plugin that provides multiple rules to enforce best practices and code safety.

🚀 Features

  • Ensures await expressions are inside try-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)