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.
xo
1 parent 4b03145 commit 6248c72Copy full SHA for 6248c72
index.js
@@ -13,7 +13,7 @@ module.exports = fromText
13
// for all literals we set the `value` of the given node the the given value.
14
function fromText(node, value) {
15
var fn = 'children' in node ? setParent : setLiteral
16
- var val = value == null ? '' : String(value)
+ var val = value === null || value === undefined ? '' : String(value)
17
18
fn(node, val)
19
package.json
@@ -57,16 +57,6 @@
57
"xo": {
58
"prettier": true,
59
"esnext": false,
60
- "rules": {
61
- "no-eq-null": "off",
62
- "eqeqeq": [
63
- "error",
64
- "always",
65
- {
66
- "null": "ignore"
67
- }
68
- ]
69
- },
70
"ignores": [
71
"hast-util-from-text.js"
72
]
0 commit comments