From 230382399df6360c776e16ab4e60be445ba083a4 Mon Sep 17 00:00:00 2001 From: Chengzhong Wu Date: Sun, 5 Apr 2026 17:28:23 -0400 Subject: [PATCH 1/2] chore: add tsconfig.json restricting `erasableSyntaxOnly` --- package.json | 2 +- tsconfig.json | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 tsconfig.json diff --git a/package.json b/package.json index 09f1d4a..5b8d6be 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "type": "module", "scripts": { "node:test": "node --test ./implementors/node/run-tests.ts", - "lint": "eslint", + "lint": "eslint && tsc -p .", "addons:configure": "cmake -S . -B ./build", "addons:build": "cmake --build ./build", "addons:clean": "git clean -xf '**/*.node' && rm -rf ./build", diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..79f18e3 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,18 @@ +{ + "compilerOptions": { + "target": "esnext", + "module": "nodenext", + "moduleResolution": "nodenext", + "rootDir": "./", + "noEmit": true, + + "types": ["node"], + "erasableSyntaxOnly": true, + "allowImportingTsExtensions": true, + "forceConsistentCasingInFileNames": true, + "strict": true, + }, + "exclude": [ + "**/CMakeFiles/**" + ] +} From 1ddb054bd04adc6b25d26efa46a963678a7cac96 Mon Sep 17 00:00:00 2001 From: Chengzhong Wu Date: Fri, 10 Apr 2026 13:57:50 -0400 Subject: [PATCH 2/2] Update package.json MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Kræn Hansen --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 5b8d6be..ca4a1ce 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "type": "module", "scripts": { "node:test": "node --test ./implementors/node/run-tests.ts", - "lint": "eslint && tsc -p .", + "lint": "eslint && tsc", "addons:configure": "cmake -S . -B ./build", "addons:build": "cmake --build ./build", "addons:clean": "git clean -xf '**/*.node' && rm -rf ./build",