Skip to content

Commit 91e8a4f

Browse files
committed
refactor(ts): add missing type defs and config for ts
1 parent b1abc41 commit 91e8a4f

File tree

4 files changed

+36
-8
lines changed

4 files changed

+36
-8
lines changed

.mocharc.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"require": [
3+
"ts-node/register"
4+
],
5+
"loader": "ts-node/esm",
6+
"exit": true,
7+
"experimental-print-required-tla": true
8+
}

package-lock.json

Lines changed: 21 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@
8080
"@babel/preset-react": "^7.22.5",
8181
"@commitlint/cli": "^19.0.0",
8282
"@commitlint/config-conventional": "^19.0.0",
83-
"@types/node": "^22.13.4",
83+
"@types/lodash": "^4.17.15",
84+
"@types/mocha": "^10.0.10",
85+
"@types/node": "^22.13.5",
8486
"@types/yargs": "^17.0.33",
8587
"@vitejs/plugin-react": "^4.0.2",
8688
"chai": "^4.2.0",
@@ -94,7 +96,7 @@
9496
"eslint-plugin-react": "^7.21.5",
9597
"eslint-plugin-standard": "^5.0.0",
9698
"husky": "^9.0.0",
97-
"mocha": "^10.2.0",
99+
"mocha": "^10.8.2",
98100
"nyc": "^17.0.0",
99101
"prettier": "^3.0.0",
100102
"sinon": "^19.0.2",

tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
"noEmit": true,
1111
"skipLibCheck": true,
1212
"isolatedModules": true,
13-
"esModuleInterop": true
13+
"module": "CommonJS",
14+
"esModuleInterop": true,
15+
"allowSyntheticDefaultImports": true
1416
},
1517
"include": ["src"]
1618
}

0 commit comments

Comments
 (0)