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.
1 parent 4483d1c commit 7ae25a8Copy full SHA for 7ae25a8
index.js
@@ -10,9 +10,10 @@ function squeeze(tree) {
10
11
// Whether paragraph is empty or composed only of whitespace.
12
function isEmptyParagraph(node) {
13
- return node.type === 'paragraph' && node.children.every(isEmptyText)
14
-}
15
-
16
-function isEmptyText(node) {
17
- return node.type === 'text' && /^\s*$/.test(node.value)
+ return (
+ node.type === 'paragraph' &&
+ node.children.every(
+ (node) => node.type === 'text' && /^\s*$/.test(node.value)
+ )
18
19
}
package.json
@@ -43,7 +43,7 @@
43
"remark-preset-wooorm": "^8.0.0",
44
"tape": "^5.0.0",
45
"unist-builder": "^2.0.0",
46
- "xo": "^0.35.0"
+ "xo": "^0.38.0"
47
},
48
"scripts": {
49
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
0 commit comments