Skip to content

Commit e17f1a3

Browse files
authored
Merge pull request #135 from Xvezda/feature/configs
feature/configs
2 parents e4d9409 + 86f356f commit e17f1a3

File tree

4 files changed

+17
-10
lines changed

4 files changed

+17
-10
lines changed

jsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,5 +110,7 @@
110110
/* Completeness */
111111
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
112112
"skipLibCheck": true /* Skip type checking all .d.ts files. */
113-
}
113+
},
114+
"include": ["src/**/*.js", "tests/**/*.js"],
115+
"exclude": ["src/**/*.test.js", "node_modules", "dist", "examples"]
114116
}

package.json

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,22 @@
1414
"scripts": {
1515
"test": "node --require ./test-setup.js --test",
1616
"build": "npx tsc --project tsconfig-prod.json",
17-
"prepublish": "npx tsc --project tsconfig-prod.json"
17+
"lint": "npx eslint src",
18+
"prepublish": "pnpm run lint && pnpm run build"
1819
},
1920
"keywords": [
20-
"eslint",
21-
"eslintplugin",
22-
"eslint-plugin",
23-
"try-catch",
24-
"jsdoc",
25-
"typescript",
26-
"typescript-eslint",
2721
"plugin",
2822
"rules",
29-
"eslint-rules"
23+
"typescript",
24+
"jsdoc",
25+
"eslint",
26+
"tslint",
27+
"eslint-plugin",
28+
"best-practices",
29+
"exceptions",
30+
"eslint-rules",
31+
"exception-handling",
32+
"typescript-eslint"
3033
],
3134
"author": "Xvezda <[email protected]>",
3235
"homepage": "https://github.com/Xvezda/eslint-plugin-explicit-exceptions",

src/rules/check-throws-tag-type.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -674,6 +674,7 @@ module.exports = createRule({
674674
callbackNode =
675675
/** @type {import('@typescript-eslint/utils').TSESTree.FunctionLike | null} */
676676
(declaration);
677+
break;
677678
}
678679
default:
679680
break;

src/rules/no-undocumented-throws.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,7 @@ module.exports = createRule({
600600
callbackNode =
601601
/** @type {import('@typescript-eslint/utils').TSESTree.FunctionLike | null} */
602602
(declaration);
603+
break;
603604
}
604605
default:
605606
break;

0 commit comments

Comments
 (0)