Skip to content

Commit 9ca6a16

Browse files
committed
Update dev-dependencies
1 parent 81395bd commit 9ca6a16

File tree

2 files changed

+96
-78
lines changed

2 files changed

+96
-78
lines changed

package.json

Lines changed: 28 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,20 +41,20 @@
4141
"micromark-util-normalize-identifier": "^2.0.0"
4242
},
4343
"devDependencies": {
44-
"@types/node": "^20.0.0",
45-
"c8": "^8.0.0",
44+
"@types/node": "^22.0.0",
45+
"c8": "^10.0.0",
4646
"micromark-extension-gfm-footnote": "^2.0.0",
47-
"prettier": "^2.0.0",
48-
"remark-cli": "^11.0.0",
49-
"remark-preset-wooorm": "^9.0.0",
47+
"prettier": "^3.0.0",
48+
"remark-cli": "^12.0.0",
49+
"remark-preset-wooorm": "^11.0.0",
5050
"type-coverage": "^2.0.0",
5151
"typescript": "^5.0.0",
52-
"xo": "^0.54.0"
52+
"xo": "^0.60.0"
5353
},
5454
"scripts": {
5555
"prepack": "npm run build && npm run format",
5656
"build": "tsc --build --clean && tsc --build && type-coverage",
57-
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
57+
"format": "remark . -qfo && prettier . -w --log-level warn && xo --fix",
5858
"test-api-dev": "node --conditions development test.js",
5959
"test-api-prod": "node --conditions production test.js",
6060
"test-api": "npm run test-api-dev && npm run test-api-prod",
@@ -84,13 +84,31 @@
8484
"overrides": [
8585
{
8686
"files": [
87-
"**/*.ts"
87+
"**/*.d.ts"
8888
],
8989
"rules": {
90-
"@typescript-eslint/consistent-type-definitions": "off"
90+
"@typescript-eslint/array-type": [
91+
"error",
92+
{
93+
"default": "generic"
94+
}
95+
],
96+
"@typescript-eslint/ban-types": [
97+
"error",
98+
{
99+
"extendDefaults": true
100+
}
101+
],
102+
"@typescript-eslint/consistent-type-definitions": [
103+
"error",
104+
"interface"
105+
]
91106
}
92107
}
93108
],
94-
"prettier": true
109+
"prettier": true,
110+
"rules": {
111+
"unicorn/prefer-at": "off"
112+
}
95113
}
96114
}

readme.md

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

1313
## Contents
1414

