summaryrefslogtreecommitdiff
path: root/tools/lint-md/lint-md.mjs
Commit message (Collapse)AuthorAgeFilesLines
* tools: update lint-md-dependencies to rollup@2.70.1Node.js GitHub Bot2022-04-231-3/+3
| | | | | | | | PR-URL: https://github.com/nodejs/node/pull/42403 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Mestery <mestery@protonmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Michaël Zasso <targos@protonmail.com>
* tools: update lint-md-dependencies to rollup@2.70.0 unified@10.1.2Node.js GitHub Bot2022-04-231-1/+1
| | | | | | | | | PR-URL: https://github.com/nodejs/node/pull/42316 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Mestery <mestery@protonmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Joe Sepi <sepi@joesepi.com>
* tools: update lint-md-dependencies to rollup@2.69.1Node.js GitHub Bot2022-04-231-14/+16
| | | | | | | PR-URL: https://github.com/nodejs/node/pull/42226 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Mestery <mestery@protonmail.com>
* tools: update lint-md rollup dependenciesNode.js GitHub Bot2022-04-231-2/+2
| | | | | | | | | Update to @rollup/plugin-commonjs@21.0.2 rollup@2.68.0 PR-URL: https://github.com/nodejs/node/pull/42141 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Mestery <mestery@protonmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
* tools: update remark-preset-lint-node to 3.3.1Rich Trott2022-04-231-0/+2
| | | | | | | PR-URL: https://github.com/nodejs/node/pull/41999 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com> Reviewed-By: Mestery <mestery@protonmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
* tools: update lint-md-dependencies to rollup@2.67.0Node.js GitHub Bot2022-03-141-172/+378
| | | | | | PR-URL: https://github.com/nodejs/node/pull/41737 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Mestery <mestery@protonmail.com>
* tools: update lint-md-dependenciesNode.js GitHub Bot2022-02-261-26/+317
| | | | | | | | | 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>
* tools: update lint-md-dependencies to @rollup/plugin-node-resolve@13.1.2Node.js GitHub Bot2022-01-311-8/+8
| | | | | PR-URL: https://github.com/nodejs/node/pull/41369 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
* tools: update lint-md-dependencies to rollup@2.62.0Node.js GitHub Bot2022-01-311-1/+8
| | | | | PR-URL: https://github.com/nodejs/node/pull/41315 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
* tools: update lint-md-dependencies to rollup@2.61.1 vfile-reporter@7.0.3Node.js GitHub Bot2022-01-311-631/+1242
| | | | | | PR-URL: https://github.com/nodejs/node/pull/41150 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
* tools: strip comments from lint-md rollup outputRich Trott2022-01-311-9275/+404
| | | | | | | | | 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>
* tools: update lint-md-dependencies to rollup@2.60.1Node.js GitHub Bot2022-01-311-13/+23
| | | | | | | 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>
* tools: update lint-md dependenciesRich Trott2022-01-311-158/+183
| | | | | | | | | 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>
* tools: notify user if format-md needs to be runRich Trott2022-01-311-4/+19
| | | | | | | | 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>
* tools: avoid unnecessary escaping in markdown formatterRich Trott2022-01-291-11/+40
| | | | | | | | | 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>
* tools: update tools/lint-md dependencies to support GFM footnotesRich Trott2021-11-041-446/+574
| | | | | | PR-URL: https://github.com/nodejs/node/pull/40445 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
* tools: update lint-md dependenciesRich Trott2021-11-041-134/+107
| | | | | | | | | 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>
* tools: update remark-preset-lint-node to 3.2.0Rich Trott2021-10-041-3301/+3353
| | | | | | | 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>
* tools: fix lint-md autolinkingRich Trott2021-10-041-2/+6
| | | | | | | | | | | | 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: https://github.com/syntax-tree/mdast-util-gfm-autolink-literal/commit/7555d45f9ad4ecdd578ffedf3cbc4b01d3ae0135 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>
* tools: implement markdown formattingRich Trott2021-10-041-4/+17
| | | | | | | | | 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>
* tools: re-implement lint-md without unified-argsRich Trott2021-10-041-0/+29172
`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>