From d194ecf33a05d3fe7d47be1939b4b687c93738d8 Mon Sep 17 00:00:00 2001 From: Danny Rorabaugh Date: Fri, 6 Feb 2026 09:44:32 -0500 Subject: [PATCH] Add typechecking to linting --- package.json | 3 ++- tsconfig.json | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index f60c6d0..993e48e 100644 --- a/package.json +++ b/package.json @@ -21,9 +21,10 @@ "start:core": "cd ../paranext-core && npm run start", "start": "cross-env MAIN_ARGS=\"--extensions $INIT_CWD/dist\" concurrently \"npm:watch\" \"npm:start:core\"", "start:production": "cross-env MAIN_ARGS=\"--extensions $INIT_CWD/dist\" concurrently \"npm:watch:production\" \"npm:start:core\"", - "lint": "npm run lint:scripts && npm run lint:styles", + "lint": "npm run lint:scripts && npm run lint:styles && npm run lint:typecheck", "lint:scripts": "cross-env NODE_ENV=development eslint --ext .cjs,.js,.jsx,.ts,.tsx --cache .", "lint:styles": "stylelint **/*.{css,scss} --allow-empty-input", + "lint:typecheck": "tsc --noEmit", "lint-fix": "npm run lint-fix:scripts && npm run lint:styles -- --fix", "lint-fix:scripts": "npm run format && npm run lint:scripts", "bump-versions": "ts-node ./lib/bump-versions.ts", diff --git a/tsconfig.json b/tsconfig.json index 352fbcc..6a9ab66 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,5 +1,6 @@ { "compilerOptions": { + "skipLibCheck": true, "target": "ESNext", "useDefineForClassFields": true, "lib": ["DOM", "DOM.Iterable", "ESNext"],