Skip to content

Commit 3248298

Browse files
committed
Add strict to tsconfig.json
1 parent bfa3c39 commit 3248298

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

test.js

+1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ test('unist-util-source', (t) => {
5757
'generated'
5858
)
5959

60+
// @ts-expect-error: runtime.
6061
t.equal(source(null, file), null, 'missing')
6162

6263
file = new VFile('a\r\nb')

tsconfig.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"declaration": true,
1111
"emitDeclarationOnly": true,
1212
"allowSyntheticDefaultImports": true,
13-
"skipLibCheck": true
13+
"skipLibCheck": true,
14+
"strict": true
1415
}
1516
}

0 commit comments

Comments
 (0)