From e85ff13d133eb8df845ccccf13f73ef70997e857 Mon Sep 17 00:00:00 2001 From: Xvezda Date: Sun, 22 Jun 2025 03:12:56 +0900 Subject: [PATCH 1/2] Update package.json --- package.json | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index 224c1e7..6813603 100644 --- a/package.json +++ b/package.json @@ -14,19 +14,22 @@ "scripts": { "test": "node --require ./test-setup.js --test", "build": "npx tsc --project tsconfig-prod.json", - "prepublish": "npx tsc --project tsconfig-prod.json" + "lint": "npx eslint src", + "prepublish": "pnpm run lint && pnpm run build" }, "keywords": [ - "eslint", - "eslintplugin", - "eslint-plugin", - "try-catch", - "jsdoc", - "typescript", - "typescript-eslint", "plugin", "rules", - "eslint-rules" + "typescript", + "jsdoc", + "eslint", + "tslint", + "eslint-plugin", + "best-practices", + "exceptions", + "eslint-rules", + "exception-handling", + "typescript-eslint" ], "author": "Xvezda ", "homepage": "https://github.com/Xvezda/eslint-plugin-explicit-exceptions", From 86f356f964aea8696e83bb4c5c66e86574e5ae4d Mon Sep 17 00:00:00 2001 From: Xvezda Date: Sun, 22 Jun 2025 03:27:09 +0900 Subject: [PATCH 2/2] Misc changes --- jsconfig.json | 4 +++- src/rules/check-throws-tag-type.js | 1 + src/rules/no-undocumented-throws.js | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/jsconfig.json b/jsconfig.json index da5bb85..b66f2d5 100644 --- a/jsconfig.json +++ b/jsconfig.json @@ -110,5 +110,7 @@ /* Completeness */ // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */ "skipLibCheck": true /* Skip type checking all .d.ts files. */ - } + }, + "include": ["src/**/*.js", "tests/**/*.js"], + "exclude": ["src/**/*.test.js", "node_modules", "dist", "examples"] } diff --git a/src/rules/check-throws-tag-type.js b/src/rules/check-throws-tag-type.js index 7c6d37c..6da9fa4 100644 --- a/src/rules/check-throws-tag-type.js +++ b/src/rules/check-throws-tag-type.js @@ -674,6 +674,7 @@ module.exports = createRule({ callbackNode = /** @type {import('@typescript-eslint/utils').TSESTree.FunctionLike | null} */ (declaration); + break; } default: break; diff --git a/src/rules/no-undocumented-throws.js b/src/rules/no-undocumented-throws.js index d55dfa4..2277293 100644 --- a/src/rules/no-undocumented-throws.js +++ b/src/rules/no-undocumented-throws.js @@ -600,6 +600,7 @@ module.exports = createRule({ callbackNode = /** @type {import('@typescript-eslint/utils').TSESTree.FunctionLike | null} */ (declaration); + break; } default: break;