65 Commits

Author SHA1 Message Date
Node.js GitHub Bot
cc97ea5df6 tools: update lint-md-dependencies
Update to @rollup/plugin-node-resolve@13.1.3, rollup@2.64.0, and
to-vfile@7.2.3.

PR-URL: https://github.com/nodejs/node/pull/41440
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2022-01-18 06:55:57 -08:00
Node.js GitHub Bot
1344b36fe3
tools: update lint-md-dependencies to @rollup/plugin-node-resolve@13.1.2
PR-URL: https://github.com/nodejs/node/pull/41369
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
2022-01-05 11:54:02 +01:00
Node.js GitHub Bot
4624cef455
tools: update lint-md-dependencies to rollup@2.62.0
PR-URL: https://github.com/nodejs/node/pull/41315
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
2021-12-27 14:47:57 +00:00
Node.js GitHub Bot
ad91abcbad tools: update lint-md-dependencies to rollup@2.61.1 vfile-reporter@7.0.3
PR-URL: https://github.com/nodejs/node/pull/41150
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
2021-12-12 18:43:52 -08:00
Rich Trott
c93a639788
tools: strip comments from lint-md rollup output
Refs: https://github.com/nodejs/node/pull/41081#issuecomment-986259228

PR-URL: https://github.com/nodejs/node/pull/41092
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Tierney Cyren <hello@bnb.im>
2021-12-07 23:34:13 +00:00
Node.js GitHub Bot
d9de812cb8 tools: update lint-md-dependencies to rollup@2.60.1
PR-URL: https://github.com/nodejs/node/pull/40929
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
2021-11-22 21:39:53 -08:00
Rich Trott
80782d8b7a
tools: update lint-md dependencies
Patch updates for remark-parse, remark-stringify, and unified.

Patch updates to rollup plugins and minor update to rollup.

PR-URL: https://github.com/nodejs/node/pull/40894
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
2021-11-22 15:12:04 +00:00
Rich Trott
8e9549181a tools: notify user if format-md needs to be run
This will help enforce formatting of markdown files.

PR-URL: https://github.com/nodejs/node/pull/40647
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
2021-11-01 19:04:36 -07:00
Rich Trott
86099a375a tools: avoid unnecessary escaping in markdown formatter
Update mdast-util-to-markdown to 1.2.4 which reduces unnecessary
escaping of `_` and some other characters. Re-run markdown formatter.

PR-URL: https://github.com/nodejs/node/pull/40645
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
2021-10-31 09:36:05 -07:00
Rich Trott
7624917069 tools: update tools/lint-md dependencies to support GFM footnotes
PR-URL: https://github.com/nodejs/node/pull/40445
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
2021-10-16 02:44:51 +00:00
Rich Trott
350a95b89f tools: update lint-md dependencies
Update lint-md dependencies and re-create lint-md.mjs.

PR-URL: https://github.com/nodejs/node/pull/40404
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Zijian Liu <lxxyxzj@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
2021-10-13 13:28:55 +00:00
Rich Trott
8a58fcebf8 tools: update remark-preset-lint-node to 3.2.0
PR-URL: https://github.com/nodejs/node/pull/40278
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
2021-10-02 07:38:26 +00:00
Rich Trott
85811d1ade tools: fix lint-md autolinking
Update a transitive dependency in lint-md to fix an autolink bug in the
formatter that causes a lot of our files (particularly changelogs) to be
misformatted when run through the automatic formatter.

Refs: 7555d45f9a

PR-URL: https://github.com/nodejs/node/pull/40181
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
2021-09-25 10:23:30 -07:00
Rich Trott
6077473111 tools: implement markdown formatting
Markdown formatter is now available via `mark format-md` (or
`vcbuild format-md` on Windows).

PR-URL: https://github.com/nodejs/node/pull/40181
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
2021-09-25 10:23:20 -07:00
Rich Trott
8d83c47029 tools: re-implement lint-md without unified-args
`unified-args` ignores settings in the preset, expecting them to be in
remarkrc files or passed on the command line instead. Realizing that
we always send the same configuration options via the command-line
anyway, this removes `unified-args`. This means the preset settings are
now respected and it removes nearly 30000 lines of code in the resulting
rollup file.

I wasn't sure I was going to want to keep rollup so I started
re-implementing this without it, but ended up putting a minimal rollup
back as it still saves about 90000 lines of code vs. checking in
`node_modules`.

PR-URL: https://github.com/nodejs/node/pull/40180
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2021-09-25 03:51:52 +00:00