Skip to content

Commit e57af5a

Browse files
TrottMylesBorins
authored andcommitted
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: #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>
1 parent 8a17b7b commit e57af5a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tools/remark-preset-lint-node/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,10 @@ module.exports.plugins = [
4242
[
4343
require('remark-lint-prohibited-strings'),
4444
[
45-
{ no: 'v8', yes: 'V8' },
46-
{ no: 'Javascript', yes: 'JavaScript' }
45+
{ no: 'Github', yes: 'GitHub' },
46+
{ no: 'Javascript', yes: 'JavaScript' },
47+
{ no: 'Node.JS', yes: 'Node.js' },
48+
{ no: 'v8', yes: 'V8' }
4749
]
4850
],
4951
[require('remark-lint-strong-marker'), '*'],

0 commit comments

Comments
 (0)