Skip to content

Commit

Permalink
tools: lint for additional strings in docs
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Trott authored and MylesBorins committed Dec 12, 2017
1 parent 8a17b7b commit e57af5a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tools/remark-preset-lint-node/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'), '*'],
Expand Down

0 comments on commit e57af5a

Please sign in to comment.