Skip to content

Commit 3579af9

Browse files
committed
Add strict to tsconfig.json
1 parent b7905dc commit 3579af9

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

test/index.js

+7-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import fs from 'fs'
66
import path from 'path'
77
import test from 'tape'
88
import unified from 'unified'
9-
// @ts-ignore remove when typed.
9+
// @ts-expect-error remove when typed.
1010
import english from 'retext-english'
1111
import {emojiModifier} from 'nlcst-emoji-modifier'
1212
import {emoticonModifier} from 'nlcst-emoticon-modifier'
@@ -26,7 +26,7 @@ const smile = JSON.parse(
2626
test('affixEmoticonModifier()', (t) => {
2727
t.throws(
2828
() => {
29-
// @ts-ignore runtime.
29+
// @ts-expect-error runtime.
3030
affixEmoticonModifier({})
3131
},
3232
/Missing children in `parent`/,
@@ -78,7 +78,11 @@ function process(fixture, positionless) {
7878
return processor.runSync(processor.parse(fixture))
7979
}
8080

81-
// Add modifier to processor.
81+
/**
82+
* Add modifier to processor.
83+
*
84+
* @type {import('unified').Plugin<[]>}
85+
*/
8286
function plugin() {
8387
// Fine.
8488
// type-coverage:ignore-next-line

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)