Enable unicorn/prefer-number-properties (#9935)

This commit is contained in:
fisker Cheung authored and GitHub committed 2020-12-21 17:09:20 +08:00
1 parent 6843b51113
commit f0f18d3090
18 files changed
+35 -28

No files matched your search

+1 -1
View File
@@ -74,7 +74,7 @@ function printDoc(doc) {
}
if (doc.type === "align") {
return doc.n === -Infinity
return doc.n === Number.NEGATIVE_INFINITY
? "dedentToRoot(" + printDoc(doc.contents) + ")"
: doc.n < 0
? "dedent(" + printDoc(doc.contents) + ")"