Skip to content

Commit 203bd5e

Browse files
chore: add tsconfig.json restricting erasableSyntaxOnly (#51)
* chore: add tsconfig.json restricting `erasableSyntaxOnly` * Update package.json Co-authored-by: Kræn Hansen <kraen@elevenlabs.io> --------- Co-authored-by: Kræn Hansen <kraen@elevenlabs.io>
1 parent 1716eb6 commit 203bd5e

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"type": "module",
66
"scripts": {
77
"node:test": "node --test ./implementors/node/run-tests.ts",
8-
"lint": "eslint",
8+
"lint": "eslint && tsc",
99
"addons:configure": "cmake -S . -B ./build",
1010
"addons:build": "cmake --build ./build",
1111
"addons:clean": "git clean -xf '**/*.node' && rm -rf ./build",

tsconfig.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"compilerOptions": {
3+
"target": "esnext",
4+
"module": "nodenext",
5+
"moduleResolution": "nodenext",
6+
"rootDir": "./",
7+
"noEmit": true,
8+
9+
"types": ["node"],
10+
"erasableSyntaxOnly": true,
11+
"allowImportingTsExtensions": true,
12+
"forceConsistentCasingInFileNames": true,
13+
"strict": true,
14+
},
15+
"exclude": [
16+
"**/CMakeFiles/**"
17+
]
18+
}

0 commit comments

Comments
 (0)