diff options
author | Rich Trott <rtrott@gmail.com> | 2017-12-06 06:14:53 -0800 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2017-12-08 13:27:53 -0800 |
commit | 762ed339319adffd62cdd9d0eda8bb3fb6c73f86 (patch) | |
tree | c83cb13606bda75e647dab1a2f4868cafe82d582 /tools | |
parent | 3ad01e749fffc0281d3639b1fdca65ee3619d90c (diff) | |
download | node-new-762ed339319adffd62cdd9d0eda8bb3fb6c73f86.tar.gz |
tools: lint for additional strings in docs
Check for uses of `Github` (rather than `GitHub`) and `Node.JS` (rather
than `Node.js`) in markdown files.
PR-URL: https://github.com/nodejs/node/pull/17492
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: Jon Moss <me@jonathanmoss.me>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/remark-preset-lint-node/index.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/remark-preset-lint-node/index.js b/tools/remark-preset-lint-node/index.js index c5aef12d53..a59d5d78d8 100644 --- a/tools/remark-preset-lint-node/index.js +++ b/tools/remark-preset-lint-node/index.js @@ -42,8 +42,10 @@ module.exports.plugins = [ [ require('remark-lint-prohibited-strings'), [ - { no: 'v8', yes: 'V8' }, - { no: 'Javascript', yes: 'JavaScript' } + { no: 'Github', yes: 'GitHub' }, + { no: 'Javascript', yes: 'JavaScript' }, + { no: 'Node.JS', yes: 'Node.js' }, + { no: 'v8', yes: 'V8' } ] ], [require('remark-lint-strong-marker'), '*'], |