Skip to content

Commit fe02268

Browse files
committed
build(chore): update typechecker
1 parent 3c64a7e commit fe02268

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

.github/workflows/test.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,13 @@ jobs:
1717
with:
1818
node-version: 14
1919

20-
- name: Install dependencies with aching
20+
- name: Install dependencies with caching
2121
uses: bahmutov/npm-install@v1
2222

23+
- name: Check types
24+
run: |
25+
yarn run typecheck
26+
2327
- name: Run unit tests
2428
run: |
2529
yarn run test

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"scripts": {
33
"build": "node_modules/.bin/esbuild --target=es2019 ./src/index.jsx --bundle --platform=node --outfile=index.js",
44
"prepare": "husky install",
5+
"typecheck": "yarn run tsc --noEmit --allowJs",
56
"test:jest": "jest",
67
"test:watch": "jest --watch",
78
"test:coverage": "jest --coverage",

tsconfig.json

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,14 @@
11
{
22
"compilerOptions": {
33
"target": "es5",
4-
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd',
4+
"module": "commonjs",
55

6-
/* Strict Type-Checking Options */
7-
"strict": true, /* Enable all strict type-checking options. */
8-
"noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
9-
"strictNullChecks": true, /* Enable strict null checks. */
6+
"jsx": "react",
7+
"resolveJsonModule": true,
108
"rootDirs": [
119
"src"
1210
],
13-
"allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export.
14-
"esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES
15-
/* Advanced Options */
16-
"skipLibCheck": true, /* Skip type checking of declaration files. */
17-
"forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */
11+
"allowSyntheticDefaultImports": true,
12+
"forceConsistentCasingInFileNames": true
1813
}
1914
}

0 commit comments

Comments
 (0)