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/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", 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;