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 766ff47 commit 86992e1Copy full SHA for 86992e1
index.js
@@ -68,15 +68,15 @@ function doctype(node) {
68
'`doctype` should have a `name`'
69
)
70
71
- if (node.public != null) {
+ if (node.public !== null && node.public !== undefined) {
72
assert.strictEqual(
73
typeof node.public,
74
'string',
75
'`doctype.public` should be `string`'
76
77
}
78
79
- if (node.system != null) {
+ if (node.system !== null && node.system !== undefined) {
80
81
typeof node.system,
82
package.json
@@ -53,11 +53,6 @@
53
"xo": {
54
"prettier": true,
55
"esnext": false,
56
- "rules": {
57
- "no-eq-null": "off",
58
- "eqeqeq": "off",
59
- "guard-for-in": "off"
60
- },
61
"ignores": [
62
"hast-util-assert.js"
63
]
0 commit comments