Skip to content

Commit 0cda4d3

Browse files
committed
Update dev-dependencies
1 parent a7896eb commit 0cda4d3

File tree

3 files changed

+29
-22
lines changed

3 files changed

+29
-22
lines changed

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
coverage/
22
hast-util-to-nlcst.js
33
hast-util-to-nlcst.min.js
4+
*.html
5+
*.json
6+
*.md

package.json

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"hast-util-whitespace": "^1.0.0",
3838
"nlcst-to-string": "^2.0.0",
3939
"unist-util-position": "^3.0.0",
40-
"vfile-location": "^2.0.0"
40+
"vfile-location": "^3.0.0"
4141
},
4242
"devDependencies": {
4343
"browserify": "^16.0.0",
@@ -47,17 +47,17 @@
4747
"parse-dutch": "^4.0.0",
4848
"parse-english": "^4.0.0",
4949
"parse-latin": "^4.0.0",
50-
"prettier": "^1.0.0",
51-
"rehype": "^9.0.0",
52-
"remark-cli": "^7.0.0",
53-
"remark-preset-wooorm": "^6.0.0",
54-
"tape": "^4.0.0",
50+
"prettier": "^2.0.0",
51+
"rehype": "^11.0.0",
52+
"remark-cli": "^8.0.0",
53+
"remark-preset-wooorm": "^7.0.0",
54+
"tape": "^5.0.0",
5555
"tinyify": "^2.0.0",
5656
"vfile": "^4.0.0",
57-
"xo": "^0.27.0"
57+
"xo": "^0.32.0"
5858
},
5959
"scripts": {
60-
"format": "remark . -qfo && prettier --write \"**/*.js\" && xo --fix",
60+
"format": "remark . -qfo && prettier . --write && xo --fix",
6161
"build-bundle": "browserify . -s hastUtilToNlcst > hast-util-to-nlcst.js",
6262
"build-mangle": "browserify . -s hastUtilToNlcst -p tinyify > hast-util-to-nlcst.min.js",
6363
"build": "npm run build-bundle && npm run build-mangle",
@@ -82,6 +82,10 @@
8282
"xo": {
8383
"prettier": true,
8484
"esnext": false,
85+
"rules": {
86+
"unicorn/no-fn-reference-in-iterator": "off",
87+
"unicorn/prefer-optional-catch-binding": "off"
88+
},
8589
"ignores": [
8690
"hast-util-to-nlcst.js"
8791
]

test/index.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,64 +12,64 @@ var negate = require('negate')
1212
var hidden = require('is-hidden')
1313
var toNlcst = require('..')
1414

15-
test('hast-util-to-nlcst', function(t) {
15+
test('hast-util-to-nlcst', function (t) {
1616
t.throws(
17-
function() {
17+
function () {
1818
toNlcst()
1919
},
2020
/hast-util-to-nlcst expected node/,
2121
'should fail when not given a tree'
2222
)
2323

2424
t.throws(
25-
function() {
25+
function () {
2626
toNlcst({})
2727
},
2828
/hast-util-to-nlcst expected node/,
2929
'should fail when not given a tree (#2)'
3030
)
3131

3232
t.throws(
33-
function() {
33+
function () {
3434
toNlcst({type: 'foo'})
3535
},
3636
/hast-util-to-nlcst expected file/,
3737
'should fail when not given a file'
3838
)
3939

4040
t.throws(
41-
function() {
41+
function () {
4242
toNlcst({type: 'foo'})
4343
},
4444
/hast-util-to-nlcst expected file/,
4545
'should fail when not given a file (#2)'
4646
)
4747

4848
t.throws(
49-
function() {
49+
function () {
5050
toNlcst({type: 'text', value: 'foo'}, {foo: 'bar'})
5151
},
5252
/hast-util-to-nlcst expected file/,
5353
'should fail when not given a file (#3)'
5454
)
5555

5656
t.throws(
57-
function() {
57+
function () {
5858
toNlcst({type: 'text', value: 'foo'}, vfile('foo'))
5959
},
6060
/hast-util-to-nlcst expected parser/,
6161
'should fail without parser'
6262
)
6363

6464
t.throws(
65-
function() {
65+
function () {
6666
toNlcst({type: 'text', value: 'foo'}, vfile(), Latin)
6767
},
6868
/hast-util-to-nlcst expected position on nodes/,
6969
'should fail when not given positional information'
7070
)
7171

72-
t.doesNotThrow(function() {
72+
t.doesNotThrow(function () {
7373
toNlcst(
7474
{
7575
type: 'text',
@@ -84,7 +84,7 @@ test('hast-util-to-nlcst', function(t) {
8484
)
8585
}, 'should accept a parser constructor')
8686

87-
t.doesNotThrow(function() {
87+
t.doesNotThrow(function () {
8888
toNlcst(
8989
{
9090
type: 'text',
@@ -100,7 +100,7 @@ test('hast-util-to-nlcst', function(t) {
100100
}, 'should accept a parser instance')
101101

102102
t.throws(
103-
function() {
103+
function () {
104104
toNlcst(
105105
{
106106
type: 'text',
@@ -115,7 +115,7 @@ test('hast-util-to-nlcst', function(t) {
115115
'should fail when not given positional information (#2)'
116116
)
117117

118-
t.test('should accept nodes without offsets', function(st) {
118+
t.test('should accept nodes without offsets', function (st) {
119119
var node = toNlcst(
120120
{
121121
type: 'text',
@@ -138,12 +138,12 @@ test('hast-util-to-nlcst', function(t) {
138138
t.end()
139139
})
140140

141-
test('Fixtures', function(t) {
141+
test('Fixtures', function (t) {
142142
var root = path.join(__dirname, 'fixtures')
143143

144144
fs.readdirSync(root)
145145
.filter(negate(hidden))
146-
.forEach(function(fixture) {
146+
.forEach(function (fixture) {
147147
var input = path.join(root, fixture, 'input.html')
148148
var output = path.join(root, fixture, 'output.json')
149149
var file = vfile(fs.readFileSync(input))

0 commit comments

Comments
 (0)