This adds linting for code fence language/grammar strings. This is so,
for example, we have only one of ```text and ```txt and not both.

PR-URL: https://github.com/nodejs/node/pull/33852
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
This commit is contained in:
Rich Trott committed 2020-06-18 06:05:38 -07:00
1 parent 7407fc2aea
commit 0ef6956225
3 files changed
+90 -130

No files matched your search

+86 -126
View File
@@ -16747,9 +16747,9 @@ var colorName$1 = {
"aquamarine": [127, 255, 212],
"azure": [240, 255, 255],
"beige": [245, 245, 220],
"bisque": [255, 228, 196],
"black": [0, 0, 0],
"blanchedalmond": [255, 235, 205],
"bisque": [255, 228, 196],
"black": [0, 0, 0],
"blanchedalmond": [255, 235, 205],
"blue": [0, 0, 255],
"blueviolet": [138, 43, 226],
"brown": [165, 42, 42],
@@ -16882,9 +16882,9 @@ var colorName$1 = {
"teal": [0, 128, 128],
"thistle": [216, 191, 216],
"tomato": [255, 99, 71],
"turquoise": [64, 224, 208],
"violet": [238, 130, 238],
"wheat": [245, 222, 179],
"turquoise": [64, 224, 208],
"violet": [238, 130, 238],
"wheat": [245, 222, 179],
"white": [255, 255, 255],
"whitesmoke": [245, 245, 245],
"yellow": [255, 255, 0],
@@ -43322,63 +43322,10 @@ function stringify$6(options) {
var remark = unified_1().use(remarkParse).use(remarkStringify).freeze();
const _from = "remark@latest";
const _id = "remark@12.0.0";
const _inBundle = false;
const _integrity = "sha512-oX4lMIS0csgk8AEbzY0h2jdR0ngiCHOpwwpxjmRa5TqAkeknY+tkhjRJGZqnCmvyuWh55/0SW5WY3R3nn3PH9A==";
const _location = "/remark";
const _phantomChildren = {
};
const _requested = {
type: "tag",
registry: true,
raw: "remark@latest",
name: "remark",
escapedName: "remark",
rawSpec: "latest",
saveSpec: null,
fetchSpec: "latest"
};
const _requiredBy = [
"#USER",
"/"
];
const _resolved = "https://registry.npmjs.org/remark/-/remark-12.0.0.tgz";
const _shasum = "d1c145c07341c9232f93b2f8539d56da15a2548c";
const _spec = "remark@latest";
const _where = "/Users/trott/io.js/tools/node-lint-md-cli-rollup";
const author = {
name: "Titus Wormer",
email: "tituswormer@gmail.com",
url: "https://wooorm.com"
};
const bugs = {
url: "https://github.com/remarkjs/remark/issues"
};
const bundleDependencies = false;
const contributors = [
{
name: "Titus Wormer",
email: "tituswormer@gmail.com",
url: "https://wooorm.com"
}
];
const dependencies = {
"remark-parse": "^8.0.0",
"remark-stringify": "^8.0.0",
unified: "^9.0.0"
};
const deprecated$1 = false;
const name$1 = "remark";
const version$1 = "12.0.0";
const description = "Markdown processor powered by plugins part of the unified collective";
const files = [
"index.js",
"types/index.d.ts"
];
const funding = {
type: "opencollective",
url: "https://opencollective.com/unified"
};
const homepage = "https://remark.js.org";
const license = "MIT";
const keywords = [
"unified",
"remark",
@@ -43394,83 +43341,77 @@ const keywords = [
"compile",
"process"
];
const license = "MIT";
const name$1 = "remark";
const repository = {
type: "git",
url: "https://github.com/remarkjs/remark/tree/master/packages/remark"
const homepage = "https://remark.js.org";
const repository = "https://github.com/remarkjs/remark/tree/master/packages/remark";
const bugs = "https://github.com/remarkjs/remark/issues";
const funding = {
type: "opencollective",
url: "https://opencollective.com/unified"
};
const author = "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)";
const contributors = [
"Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)"
];
const files = [
"index.js",
"types/index.d.ts"
];
const types = "types/index.d.ts";
const dependencies = {
"remark-parse": "^8.0.0",
"remark-stringify": "^8.0.0",
unified: "^9.0.0"
};
const scripts = {
test: "tape test.js"
};
const types = "types/index.d.ts";
const version$1 = "12.0.0";
const xo = false;
const _resolved = "https://registry.npmjs.org/remark/-/remark-12.0.0.tgz";
const _integrity = "sha512-oX4lMIS0csgk8AEbzY0h2jdR0ngiCHOpwwpxjmRa5TqAkeknY+tkhjRJGZqnCmvyuWh55/0SW5WY3R3nn3PH9A==";
const _from = "remark@12.0.0";
var _package = {
_from: _from,
_id: _id,
_inBundle: _inBundle,
_integrity: _integrity,
_location: _location,
_phantomChildren: _phantomChildren,
_requested: _requested,
_requiredBy: _requiredBy,
_resolved: _resolved,
_shasum: _shasum,
_spec: _spec,
_where: _where,
author: author,
bugs: bugs,
bundleDependencies: bundleDependencies,
contributors: contributors,
dependencies: dependencies,
deprecated: deprecated$1,
description: description,
files: files,
funding: funding,
homepage: homepage,
keywords: keywords,
license: license,
name: name$1,
repository: repository,
scripts: scripts,
types: types,
version: version$1,
xo: xo
description: description,
license: license,
keywords: keywords,
homepage: homepage,
repository: repository,
bugs: bugs,
funding: funding,
author: author,
contributors: contributors,
files: files,
types: types,
dependencies: dependencies,
scripts: scripts,
xo: xo,
_resolved: _resolved,
_integrity: _integrity,
_from: _from
};
var _package$1 = /*#__PURE__*/Object.freeze({
__proto__: null,
_from: _from,
_id: _id,
_inBundle: _inBundle,
_integrity: _integrity,
_location: _location,
_phantomChildren: _phantomChildren,
_requested: _requested,
_requiredBy: _requiredBy,
_resolved: _resolved,
_shasum: _shasum,
_spec: _spec,
_where: _where,
author: author,
bugs: bugs,
bundleDependencies: bundleDependencies,
contributors: contributors,
dependencies: dependencies,
deprecated: deprecated$1,
description: description,
files: files,
funding: funding,
homepage: homepage,
keywords: keywords,
license: license,
name: name$1,
repository: repository,
scripts: scripts,
types: types,
version: version$1,
description: description,
license: license,
keywords: keywords,
homepage: homepage,
repository: repository,
bugs: bugs,
funding: funding,
author: author,
contributors: contributors,
files: files,
types: types,
dependencies: dependencies,
scripts: scripts,
xo: xo,
_resolved: _resolved,
_integrity: _integrity,
_from: _from,
'default': _package
});
@@ -43488,7 +43429,7 @@ const dependencies$1 = {
"markdown-extensions": "^1.1.1",
remark: "^12.0.0",
"remark-lint": "^7.0.0",
"remark-preset-lint-node": "^1.15.1",
"remark-preset-lint-node": "^1.16.0",
"unified-args": "^8.0.0"
};
const main = "dist/index.js";
@@ -47191,7 +47132,26 @@ var plugins$2 = [
remarkLintCheckboxContentIndent,
[remarkLintCodeBlockStyle, "fenced"],
remarkLintDefinitionSpacing,
remarkLintFencedCodeFlag,
[
remarkLintFencedCodeFlag,
{
flags: [
"bash",
"c",
"coffee",
"console",
"cpp",
"diff",
"http",
"js",
"json",
"markdown",
"powershell",
"r",
"text",
],
},
],
[remarkLintFencedCodeMarker, "`"],
[remarkLintFileExtension, "md"],
remarkLintFinalDefinition,
+3 -3
View File
@@ -1349,9 +1349,9 @@
}
},
"remark-preset-lint-node": {
"version": "1.15.1",
"resolved": "https://registry.npmjs.org/remark-preset-lint-node/-/remark-preset-lint-node-1.15.1.tgz",
"integrity": "sha512-jRWBKCEkLGObhlgmlth0w78vxLKxvJYnkpqLvkl5AAatytv9kHjc4fN/dfUX2rj1KFYr/xC4KG/MM68gKQNJ0w==",
"version": "1.16.0",
"resolved": "https://registry.npmjs.org/remark-preset-lint-node/-/remark-preset-lint-node-1.16.0.tgz",
"integrity": "sha512-/SeIfHFDZkpi29quPG6Bt9FAao0oic3fTkvGFy1Xzu27qtuZba0h3wHIkNRRPZ281PRdT6LB6MfsigBr2A5eMw==",
"requires": {
"remark-lint": "^7.0.0",
"remark-lint-blockquote-indentation": "^2.0.0",
+1 -1
View File
@@ -13,7 +13,7 @@
"markdown-extensions": "^1.1.1",
"remark": "^12.0.0",
"remark-lint": "^7.0.0",
"remark-preset-lint-node": "^1.15.1",
"remark-preset-lint-node": "^1.16.0",
"unified-args": "^8.0.0"
},
"main": "dist/index.js",