Skip to content

Commit

Permalink
Update dev-dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Aug 16, 2023
1 parent 0034a71 commit 0db02ab
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
4 changes: 2 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ function createByline(state, stats) {
*
* @param {State} state
* Info passed around.
* @param {NonNullable<VFileMessage['cause']>} cause
* @param {Error} cause
* Cause.
* @returns {Array<string>}
* Lines.
Expand Down Expand Up @@ -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) {
Expand Down
18 changes: 11 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -95,6 +95,10 @@
"ignoreCatch": true
},
"xo": {
"prettier": true
"prettier": true,
"rules": {
"n/file-extension-in-import": "off",
"unicorn/prefer-string-replace-all": "off"
}
}
}

0 comments on commit 0db02ab

Please sign in to comment.