From 382ce009afefe2b07c7ec42e8944d3a35829f2d8 Mon Sep 17 00:00:00 2001 From: Alexandre Daubricourt Date: Sun, 2 Jun 2024 17:04:19 +0200 Subject: [PATCH] docs: added more package managers --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 635b4fe..775e886 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,14 @@ yarn add -D eslint-plugin-exception-handling ``` +```bash +npm i -D eslint-plugin-exception-handling +``` + +```bash +pnpm add -D eslint-plugin-exception-handling +``` + # Usage Sample `eslint.config.js`: @@ -52,6 +60,7 @@ export default [ - Currently, only user-defined functions are checked. This means that built-in functions that might throw exceptions are not yet linted. I'm working on a feature for that, but it's quite a grind to list all the built-in functions that might throw exceptions. If you want to help feel free to open a PR. # TODO + - Add an option to only lint if there is no function further up the stack with no try-catch, instead of linting if the direct calling function has no try-catch # Rules