summaryrefslogtreecommitdiff
path: root/tools/node-lint-md-cli-rollup
Commit message (Collapse)AuthorAgeFilesLines
* tools: update dependencies for markdown lintingRich Trott2020-05-172-270/+384
| | | | | | PR-URL: https://github.com/nodejs/node/pull/33412 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
* tools: bump remark-preset-lint-node to 1.15.0Rich Trott2020-05-042-4/+4
| | | | | | | | | New version of remark-preset-lint-node includes prohibited string entry accidentally removed in the last version. PR-URL: https://github.com/nodejs/node/pull/33157 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
* tools: update remark-preset-lint-node@1.14.0Rich Trott2020-05-042-246/+1296
| | | | | | PR-URL: https://github.com/nodejs/node/pull/33072 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
* tools: update minimist@1.2.5Rich Trott2020-03-161-15/+15
| | | | | | | | | | | | Update minimist used by lint-md.js to 1.2.5. Refs: https://app.snyk.io/vuln/SNYK-JS-MINIMIST-559764 Signed-off-by: Rich Trott <rtrott@gmail.com> PR-URL: https://github.com/nodejs/node/pull/32274 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: James M Snell <jasnell@gmail.com>
* tools: update to acorn@7.1.1Rich Trott2020-03-141-3/+3
| | | | | | | | | | | Update acorn to 7.1.1 in the dev dependencies for the markdown linter. Refs: https://app.snyk.io/vuln/SNYK-JS-ACORN-559469 Signed-off-by: Rich Trott <rtrott@gmail.com> PR-URL: https://github.com/nodejs/node/pull/32259 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Michaël Zasso <targos@protonmail.com>
* tools: update lint-md task to lint for possessives of Node.jsRich Trott2020-02-203-27/+52
| | | | | | | | | | | Add a markdown lint rule to prohibit "Node.js'" and "Node.js's". Instead, of "Node.js' module system", use "the Node.js module system". Refs: https://github.com/nodejs/node/pull/31748#issuecomment-585087745 PR-URL: https://github.com/nodejs/node/pull/31862 Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
* tools: update Markdown linter to be cross-platformDerek Lewis2020-02-124-125/+364
| | | | | | | | | | | | | | | Prior to this commit, the dependencies were not matching the build procedure. This has been corrected and it has the added benefit of being able to be built on Windows as well. * continue using `rollup` rather than `ncc` * do not require `fs-event`s for non-macOS * use `npx` and `shx` for cross-platform building * ensure `lint-md-rollup` runs before `lint-md` PR-URL: https://github.com/nodejs/node/pull/31239 Reviewed-By: Rich Trott <rtrott@gmail.com>
* tools: remove obsolete dependenciesRich Trott2020-01-152-152/+1
| | | | | | | | | Remove rollup dependencies in markdown linting tool's package.json. We use @zeit/ncc. PR-URL: https://github.com/nodejs/node/pull/31359 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
* tools: update remark-preset-lint-node to 1.12.0Rich Trott2020-01-152-230/+178
| | | | | | | | This adds linting for "hostname" in prose. PR-URL: https://github.com/nodejs/node/pull/31359 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
* tools: enable Markdown linter's usage informationDerek Lewis2019-12-143-428/+425
| | | | | | | | | | | | Prior to this commit, running `node tools/lint-md --help` and `node tools/lint-md --version` resulted in an error. * Use `unified-args` to start processor * Use `unified-args`'s error handler Fixes: https://github.com/nodejs/node/issues/30156 PR-URL: https://github.com/nodejs/node/pull/30216 Reviewed-By: Rich Trott <rtrott@gmail.com>
* tools: update remark-preset-lint-node to 1.11.0Rich Trott2019-12-062-19/+19
| | | | | | | | | PR-URL: https://github.com/nodejs/node/pull/30789 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
* tools: update remark-preset-lint-node to 1.10.1Rich Trott2019-10-152-72/+128
| | | | | | | | | | | | | | This includes better link linting, improved prohibited string linting, and a more maintainable code base by using remark-preset-int-recommended (thanks nschonni!). Update other dependencies while at it. PR-URL: https://github.com/nodejs/node/pull/29982 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
* tools: update remark-preset-lint-node to 1.10.0Rich Trott2019-09-172-40/+62
| | | | | | | | | A new version of remark-preset-lint-node adds linting for unordered list style. PR-URL: https://github.com/nodejs/node/pull/29594 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
* tools: apply more stringent blank-line linting for markdown filesRich Trott2019-09-072-4/+17
| | | | | | | | | | | | Update remark-preset-lint-node to 1.9.0, which adds linting for multiple consecutive blank lines. PR-URL: https://github.com/nodejs/node/pull/29447 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
* tools: add markdown lint rule for 'Unix'Rich Trott2019-07-112-4/+4
| | | | | | | | | | | | | A recent PR standardized on 'Unix' rather than 'UNIX' or 'unix'. This change adds a markdown linting rule to enforce it going forward. PR-URL: https://github.com/nodejs/node/pull/28619 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
* tools: update unified-args to 7.0.0 for md-lint CLIRich Trott2019-07-012-1525/+231
| | | | | | | | | | | | | | | Update unified-args from 6.0.0 to 7.0.0 for tools/node-lint-md-cli-rollup. This removes a vulnerable package (set-value@0.4.3) from the dependencies. Refs: https://app.snyk.io/vuln/SNYK-JS-SETVALUE-450213 PR-URL: https://github.com/nodejs/node/pull/28434 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
* tools: update remark-preset-lint-node to 1.7.0Rich Trott2019-06-262-123/+143
| | | | | | | | | | | This update enables linting for "note that" in our docs. That phrase is almost always superfluous. Sentences are almost always clearer and stronger without it. PR-URL: https://github.com/nodejs/node/pull/28393 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
* tools: update markdown linter for Windows line endingsRich Trott2019-05-192-11/+11
| | | | | | | | | | Update the markdown linter to work with Windows line endings. Previously, Windows line endings would break the trailing-spaces plugin. PR-URL: https://github.com/nodejs/node/pull/27756 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
* tools: update js-yaml to 3.13.1 for lint-md.jsRich Trott2019-04-131-198/+91
| | | | | | | | | | | | | Update js-yaml from 3.13.0 to 3.13.1 in the lint-md.js tool. Version 3.13.0 is the subject of a security problem. It is almost certainly not anything that is reasonable exploitable in our code base (as it's internal tooling) but good to update anyway just in case... Refs: https://app.snyk.io/vuln/SNYK-JS-JSYAML-174129 PR-URL: https://github.com/nodejs/node/pull/27195 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
* tools: update dependencies in lint-md-cli-rollupDaijiro Wachi2019-03-302-177/+145
| | | | | | | | | | | | | | | | | | | | Summary + Update `@zeit/ncc` to `^0.16.1` from `^0.15.2` + Update `unified-engine` to `^6.0.1` from `^5.1.0` + Run `npm audit fix` + Run `npm run build-node` Refs: + https://github.com/unifiedjs/unified-engine/releases/tag/6.0.0 + https://github.com/unifiedjs/unified-engine/releases/tag/6.0.1 + https://github.com/zeit/ncc/releases/tag/0.16.0 + https://github.com/zeit/ncc/releases/tag/0.16.1 PR-URL: https://github.com/nodejs/node/pull/26889 Refs: https://github.com/unifiedjs/unified-engine/releases/tag/6.0.0 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Yuta Hiroto <hello@hiroppy.me>
* tools: update lint-md.js to lint rfc name formatRich Trott2019-03-172-8/+8
| | | | | | | | | Update lint-md.js to lint for "RFC1234" and similar variants that should be written as "RFC 1234". PR-URL: https://github.com/nodejs/node/pull/26727 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
* tools: update `node-lint-md-cli-rollup` version 2Refael Ackermann2019-03-082-10/+10
| | | | | | | | PR-URL: https://github.com/nodejs/node/pull/26441 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
* tools: update remark-preset-lint-node to 1.5.0Rich Trott2019-03-061-6/+6
| | | | | | | | | | This update includes an additional check for `End-of-life`. For consistency, we use `End-of-Life` everywhere. PR-URL: https://github.com/nodejs/node/pull/26442 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
* tools: refactor tools JS codeRich Trott2019-03-041-2/+2
| | | | | | | | | | | | * standardize on arrow functions for callbacks * standaradize on trailing commas for multiline arrays PR-URL: https://github.com/nodejs/node/pull/26394 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com> Reviewed-By: Masashi Hirano <shisama07@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
* tools: update node-lint-md-cli-rollup lockfileRich Trott2019-03-031-164/+217
| | | | | | | | | | | This includes an update for chownr from 1.0.1 to 1.1.1, which means a fix for the issue described in https://github.com/isaacs/chownr/issues/14. While not a user-facing issue, it seems like a good idea to patch promptly anyway. PR-URL: https://github.com/nodejs/node/pull/26393 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Refael Ackermann <refack@gmail.com>
* tools: update markdown linterRich Trott2019-02-252-47/+66
| | | | | | | | | | | | | | Update remark-preset-lint-node to 1.4.0. This adds `End-Of-Life` as a prohibited string, favoring `End-of-Life` for consistency. Refs: https://github.com/nodejs/node/pull/26251 PR-URL: https://github.com/nodejs/node/pull/26281 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
* tools: replace rollup with nccRich Trott2018-12-053-453/+11
| | | | | | | | | | | Replace rollup + plugins + config file with zeit/ncc package designed to do the particular task that we're leveraging rollup for but with zero-ish configuration. (rollup can do a whole lot more, but we're using a tiny portion of its functionality.) PR-URL: https://github.com/nodejs/node/pull/24813 Reviewed-By: Guy Bedford <guybedford@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
* tools: update remark-preset-lint-node to v1.3.1Daijiro Wachi2018-11-282-13/+22
| | | | | | | PR-URL: https://github.com/nodejs/node/pull/24642 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
* tools: update to remark-lint-preset-node@1.2.0Rich Trott2018-11-182-4/+17
| | | | | | | | | Adds linting for number of spaces after a list indicator. (Expects exactly 1 space.) PR-URL: https://github.com/nodejs/node/pull/24391 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
* tools: update remark-lint to v6.0.3 from v6.0.2Daijiro Wachi2018-11-162-4/+4
| | | | | | | PR-URL: https://github.com/nodejs/node/pull/24333 Refs: https://github.com/remarkjs/remark-lint/releases/tag/6.0.3 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
* tools: update remark version to v10 from v8Daijiro Wachi2018-11-162-18/+36
| | | | | | | | | | Including the below two updates: + https://github.com/remarkjs/remark/releases/tag/9.0.0 + https://github.com/remarkjs/remark/releases/tag/10.0.0 PR-URL: https://github.com/nodejs/node/pull/24333 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
* tools: enable 80-char line length markdown lintingRich Trott2018-11-072-10/+22
| | | | | | | PR-URL: https://github.com/nodejs/node/pull/24094 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
* tools: update node-lint-md-cli-rollupRich Trott2018-10-117-1703/+894
| | | | | | | | | | Update node-lint-md-cli-rollup. This silences some minor warnings that appear with `npm audit`. It also updates remark-preset-lint-node to 1.0.3 (from 1.0.2). PR-URL: https://github.com/nodejs/node/pull/23358 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
* tools: `make lint-md-rollup` & checkin `lint-md.js`Refael Ackermann2018-09-112-536/+538
| | | | | | | PR-URL: https://github.com/nodejs/node/pull/20109 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
* tools: relocate `remark-preset-lint-node`Refael Ackermann2018-09-116-1/+625
| | | | | | | PR-URL: https://github.com/nodejs/node/pull/20109 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
* tools: update `node-lint-md-cli-rollup`Refael Ackermann2018-09-113-1242/+2178
| | | | | | | PR-URL: https://github.com/nodejs/node/pull/20109 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
* tools: vendor in node-lint-md-cli-rollupRefael Ackermann2018-09-116-0/+2746
PR-URL: https://github.com/nodejs/node/pull/20109 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>