diff --git a/package.json b/package.json index 94e3b7f..36dc098 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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", diff --git a/test.js b/test.js index 1658c80..210ddbe 100644 --- a/test.js +++ b/test.js @@ -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)