Skip to content

Commit fee25c2

Browse files
committed
Add strict to tsconfig.json
1 parent 2024a9f commit fee25c2

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ export function squeezeParagraphs(tree) {
2222
function isEmptyParagraph(node) {
2323
return (
2424
node.type === 'paragraph' &&
25-
// @ts-ignore paragraphs are parents.
25+
// @ts-expect-error paragraphs are parents.
2626
node.children.every(
2727
(/** @type {Node} */ node) =>
28-
// @ts-ignore texts are literals.
28+
// @ts-expect-error texts are literals.
2929
node.type === 'text' && /^\s*$/.test(node.value)
3030
)
3131
)

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)