Skip to content

Commit

Permalink
Update xo
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Jul 30, 2021
1 parent 2a44a74 commit 4d68dfa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
"devDependencies": {
"@types/tape": "^4.0.0",
"c8": "^7.0.0",
"dtslint": "^4.0.0",
"prettier": "^2.0.0",
"rehype": "^12.0.0",
"remark-cli": "^9.0.0",
Expand All @@ -50,7 +49,7 @@
"tape": "^5.0.0",
"type-coverage": "^2.0.0",
"typescript": "^4.0.0",
"xo": "^0.39.0"
"xo": "^0.42.0"
},
"scripts": {
"build": "rimraf \"*.d.ts\" && tsc && type-coverage",
Expand Down
14 changes: 6 additions & 8 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -495,14 +495,12 @@ test('rehypeDocument()', (t) => {
rehype()
.use(function () {
Object.assign(this, {
Parser: () => {
return {
type: 'element',
tagName: 'a',
properties: {id: 'a'},
children: [{type: 'text', value: 'a'}]
}
}
Parser: () => ({
type: 'element',
tagName: 'a',
properties: {id: 'a'},
children: [{type: 'text', value: 'a'}]
})
})
})
.use(rehypeDocument)
Expand Down

0 comments on commit 4d68dfa

Please sign in to comment.