Skip to content

Commit

Permalink
tools: update markdown lint presets
Browse files Browse the repository at this point in the history
Update remark-preset-lint-node to version at commit hash
859eab541e0f63839b33196f26e2bed4dfe2b194. This is the most recent
version at this time (although not yet published to npm). It includes
linting for "v8" where "V8" is intended and "Javascript" Where
"JavaScript" is intended. By installing those lint rules now rather than
waiting for a published version, we avoid the possibility that new
markdown text with those prohibited strings will be introduced.

PR-URL: #17382
Reviewed-By: Jon Moss <[email protected]>
  • Loading branch information
Trott committed Dec 1, 2017
1 parent dd629ef commit c589561
Show file tree
Hide file tree
Showing 3 changed files with 98 additions and 38 deletions.
7 changes: 7 additions & 0 deletions tools/remark-preset-lint-node/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ module.exports.plugins = [
[require('remark-lint-file-extension'), 'md'],
[require('remark-lint-first-heading-level'), 1],
[require('remark-lint-heading-style'), 'atx'],
[
require('remark-lint-prohibited-strings'),
[
{ no: 'v8', yes: 'V8' },
{ no: 'Javascript', yes: 'JavaScript' }
]
],
[require('remark-lint-strong-marker'), '*'],
[require('remark-lint-table-cell-padding'), 'padded']
];
80 changes: 48 additions & 32 deletions tools/remark-preset-lint-node/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

49 changes: 43 additions & 6 deletions tools/remark-preset-lint-node/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,30 @@
{
"private": true,
"name": "remark-preset-lint-node",
"version": "1.0.0",
"description": "remark preset to configure remark-lint with settings for nodejs/node",
"main": "index.js",
"_from": "github:watilde/remark-preset-lint-node#859eab541e0f63839b33196f26e2bed4dfe2b194",
"_id": "[email protected]",
"_inBundle": false,
"_integrity": "sha1-UxsozHvbtJwHgKk6AYCqVPvpz8w=",
"_location": "/remark-preset-lint-node",
"_phantomChildren": {},
"_requested": {
"type": "git",
"raw": "watilde/remark-preset-lint-node#859eab541e0f63839b33196f26e2bed4dfe2b194",
"rawSpec": "watilde/remark-preset-lint-node#859eab541e0f63839b33196f26e2bed4dfe2b194",
"saveSpec": "github:watilde/remark-preset-lint-node#859eab541e0f63839b33196f26e2bed4dfe2b194",
"fetchSpec": null,
"gitCommittish": "859eab541e0f63839b33196f26e2bed4dfe2b194"
},
"_requiredBy": [
"#USER",
"/"
],
"_resolved": "github:watilde/remark-preset-lint-node#859eab541e0f63839b33196f26e2bed4dfe2b194",
"_spec": "watilde/remark-preset-lint-node#859eab541e0f63839b33196f26e2bed4dfe2b194",
"_where": "/Users/trott/io.js/tools",
"author": "",
"bugs": {
"url": "https://github.com/watilde/remark-preset-lint-node/issues"
},
"bundleDependencies": false,
"dependencies": {
"remark-lint": "^6.0.0",
"remark-lint-blockquote-indentation": "^1.0.0",
Expand Down Expand Up @@ -34,9 +55,25 @@
"remark-lint-no-table-indentation": "^1.0.0",
"remark-lint-no-tabs": "^1.0.0",
"remark-lint-no-unused-definitions": "^1.0.0",
"remark-lint-prohibited-strings": "^1.0.0",
"remark-lint-rule-style": "^1.0.0",
"remark-lint-strong-marker": "^1.0.0",
"remark-lint-table-cell-padding": "^1.0.0",
"remark-lint-table-pipes": "^1.0.0"
}
},
"deprecated": false,
"description": "remark preset to configure remark-lint with settings for nodejs/node",
"homepage": "https://github.com/watilde/remark-preset-lint-node#readme",
"keywords": [],
"license": "MIT",
"main": "index.js",
"name": "remark-preset-lint-node",
"repository": {
"type": "git",
"url": "git+https://github.com/watilde/remark-preset-lint-node.git"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"version": "1.0.2"
}

0 comments on commit c589561

Please sign in to comment.