Skip to content

Commit c338d41

Browse files
committed
Update dev-dependencies
1 parent 1b8ddbf commit c338d41

File tree

4 files changed

+44
-42
lines changed

4 files changed

+44
-42
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ jobs:
77
name: ${{matrix.node}}
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v3
11-
- uses: actions/setup-node@v3
10+
- uses: actions/checkout@v4
11+
- uses: actions/setup-node@v4
1212
with:
1313
node-version: ${{matrix.node}}
1414
- run: npm install
1515
- run: npm test
16-
- uses: codecov/codecov-action@v3
16+
- uses: codecov/codecov-action@v4
1717
strategy:
1818
matrix:
1919
node:

package.json

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -45,25 +45,25 @@
4545
"devDependencies": {
4646
"@types/nlcst": "^2.0.0",
4747
"@types/node": "^20.0.0",
48-
"c8": "^8.0.0",
48+
"c8": "^10.0.0",
4949
"chalk": "^5.0.0",
50-
"hastscript": "^7.0.0",
51-
"prettier": "^2.0.0",
52-
"remark-cli": "^11.0.0",
53-
"remark-preset-wooorm": "^9.0.0",
54-
"retext": "^8.0.0",
50+
"hastscript": "^9.0.0",
51+
"prettier": "^3.0.0",
52+
"remark-cli": "^12.0.0",
53+
"remark-preset-wooorm": "^10.0.0",
54+
"retext": "^9.0.0",
5555
"strip-ansi": "^7.0.0",
5656
"type-coverage": "^2.0.0",
5757
"typescript": "^5.0.0",
5858
"unist-builder": "^4.0.0",
59-
"xast-util-from-xml": "^3.0.0",
60-
"xastscript": "^3.0.0",
61-
"xo": "^0.54.0"
59+
"xast-util-from-xml": "^4.0.0",
60+
"xastscript": "^4.0.0",
61+
"xo": "^0.58.0"
6262
},
6363
"scripts": {
6464
"prepack": "npm run build && npm run format",
6565
"build": "tsc --build --clean && tsc --build && type-coverage",
66-
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
66+
"format": "remark . -qfo && prettier . -w --log-level warn && xo --fix",
6767
"test-api": "node --conditions development test.js",
6868
"test-coverage": "c8 --100 --reporter lcov npm run test-api",
6969
"test": "npm run build && npm run format && npm run test-coverage"
@@ -88,6 +88,9 @@
8888
"strict": true
8989
},
9090
"xo": {
91-
"prettier": true
91+
"prettier": true,
92+
"rules": {
93+
"unicorn/prefer-string-replace-all": "off"
94+
}
9295
}
9396
}

readme.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,19 @@
1212

1313
## Contents
1414

15-
* [What is this?](#what-is-this)
16-
* [When should I use this?](#when-should-i-use-this)
17-
* [Install](#install)
18-
* [Use](#use)
19-
* [API](#api)
20-
* [`inspect(tree[, options])`](#inspecttree-options)
21-
* [`inspectColor(tree[, options])`](#inspectcolortree-options)
22-
* [`inspectNoColor(tree[, options])`](#inspectnocolortree-options)
23-
* [`Options`](#options)
24-
* [Types](#types)
25-
* [Compatibility](#compatibility)
26-
* [Contribute](#contribute)
27-
* [License](#license)
15+
* [What is this?](#what-is-this)
16+
* [When should I use this?](#when-should-i-use-this)
17+
* [Install](#install)
18+
* [Use](#use)
19+
* [API](#api)
20+
* [`inspect(tree[, options])`](#inspecttree-options)
21+
* [`inspectColor(tree[, options])`](#inspectcolortree-options)
22+
* [`inspectNoColor(tree[, options])`](#inspectnocolortree-options)
23+
* [`Options`](#options)
24+
* [Types](#types)
25+
* [Compatibility](#compatibility)
26+
* [Contribute](#contribute)
27+
* [License](#license)
2828

2929
## What is this?
3030

@@ -102,10 +102,10 @@ Inspect a tree, with color in Node, without color in browsers.
102102

103103
###### Parameters
104104

105-
* `tree` ([`Node`][node])
106-
— tree to inspect
107-
* `options` ([`Options`][api-options], optional)
108-
— configuration
105+
* `tree` ([`Node`][node])
106+
— tree to inspect
107+
* `options` ([`Options`][api-options], optional)
108+
— configuration
109109

110110
###### Returns
111111

@@ -127,8 +127,8 @@ Configuration (TypeScript type).
127127

128128
###### Fields
129129

130-
* `showPositions` (`boolean`, default: `true`)
131-
— whether to include positional information
130+
* `showPositions` (`boolean`, default: `true`)
131+
— whether to include positional information
132132

133133
## Types
134134

test.js

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -79,16 +79,15 @@ test('inspect()', async function (t) {
7979
assert.equal(
8080
strip(
8181
inspect(
82-
Array.from({length: 11}).map(function (
83-
/** @type {undefined} */ d,
84-
i
85-
) {
86-
return {
87-
type: 'text',
88-
value: String(i),
89-
data: {id: String.fromCodePoint(97 + i)}
82+
Array.from({length: 11}).map(
83+
function (/** @type {undefined} */ d, i) {
84+
return {
85+
type: 'text',
86+
value: String(i),
87+
data: {id: String.fromCodePoint(97 + i)}
88+
}
9089
}
91-
})
90+
)
9291
)
9392
),
9493
[

0 commit comments

Comments
 (0)