Skip to content

Commit 7bdad71

Browse files
committed
Add typechecking to linting
1 parent c49c980 commit 7bdad71

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@
2121
"start:core": "cd ../paranext-core && npm run start",
2222
"start": "cross-env MAIN_ARGS=\"--extensions $INIT_CWD/dist\" concurrently \"npm:watch\" \"npm:start:core\"",
2323
"start:production": "cross-env MAIN_ARGS=\"--extensions $INIT_CWD/dist\" concurrently \"npm:watch:production\" \"npm:start:core\"",
24-
"lint": "npm run lint:scripts && npm run lint:styles",
24+
"stop": "cd ../paranext-core && npm run stop",
25+
"lint": "npm run lint:scripts && npm run lint:styles && npm run lint:typecheck",
2526
"lint:scripts": "cross-env NODE_ENV=development eslint --ext .cjs,.js,.jsx,.ts,.tsx --cache .",
2627
"lint:styles": "stylelint **/*.{css,scss} --allow-empty-input",
28+
"lint:typecheck": "tsc --noEmit",
2729
"lint-fix": "npm run lint-fix:scripts && npm run lint:styles -- --fix",
2830
"lint-fix:scripts": "npm run format && npm run lint:scripts",
2931
"bump-versions": "ts-node ./lib/bump-versions.ts"

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"compilerOptions": {
3+
"skipLibCheck": true,
34
"target": "ESNext",
45
"useDefineForClassFields": true,
56
"lib": ["DOM", "DOM.Iterable", "ESNext"],

0 commit comments

Comments
 (0)