From 3ad8740e2bcef8115209ceddbcfec42b3240999a Mon Sep 17 00:00:00 2001 From: Masafumi Koba <473530+ybiquitous@users.noreply.github.com> Date: Thu, 2 Oct 2025 16:32:56 +0900 Subject: [PATCH] Enable `skipLibCheck` in tsconfig This prevents the type error in `node_modules/`, such as: ``` Error: node_modules/strip-indent/index.d.ts(19,25): error TS2528: A module cannot have multiple default exports. ``` https://github.com/stylelint/create-stylelint/actions/runs/18186330053/job/51771262975?pr=126#step:6:51 Also, `tsc --init` outputs `skipLibCheck: true`. It's recommended. Ref https://www.typescriptlang.org/tsconfig/#skipLibCheck --- tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index a9a31b9..ba012bf 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -15,7 +15,7 @@ "noUncheckedIndexedAccess": true, "esModuleInterop": true, "resolveJsonModule": true, - "skipLibCheck": false + "skipLibCheck": true }, "include": ["src"], "exclude": ["**/*.test.js"]