Skip to content

Commit

Permalink
refactor: #158 configure no-unreachable eslint rule
Browse files Browse the repository at this point in the history
  • Loading branch information
miquelbeltran committed May 1, 2024
1 parent 649f2cc commit 72264da
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ export default tseslint.config(
// Required to import JS modules
"@typescript-eslint/no-var-requires": "off",
// TODO: Remove ignored rules and fix the code
"no-unreachable": "off",
"no-useless-catch": "off",
}
}
Expand Down
2 changes: 0 additions & 2 deletions test/raygun_express_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ test("reporting express errors", async function (t) {

app.get("/", (req, res) => {
throw new Error("surprise error!");
res.send("response!");
});

app.use(raygunClient.expressHandler);
Expand Down Expand Up @@ -102,7 +101,6 @@ test("exceptions are propagated by middleware", async function (t) {

app.get("/", (req, res) => {
throw new Error("surprise error!");
res.send("response!");
});

function testErrorHandler(err, req, res, next) {
Expand Down

0 comments on commit 72264da

Please sign in to comment.