15-
* [What is this?](#what-is-this)
16-
* [When to use this](#when-to-use-this)
17-
* [Install](#install)
18-
* [Use](#use)
19-
* [API](#api)
20-
* [`gfmFootnoteFromMarkdown()`](#gfmfootnotefrommarkdown)
21-
* [`gfmFootnoteToMarkdown()`](#gfmfootnotetomarkdown)
22-
* [HTML](#html)
23-
* [Syntax](#syntax)
24-
* [Syntax tree](#syntax-tree)
25-
* [Nodes](#nodes)
26-
* [Content model](#content-model)
27-
* [Types](#types)
28-
* [Compatibility](#compatibility)
29-
* [Related](#related)
30-
* [Contribute](#contribute)
31-
* [License](#license)
15+
* [What is this?](#what-is-this)
16+
* [When to use this](#when-to-use-this)
17+
* [Install](#install)
18+
* [Use](#use)
19+
* [API](#api)
20+
* [`gfmFootnoteFromMarkdown()`](#gfmfootnotefrommarkdown)
21+
* [`gfmFootnoteToMarkdown()`](#gfmfootnotetomarkdown)
22+
* [HTML](#html)
23+
* [Syntax](#syntax)
24+
* [Syntax tree](#syntax-tree)
25+
* [Nodes](#nodes)
26+
* [Content model](#content-model)
27+
* [Types](#types)
28+
* [Compatibility](#compatibility)
29+
* [Related](#related)
30+
* [Contribute](#contribute)
31+
* [License](#license)
3232

3333
## What is this?
3434

@@ -314,13 +314,13 @@ This means we try to keep the current release line,
314314

315315
## Related
316316

317-
* [`remark-gfm`][remark-gfm]
318-
— remark plugin to support GFM
319-
* [`mdast-util-gfm`][mdast-util-gfm]
320-
— same but all of GFM (autolink literals, footnotes, strikethrough, tables,
321-
tasklists)
322-
* [`micromark-extension-gfm-footnote`][micromark-extension-gfm-footnote]
323-
— micromark extension to parse GFM footnotes
317+
* [`remark-gfm`][remark-gfm]
318+
— remark plugin to support GFM
319+
* [`mdast-util-gfm`][mdast-util-gfm]
320+
— same but all of GFM (autolink literals, footnotes, strikethrough, tables,
321+
tasklists)
322+
* [`micromark-extension-gfm-footnote`][micromark-extension-gfm-footnote]
323+
— micromark extension to parse GFM footnotes
324324

325325
## Contribute
326326

@@ -338,94 +338,94 @@ abide by its terms.
338338

339339
<!-- Definitions -->
340340

341-
[build-badge]: https://github.com/syntax-tree/mdast-util-gfm-footnote/workflows/main/badge.svg
341+
[api-gfmfootnotefrommarkdown]: #gfmfootnotefrommarkdown
342342

343-
[build]: https://github.com/syntax-tree/mdast-util-gfm-footnote/actions
343+
[api-gfmfootnotetomarkdown]: #gfmfootnotetomarkdown
344344

345-
[coverage-badge]: https://img.shields.io/codecov/c/github/syntax-tree/mdast-util-gfm-footnote.svg
345+
[author]: https://wooorm.com
346346

347-
[coverage]: https://codecov.io/github/syntax-tree/mdast-util-gfm-footnote
347+
[backers-badge]: https://opencollective.com/unified/backers/badge.svg
348348

349-
[downloads-badge]: https://img.shields.io/npm/dm/mdast-util-gfm-footnote.svg
349+
[build]: https://github.com/syntax-tree/mdast-util-gfm-footnote/actions
350350

351-
[downloads]: https://www.npmjs.com/package/mdast-util-gfm-footnote
351+
[build-badge]: https://github.com/syntax-tree/mdast-util-gfm-footnote/workflows/main/badge.svg
352352

353-
[size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=mdast-util-gfm-footnote
353+
[chat]: https://github.com/syntax-tree/unist/discussions
354354

355-
[size]: https://bundlejs.com/?q=mdast-util-gfm-footnote
355+
[chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg
356356

357-
[sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg
357+
[cmark-gfm]: https://github.com/github/cmark-gfm
358358

359-
[backers-badge]: https://opencollective.com/unified/backers/badge.svg
359+
[coc]: https://github.com/syntax-tree/.github/blob/main/code-of-conduct.md
360360

361361
[collective]: https://opencollective.com/unified
362362

363-
[chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg
363+
[contributing]: https://github.com/syntax-tree/.github/blob/main/contributing.md
364364

365-
[chat]: https://github.com/syntax-tree/unist/discussions
365+
[coverage]: https://codecov.io/github/syntax-tree/mdast-util-gfm-footnote
366366

367-
[npm]: https://docs.npmjs.com/cli/install
367+
[coverage-badge]: https://img.shields.io/codecov/c/github/syntax-tree/mdast-util-gfm-footnote.svg
368368

369-
[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c
369+
[dfn-flow-content]: #flowcontent-gfm-footnotes
370370

371-
[esmsh]: https://esm.sh
371+
[dfn-footnote-definition]: #footnotedefinition
372372

373-
[typescript]: https://www.typescriptlang.org
373+
[dfn-footnote-reference]: #footnotereference
374374

375-
[license]: license
375+
[dfn-mxn-association]: https://github.com/syntax-tree/mdast#association
376376

377-
[author]: https://wooorm.com
377+
[dfn-node]: https://github.com/syntax-tree/unist#node
378378

379-
[health]: https://github.com/syntax-tree/.github
379+
[dfn-parent]: https://github.com/syntax-tree/mdast#parent
380380

381-
[contributing]: https://github.com/syntax-tree/.github/blob/main/contributing.md
381+
[dfn-phrasing-content]: #phrasingcontent-gfm-footnotes
382382

383-
[support]: https://github.com/syntax-tree/.github/blob/main/support.md
383+
[downloads]: https://www.npmjs.com/package/mdast-util-gfm-footnote
384384

385-
[coc]: https://github.com/syntax-tree/.github/blob/main/code-of-conduct.md
385+
[downloads-badge]: https://img.shields.io/npm/dm/mdast-util-gfm-footnote.svg
386386

387-
[mdast]: https://github.com/syntax-tree/mdast
387+
[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c
388388

389-
[mdast-util-gfm]: https://github.com/syntax-tree/mdast-util-gfm
389+
[esmsh]: https://esm.sh
390390

391-
[remark-gfm]: https://github.com/remarkjs/remark-gfm
391+
[frommarkdownextension]: https://github.com/syntax-tree/mdast-util-from-markdown#extension
392392

393-
[micromark]: https://github.com/micromark/micromark
393+
[gfm]: https://github.github.com/gfm/
394394

395-
[micromark-extension-gfm-footnote]: https://github.com/micromark/micromark-extension-gfm-footnote
395+
[health]: https://github.com/syntax-tree/.github
396396

397-
[syntax]: https://github.com/micromark/micromark-extension-gfm-footnote#syntax
397+
[license]: license
398398

399-
[gfm]: https://github.github.com/gfm/
399+
[mdast]: https://github.com/syntax-tree/mdast
400400

401-
[cmark-gfm]: https://github.com/github/cmark-gfm
401+
[mdast-util-from-markdown]: https://github.com/syntax-tree/mdast-util-from-markdown
402402

403-
[post]: https://github.blog/changelog/2021-09-30-footnotes-now-supported-in-markdown-fields/
403+
[mdast-util-gfm]: https://github.com/syntax-tree/mdast-util-gfm
404404

405-
[mdast-util-from-markdown]: https://github.com/syntax-tree/mdast-util-from-markdown
405+
[mdast-util-to-hast]: https://github.com/syntax-tree/mdast-util-to-hast
406406

407407
[mdast-util-to-markdown]: https://github.com/syntax-tree/mdast-util-to-markdown
408408

409-
[mdast-util-to-hast]: https://github.com/syntax-tree/mdast-util-to-hast
409+
[micromark]: https://github.com/micromark/micromark
410410

411-
[dfn-parent]: https://github.com/syntax-tree/mdast#parent
411+
[micromark-extension-gfm-footnote]: https://github.com/micromark/micromark-extension-gfm-footnote
412412

413-
[dfn-mxn-association]: https://github.com/syntax-tree/mdast#association
413+
[npm]: https://docs.npmjs.com/cli/install
414414

415-
[dfn-node]: https://github.com/syntax-tree/unist#node
415+
[post]: https://github.blog/changelog/2021-09-30-footnotes-now-supported-in-markdown-fields/
416416

417-
[frommarkdownextension]: https://github.com/syntax-tree/mdast-util-from-markdown#extension
417+
[remark-gfm]: https://github.com/remarkjs/remark-gfm
418418

419-
[tomarkdownextension]: https://github.com/syntax-tree/mdast-util-to-markdown#options
419+
[size]: https://bundlejs.com/?q=mdast-util-gfm-footnote
420420

421-
[dfn-flow-content]: #flowcontent-gfm-footnotes
421+
[size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=mdast-util-gfm-footnote
422422

423-
[dfn-phrasing-content]: #phrasingcontent-gfm-footnotes
423+
[sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg
424424

425-
[dfn-footnote-reference]: #footnotereference
425+
[support]: https://github.com/syntax-tree/.github/blob/main/support.md
426426

427-
[dfn-footnote-definition]: #footnotedefinition
427+
[syntax]: https://github.com/micromark/micromark-extension-gfm-footnote#syntax
428428

429-
[api-gfmfootnotefrommarkdown]: #gfmfootnotefrommarkdown
429+
[tomarkdownextension]: https://github.com/syntax-tree/mdast-util-to-markdown#options
430430

431-
[api-gfmfootnotetomarkdown]: #gfmfootnotetomarkdown
431+
[typescript]: https://www.typescriptlang.org

0 commit comments

Comments
 (0)