Skip to content

Commit 3b8e1dc

Browse files
committed
Add strict to tsconfig.json
1 parent c92e4a2 commit 3b8e1dc

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

test/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import fs from 'fs'
77
import path from 'path'
88
import test from 'tape'
99
import unified from 'unified'
10-
// @ts-ignore remove when typed.
10+
// @ts-expect-error remove when typed.
1111
import stringify from 'retext-stringify'
12-
// @ts-ignore remove when typed.
12+
// @ts-expect-error remove when typed.
1313
import english from 'retext-english'
1414
import {emoticon} from 'emoticon'
1515
import {isHidden} from 'is-hidden'
@@ -32,7 +32,7 @@ test('nlcst-emoticon-modifier()', function (t) {
3232

3333
t.throws(
3434
function () {
35-
// @ts-ignore runtime.
35+
// @ts-expect-error runtime.
3636
emoticonModifier({})
3737
},
3838
/Missing children in `parent`/,

tsconfig.json

Lines changed: 2 additions & 1 deletion
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)