Skip to content

Commit 6248c72

Browse files
committed
Remove superfluous xo rules
1 parent 4b03145 commit 6248c72

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module.exports = fromText
1313
// for all literals we set the `value` of the given node the the given value.
1414
function fromText(node, value) {
1515
var fn = 'children' in node ? setParent : setLiteral
16-
var val = value == null ? '' : String(value)
16+
var val = value === null || value === undefined ? '' : String(value)
1717

1818
fn(node, val)
1919

package.json

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,6 @@
5757
"xo": {
5858
"prettier": true,
5959
"esnext": false,
60-
"rules": {
61-
"no-eq-null": "off",
62-
"eqeqeq": [
63-
"error",
64-
"always",
65-
{
66-
"null": "ignore"
67-
}
68-
]
69-
},
7060
"ignores": [
7161
"hast-util-from-text.js"
7262
]

0 commit comments

Comments
 (0)