From e0ad12089c6fb95f838d9763d30d7739fa9a1990 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Tue, 10 Aug 2021 20:28:49 +0200 Subject: [PATCH] Update dev-dependencies --- package.json | 26 +++++++++---------- .../index.js | 2 +- .../index.js | 2 +- script/build-presets.js | 8 +++--- script/build-rules.js | 8 +++--- script/plugin/list-of-presets.js | 4 +-- script/plugin/list-of-rules.js | 4 +-- test.js | 20 +++++++------- 8 files changed, 37 insertions(+), 37 deletions(-) diff --git a/package.json b/package.json index 713dfa52..e2e2c177 100644 --- a/package.json +++ b/package.json @@ -35,22 +35,22 @@ "devDependencies": { "c8": "^7.0.0", "dox": "^0.9.0", - "lerna": "^3.0.0", - "mdast-zone": "^4.0.0", + "lerna": "^4.0.0", + "mdast-zone": "^5.0.0", "parse-author": "^2.0.0", "prettier": "^2.0.0", - "remark": "^13.0.0", - "remark-cli": "^9.0.0", - "remark-comment-config": "^6.0.0", - "remark-gfm": "^1.0.0", - "remark-github": "^10.0.0", - "remark-toc": "^7.0.0", - "remark-validate-links": "^10.0.0", - "strip-indent": "^3.0.0", + "remark": "^14.0.0", + "remark-cli": "^10.0.0", + "remark-comment-config": "^7.0.0", + "remark-gfm": "^2.0.0", + "remark-github": "^11.0.0", + "remark-toc": "^8.0.0", + "remark-validate-links": "^11.0.0", + "strip-indent": "^4.0.0", "tape": "^5.0.0", - "to-vfile": "^6.0.0", - "unist-builder": "^2.0.0", - "unist-util-remove-position": "^3.0.0", + "to-vfile": "^7.0.0", + "unist-builder": "^3.0.0", + "unist-util-remove-position": "^4.0.0", "xo": "^0.38.0" }, "scripts": { diff --git a/packages/remark-lint-checkbox-character-style/index.js b/packages/remark-lint-checkbox-character-style/index.js index 43b7c2ce..f8e647ef 100644 --- a/packages/remark-lint-checkbox-character-style/index.js +++ b/packages/remark-lint-checkbox-character-style/index.js @@ -123,8 +123,8 @@ function checkboxCharacterStyle(tree, file, option) { // A list item cannot be checked and empty, according to GFM, but // theoretically it makes sense to get the end if that were possible. - /* c8 ignore next */ point = + /* c8 ignore next */ node.children.length === 0 ? pointEnd(node) : pointStart(node.children[0]) // Move back to before `] `. point.offset -= 2 diff --git a/packages/remark-lint-checkbox-content-indent/index.js b/packages/remark-lint-checkbox-content-indent/index.js index ef3766e9..96232a38 100644 --- a/packages/remark-lint-checkbox-content-indent/index.js +++ b/packages/remark-lint-checkbox-content-indent/index.js @@ -61,8 +61,8 @@ function checkboxContentIndent(tree, file) { // A list item cannot be checked and empty, according to GFM, but // theoretically it makes sense to get the end if that were possible. - /* c8 ignore next */ point = + /* c8 ignore next */ node.children.length === 0 ? pointEnd(node) : pointStart(node.children[0]) // Assume we start with a checkbox, because well, `checked` is set. diff --git a/script/build-presets.js b/script/build-presets.js index 5be05667..1ca148b2 100644 --- a/script/build-presets.js +++ b/script/build-presets.js @@ -1,10 +1,10 @@ import fs from 'fs' import path from 'path' import {inspect} from 'util' -import u from 'unist-builder' +import {u} from 'unist-builder' import dox from 'dox' -import remark from 'remark' -import gfm from 'remark-gfm' +import {remark} from 'remark' +import remarkGfm from 'remark-gfm' import strip from 'strip-indent' import parseAuthor from 'parse-author' import {find} from './util/find.js' @@ -258,7 +258,7 @@ presetObjects.forEach(function ({name, packages}) { fs.writeFileSync( path.join(base, 'readme.md'), - remark().use(gfm).stringify(u('root', children)) + remark().use(remarkGfm).stringify(u('root', children)) ) console.log('✓ wrote `readme.md` in `' + name + '`') diff --git a/script/build-rules.js b/script/build-rules.js index 131d2112..6acef2d9 100644 --- a/script/build-rules.js +++ b/script/build-rules.js @@ -1,9 +1,9 @@ import fs from 'fs' import path from 'path' import {inspect} from 'util' -import u from 'unist-builder' -import remark from 'remark' -import gfm from 'remark-gfm' +import {u} from 'unist-builder' +import {remark} from 'remark' +import remarkGfm from 'remark-gfm' import parseAuthor from 'parse-author' import {rules} from './util/rules.js' import {rule} from './util/rule.js' @@ -349,7 +349,7 @@ rules(root).forEach(function (basename) { fs.writeFileSync( path.join(base, 'readme.md'), - remark().use(gfm).stringify(u('root', children)) + remark().use(remarkGfm).stringify(u('root', children)) ) console.log('✓ wrote `readme.md` in `' + basename + '`') diff --git a/script/plugin/list-of-presets.js b/script/plugin/list-of-presets.js index cd01ec21..b4e2b54d 100644 --- a/script/plugin/list-of-presets.js +++ b/script/plugin/list-of-presets.js @@ -1,7 +1,7 @@ import fs from 'fs' import path from 'path' -import zone from 'mdast-zone' -import u from 'unist-builder' +import {zone} from 'mdast-zone' +import {u} from 'unist-builder' import {presets} from '../util/presets.js' var root = path.join(process.cwd(), 'packages') diff --git a/script/plugin/list-of-rules.js b/script/plugin/list-of-rules.js index 43181563..1a8c5024 100644 --- a/script/plugin/list-of-rules.js +++ b/script/plugin/list-of-rules.js @@ -1,7 +1,7 @@ import fs from 'fs' import path from 'path' -import zone from 'mdast-zone' -import u from 'unist-builder' +import {zone} from 'mdast-zone' +import {u} from 'unist-builder' import {rules} from '../util/rules.js' var root = path.join(process.cwd(), 'packages') diff --git a/test.js b/test.js index fb320331..fb9a58b5 100644 --- a/test.js +++ b/test.js @@ -1,10 +1,10 @@ import url from 'url' import path from 'path' import test from 'tape' -import vfile from 'to-vfile' -import removePosition from 'unist-util-remove-position' -import remark from 'remark' -import gfm from 'remark-gfm' +import {toVFile} from 'to-vfile' +import {removePosition} from 'unist-util-remove-position' +import {remark} from 'remark' +import remarkGfm from 'remark-gfm' import {rules} from './script/util/rules.js' import {rule} from './script/util/rule.js' import {characters} from './script/characters.js' @@ -32,7 +32,7 @@ test('core', function (t) { .use(noMultipleToplevelHeadings) .use(lint) .process( - vfile({path: 'virtual.md', contents: doc}), + toVFile({path: 'virtual.md', value: doc}), function (error, file) { st.deepEqual( [error].concat(file.messages.map(String)), @@ -51,7 +51,7 @@ test('core', function (t) { .use(noHeadingPunctuation) .use(noMultipleToplevelHeadings) .process( - vfile({path: 'virtual.md', contents: doc}), + toVFile({path: 'virtual.md', value: doc}), function (error, file) { st.deepEqual( [error].concat(file.messages.map(String)), @@ -312,14 +312,14 @@ function assertRule(t, rule, info) { /* eslint-disable-next-line max-params */ function assertFixture(t, rule, info, fixture, basename, settings) { var ruleId = info.ruleId - var file = vfile(basename) + var file = toVFile(basename) var expected = fixture.output var positionless = fixture.positionless var proc = remark().use(rule, settings) - if (fixture.gfm) proc.use(gfm) + if (fixture.gfm) proc.use(remarkGfm) - file.contents = preprocess(fixture.input || '') + file.value = preprocess(fixture.input || '') t.plan(positionless ? 1 : 2) @@ -349,7 +349,7 @@ function assertFixture(t, rule, info, fixture, basename, settings) { if (!positionless) { file.messages = [] proc = remark().use(clear).use(rule, settings) - if (fixture.gfm) proc.use(gfm) + if (fixture.gfm) proc.use(remarkGfm) proc.processSync(file) t.deepEqual(normalize(file.messages), [], 'should equal without position')