From 3414a84ef27ead52701cae985994f67f17b414da Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Tue, 23 Jun 2020 11:36:00 +0200 Subject: [PATCH] Update dev-dependencies --- .prettierignore | 1 + package.json | 12 +++++++----- test/index.js | 2 +- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.prettierignore b/.prettierignore index 7c963f1..b324985 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,4 +1,5 @@ coverage/ remark-frontmatter.js remark-frontmatter.min.js +*.json *.md diff --git a/package.json b/package.json index 8671883..f933299 100644 --- a/package.json +++ b/package.json @@ -45,14 +45,14 @@ "remark": "^12.0.0", "remark-cli": "^8.0.0", "remark-preset-wooorm": "^7.0.0", - "tape": "^4.0.0", + "tape": "^5.0.0", "tinyify": "^2.0.0", "to-vfile": "^6.0.0", "unified": "^9.0.0", - "xo": "^0.28.0" + "xo": "^0.32.0" }, "scripts": { - "format": "remark *.md -qfo && prettier --write . && xo --fix", + "format": "remark . -qfo --ignore-pattern test/ && prettier . --write && xo --fix", "build-bundle": "browserify . -s remarkFrontmatter > remark-frontmatter.js", "build-mangle": "browserify . -s remarkFrontmatter -p tinyify > remark-frontmatter.min.js", "build": "npm run build-bundle && npm run build-mangle", @@ -79,11 +79,13 @@ "prettier": true, "esnext": false, "rules": { + "unicorn/no-fn-reference-in-iterator": "off", + "unicorn/prefer-optional-catch-binding": "off", "guard-for-in": "off" }, "ignores": [ - "remark-frontmatter.js", - "**/*.ts" + "types/", + "remark-frontmatter.js" ] }, "remarkConfig": { diff --git a/test/index.js b/test/index.js index 7dfe62f..76e7ae8 100644 --- a/test/index.js +++ b/test/index.js @@ -89,7 +89,7 @@ test('fixtures', function (t) { } catch (_) {} proc = remark().use(frontmatter, config) - actual = proc.parse(input) + actual = JSON.parse(JSON.stringify(proc.parse(input))) try { output = read(outputPath, 'utf8')