Skip to content

Commit

Permalink
Update dev-dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Aug 11, 2021
1 parent e3ddd9e commit e0ad120
Show file tree
Hide file tree
Showing 8 changed files with 37 additions and 37 deletions.
26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion packages/remark-lint-checkbox-character-style/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/remark-lint-checkbox-content-indent/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
8 changes: 4 additions & 4 deletions script/build-presets.js
Original file line number Diff line number Diff line change
@@ -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'
Expand Down Expand Up @@ -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 + '`')
Expand Down
8 changes: 4 additions & 4 deletions script/build-rules.js
Original file line number Diff line number Diff line change
@@ -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'
Expand Down Expand Up @@ -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 + '`')
Expand Down
4 changes: 2 additions & 2 deletions script/plugin/list-of-presets.js
Original file line number Diff line number Diff line change
@@ -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')
Expand Down
4 changes: 2 additions & 2 deletions script/plugin/list-of-rules.js
Original file line number Diff line number Diff line change
@@ -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')
Expand Down
20 changes: 10 additions & 10 deletions test.js
Original file line number Diff line number Diff line change
@@ -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'
Expand Down Expand Up @@ -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)),
Expand All @@ -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)),
Expand Down Expand Up @@ -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)

Expand Down Expand Up @@ -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')
Expand Down

0 comments on commit e0ad120

Please sign in to comment.