Skip to content

Commit d542291

Browse files
committed
Update xo
1 parent f5462e9 commit d542291

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"type-coverage": "^2.0.0",
4848
"typescript": "^4.0.0",
4949
"unist-builder": "^3.0.0",
50-
"xo": "^0.39.0"
50+
"xo": "^0.42.0"
5151
},
5252
"scripts": {
5353
"prepack": "npm run build && npm run format",

Diff for: test.js

+2-6
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,7 @@ test('findAndReplace', (t) => {
4444
findAndReplace(
4545
create(),
4646
/em(\w+)is/,
47-
(/** @type {string} */ _, /** @type {string} */ $1) => {
48-
return '[' + $1 + ']'
49-
}
47+
(/** @type {string} */ _, /** @type {string} */ $1) => '[' + $1 + ']'
5048
),
5149
u('paragraph', [
5250
u('text', 'Some '),
@@ -75,9 +73,7 @@ test('findAndReplace', (t) => {
7573
)
7674

7775
t.deepEqual(
78-
findAndReplace(create(), 'emphasis', () => {
79-
return u('delete', [u('break')])
80-
}),
76+
findAndReplace(create(), 'emphasis', () => u('delete', [u('break')])),
8177
u('paragraph', [
8278
u('text', 'Some '),
8379
u('emphasis', [u('delete', [u('break')])]),

0 commit comments

Comments
 (0)