From b777bbb70e37353f11e10d94db0328a5610500e6 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Thu, 11 Jun 2020 16:44:23 -0700 Subject: [PATCH] tools: update remark-preset-lint-node@1.15.1 to 1.16.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-By: Daijiro Wachi --- tools/lint-md.js | 204 +++++++----------- .../node-lint-md-cli-rollup/package-lock.json | 6 +- tools/node-lint-md-cli-rollup/package.json | 2 +- 3 files changed, 86 insertions(+), 126 deletions(-) diff --git a/tools/lint-md.js b/tools/lint-md.js index f8e54d6d2f3fce..c7421709febe66 100644 --- a/tools/lint-md.js +++ b/tools/lint-md.js @@ -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 (https://wooorm.com)"; +const contributors = [ + "Titus Wormer (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, + name: name$1, + version: version$1, description: description, - files: files, - funding: funding, - homepage: homepage, - keywords: keywords, license: license, - name: name$1, + keywords: keywords, + homepage: homepage, repository: repository, - scripts: scripts, + bugs: bugs, + funding: funding, + author: author, + contributors: contributors, + files: files, types: types, - version: version$1, - xo: xo + 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, + name: name$1, + version: version$1, description: description, - files: files, - funding: funding, - homepage: homepage, - keywords: keywords, license: license, - name: name$1, + keywords: keywords, + homepage: homepage, repository: repository, - scripts: scripts, + bugs: bugs, + funding: funding, + author: author, + contributors: contributors, + files: files, types: types, - version: version$1, + 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, diff --git a/tools/node-lint-md-cli-rollup/package-lock.json b/tools/node-lint-md-cli-rollup/package-lock.json index 660d0802ca277b..9392260f13f4bb 100644 --- a/tools/node-lint-md-cli-rollup/package-lock.json +++ b/tools/node-lint-md-cli-rollup/package-lock.json @@ -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", diff --git a/tools/node-lint-md-cli-rollup/package.json b/tools/node-lint-md-cli-rollup/package.json index ee03028112bc92..069a93e801da41 100644 --- a/tools/node-lint-md-cli-rollup/package.json +++ b/tools/node-lint-md-cli-rollup/package.json @@ -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",