Skip to content

Commit aa70492

Browse files
committed
Add strict to tsconfig.json
1 parent e6dfeec commit aa70492

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import {convertElement} from 'hast-util-is-element'
22
import {hasProperty} from 'hast-util-has-property'
33
import {embedded} from 'hast-util-embedded'
4+
// @ts-expect-error: to do types.
45
import bodyOkLink from 'hast-util-is-body-ok-link'
56

67
const basic = convertElement([
@@ -61,7 +62,7 @@ const meta = convertElement('meta')
6162
*/
6263
export function phrasing(node) {
6364
return (
64-
// @ts-ignore Looks like a text.
65+
// @ts-expect-error Looks like a text.
6566
(node && node.type === 'text') ||
6667
basic(node) ||
6768
embedded(node) ||

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)