Skip to content

Commit

Permalink
docs: added more package managers
Browse files Browse the repository at this point in the history
  • Loading branch information
Akronae committed Jun 2, 2024
1 parent 856fafa commit 382ce00
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 382ce00

Please sign in to comment.