We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
strict
tsconfig.json
1 parent 2024a9f commit fee25c2Copy full SHA for fee25c2
index.js
@@ -22,10 +22,10 @@ export function squeezeParagraphs(tree) {
22
function isEmptyParagraph(node) {
23
return (
24
node.type === 'paragraph' &&
25
- // @ts-ignore paragraphs are parents.
+ // @ts-expect-error paragraphs are parents.
26
node.children.every(
27
(/** @type {Node} */ node) =>
28
- // @ts-ignore texts are literals.
+ // @ts-expect-error texts are literals.
29
node.type === 'text' && /^\s*$/.test(node.value)
30
)
31
tsconfig.json
@@ -10,6 +10,7 @@
10
"declaration": true,
11
"emitDeclarationOnly": true,
12
"allowSyntheticDefaultImports": true,
13
- "skipLibCheck": true
+ "skipLibCheck": true,
14
+ "strict": true
15
}
16
0 commit comments