Skip to content

Commit c97bdc2

Browse files
committed
Fix ancient Babel
Closes GH-4.
1 parent 063888d commit c97bdc2

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -396,9 +396,9 @@ function collectText(node, options) {
396396
// break is the zero-width space character (U+200B), then the break is
397397
// removed, leaving behind the zero-width space.
398398
if (
399-
lines[index].charCodeAt(lines[index].length - 1) === 0x20_0b /* ZWSP */ ||
399+
lines[index].charCodeAt(lines[index].length - 1) === 0x200b /* ZWSP */ ||
400400
(index < lines.length - 1 &&
401-
lines[index + 1].charCodeAt(0) === 0x20_0b) /* ZWSP */
401+
lines[index + 1].charCodeAt(0) === 0x200b) /* ZWSP */
402402
) {
403403
result.push(lines[index])
404404
join = ''

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,10 @@
6969
"trailingComma": "none"
7070
},
7171
"xo": {
72-
"prettier": true
72+
"prettier": true,
73+
"rules": {
74+
"unicorn/numeric-separators-style": "off"
75+
}
7376
},
7477
"remarkConfig": {
7578
"plugins": [

0 commit comments

Comments
 (0)