From e57af5aadae85818de809af8d6db7241f1ebca2e Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Wed, 6 Dec 2017 06:14:53 -0800 Subject: [PATCH] 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 Reviewed-By: Anatoli Papirovski Reviewed-By: Jon Moss Reviewed-By: James M Snell Reviewed-By: Daniel Bevenius Reviewed-By: Luigi Pinca --- tools/remark-preset-lint-node/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/remark-preset-lint-node/index.js b/tools/remark-preset-lint-node/index.js index c5aef12d539542..a59d5d78d8fff8 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'), '*'],