From 0db02ab61af41f99bfadaa951cb20014990d8590 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Wed, 16 Aug 2023 18:50:14 +0200 Subject: [PATCH] Update dev-dependencies --- lib/index.js | 4 ++-- package.json | 18 +++++++++++------- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/lib/index.js b/lib/index.js index 9dc17f1..095f27b 100644 --- a/lib/index.js +++ b/lib/index.js @@ -234,7 +234,7 @@ function createByline(state, stats) { * * @param {State} state * Info passed around. - * @param {NonNullable} cause + * @param {Error} cause * Cause. * @returns {Array} * Lines. @@ -346,7 +346,7 @@ function createMessageLine(state, message) { ] if (message.cause) { - rest.push(...createCauseLines(state, message.cause)) + rest.push(...createCauseLines(state, /** @type {Error} */ (message.cause))) } if (state.verbose && message.url) { diff --git a/package.json b/package.json index 96c2666..96a7d97 100644 --- a/package.json +++ b/package.json @@ -47,30 +47,30 @@ "@types/supports-color": "^8.0.0", "string-width": "^6.0.0", "supports-color": "^9.0.0", - "unist-util-stringify-position": "^3.0.0", + "unist-util-stringify-position": "^4.0.0", "vfile": "^6.0.0", "vfile-message": "^4.0.0", "vfile-sort": "^4.0.0", "vfile-statistics": "^3.0.0" }, "devDependencies": { - "@types/hast": "^2.0.0", + "@types/hast": "^3.0.0", "@types/node": "^20.0.0", "c8": "^8.0.0", "cross-env": "^7.0.0", - "mdast-util-mdx-jsx": "^2.0.0", - "prettier": "^2.0.0", + "mdast-util-mdx-jsx": "^3.0.0", + "prettier": "^3.0.0", "remark-cli": "^11.0.0", "remark-preset-wooorm": "^9.0.0", "strip-ansi": "^7.0.0", "type-coverage": "^2.0.0", "typescript": "^5.0.0", - "xo": "^0.54.0" + "xo": "^0.56.0" }, "scripts": { "prepack": "npm run build && npm run format", "build": "tsc --build --clean && tsc --build && type-coverage", - "format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix", + "format": "remark . -qfo && prettier . -w --log-level warn && xo --fix", "test-api": "cross-env FORCE_COLOR=\"true\" node --conditions development test.js", "test-coverage": "c8 --100 --reporter lcov npm run test-api", "test": "npm run build && npm run format && npm run test-coverage" @@ -95,6 +95,10 @@ "ignoreCatch": true }, "xo": { - "prettier": true + "prettier": true, + "rules": { + "n/file-extension-in-import": "off", + "unicorn/prefer-string-replace-all": "off" + } } }