Skip to content

Commit 268812d

Browse files
committed
Update dev-dependencies
1 parent 7c46677 commit 268812d

File tree

2 files changed

+22
-23
lines changed

2 files changed

+22
-23
lines changed

package.json

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,17 @@
4949
"mdast-util-assert": "^3.0.0",
5050
"negate": "^1.0.0",
5151
"nyc": "^15.0.0",
52-
"prettier": "^1.0.0",
52+
"prettier": "^2.0.0",
5353
"rehype-parse": "^6.0.0",
54-
"remark-cli": "^7.0.0",
55-
"remark-parse": "^7.0.0",
56-
"remark-preset-wooorm": "^6.0.0",
57-
"remark-stringify": "^7.0.0",
58-
"tape": "^4.0.0",
59-
"unified": "^8.0.0",
54+
"remark-cli": "^8.0.0",
55+
"remark-parse": "^8.0.0",
56+
"remark-preset-wooorm": "^7.0.0",
57+
"remark-stringify": "^8.0.0",
58+
"tape": "^5.0.0",
59+
"unified": "^9.0.0",
6060
"unist-builder": "^2.0.0",
6161
"unist-util-remove-position": "^2.0.0",
62-
"xo": "^0.27.0"
62+
"xo": "^0.32.0"
6363
},
6464
"scripts": {
6565
"format": "remark . -qfo && prettier --write \"**/*.js\" && xo --fix",
@@ -85,6 +85,9 @@
8585
"prettier": true,
8686
"esnext": false,
8787
"rules": {
88+
"unicorn/no-fn-reference-in-iterator": "off",
89+
"unicorn/prefer-number-properties": "off",
90+
"unicorn/prefer-optional-catch-binding": "off",
8891
"no-multi-assign": "off"
8992
}
9093
},

test/index.js

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ var toMdast = require('..')
1717

1818
var fixtures = path.join(__dirname, 'fixtures')
1919

20-
test('core', function(t) {
20+
test('core', function (t) {
2121
t.deepEqual(
2222
toMdast(u('root', [h('strong', 'Alpha')])),
2323
u('root', [u('strong', [u('text', 'Alpha')])]),
@@ -78,21 +78,17 @@ test('core', function(t) {
7878
t.end()
7979
})
8080

81-
test('fixtures', function(t) {
82-
var remark = unified()
83-
.use(markdown)
84-
.use(stringify)
81+
test('fixtures', function (t) {
82+
var remark = unified().use(markdown).use(stringify)
8583

86-
fs.readdirSync(fixtures)
87-
.filter(negate(hidden))
88-
.forEach(check)
84+
fs.readdirSync(fixtures).filter(negate(hidden)).forEach(check)
8985

9086
t.end()
9187

9288
function check(name) {
9389
var ignore = /^base\b/.test(name) && typeof URL === 'undefined'
9490

95-
t.test(name, function(st) {
91+
t.test(name, function (st) {
9692
var input = String(
9793
fs.readFileSync(path.join(fixtures, name, 'index.html'))
9894
)
@@ -113,7 +109,7 @@ test('fixtures', function(t) {
113109

114110
var fromHtml = unified()
115111
.use(html)
116-
.use(function() {
112+
.use(function () {
117113
return transformer
118114
function transformer(tree) {
119115
return toMdast(tree, config)
@@ -126,7 +122,7 @@ test('fixtures', function(t) {
126122
// Replace middots with spaces (useful for break nodes).
127123
output = output.replace(/·/g, ' ')
128124

129-
st.doesNotThrow(function() {
125+
st.doesNotThrow(function () {
130126
assert(tree)
131127
}, 'should produce valid mdast nodes')
132128

@@ -156,10 +152,10 @@ test('fixtures', function(t) {
156152
}
157153
})
158154

159-
test('handlers option', function(t) {
155+
test('handlers option', function (t) {
160156
var options = {
161157
handlers: {
162-
div: function(h, node) {
158+
div: function (h, node) {
163159
node.children[0].value = 'Beta'
164160
node.type = 'paragraph'
165161
return h(node, 'paragraph', node.children)
@@ -207,7 +203,7 @@ test('handlers option', function(t) {
207203
t.end()
208204
})
209205

210-
test('document option', function(t) {
206+
test('document option', function (t) {
211207
var tree = u('root', [
212208
h('b', 'Importance'),
213209
u('text', ' and '),
@@ -242,7 +238,7 @@ test('document option', function(t) {
242238
t.end()
243239
})
244240

245-
test('newlines option', function(t) {
241+
test('newlines option', function (t) {
246242
t.deepEqual(
247243
toMdast({
248244
type: 'root',

0 commit comments

Comments
 (0)