File tree 2 files changed +9
-4
lines changed
2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import fs from 'fs'
6
6
import path from 'path'
7
7
import test from 'tape'
8
8
import unified from 'unified'
9
- // @ts -ignore remove when typed.
9
+ // @ts -expect-error remove when typed.
10
10
import english from 'retext-english'
11
11
import { emojiModifier } from 'nlcst-emoji-modifier'
12
12
import { emoticonModifier } from 'nlcst-emoticon-modifier'
@@ -26,7 +26,7 @@ const smile = JSON.parse(
26
26
test ( 'affixEmoticonModifier()' , ( t ) => {
27
27
t . throws (
28
28
( ) => {
29
- // @ts -ignore runtime.
29
+ // @ts -expect-error runtime.
30
30
affixEmoticonModifier ( { } )
31
31
} ,
32
32
/ M i s s i n g c h i l d r e n i n ` p a r e n t ` / ,
@@ -78,7 +78,11 @@ function process(fixture, positionless) {
78
78
return processor . runSync ( processor . parse ( fixture ) )
79
79
}
80
80
81
- // Add modifier to processor.
81
+ /**
82
+ * Add modifier to processor.
83
+ *
84
+ * @type {import('unified').Plugin<[]> }
85
+ */
82
86
function plugin ( ) {
83
87
// Fine.
84
88
// type-coverage:ignore-next-line
Original file line number Diff line number Diff line change 10
10
"declaration" : true ,
11
11
"emitDeclarationOnly" : true ,
12
12
"allowSyntheticDefaultImports" : true ,
13
- "skipLibCheck" : true
13
+ "skipLibCheck" : true ,
14
+ "strict" : true
14
15
}
15
16
}
You can’t perform that action at this time.
0 commit comments