Skip to content

Commit

Permalink
Update dev-dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Jun 18, 2020
1 parent e7d0c3e commit ee823f6
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 18 deletions.
2 changes: 2 additions & 0 deletions .prettierignore
@@ -1,3 +1,5 @@
coverage/
mdast-zone.js
mdast-zone.min.js
*.json
*.md
18 changes: 11 additions & 7 deletions package.json
Expand Up @@ -38,16 +38,16 @@
"is-hidden": "^1.0.0",
"negate": "^1.0.0",
"nyc": "^15.0.0",
"prettier": "^1.0.0",
"remark": "^11.0.0",
"remark-cli": "^7.0.0",
"remark-preset-wooorm": "^6.0.0",
"tape": "^4.0.0",
"prettier": "^2.0.0",
"remark": "^12.0.0",
"remark-cli": "^8.0.0",
"remark-preset-wooorm": "^7.0.0",
"tape": "^5.0.0",
"tinyify": "^2.0.0",
"xo": "^0.26.0"
"xo": "^0.32.0"
},
"scripts": {
"format": "remark . -qfo && prettier --write \"**/*.js\" && xo --fix",
"format": "remark . -qfo && prettier . --write && xo --fix",
"build-bundle": "browserify . -s mdastZone > mdast-zone.js",
"build-mangle": "browserify . -s mdastZone -p tinyify > mdast-zone.min.js",
"build": "npm run build-bundle && npm run build-mangle",
Expand All @@ -72,6 +72,10 @@
"xo": {
"prettier": true,
"esnext": false,
"rules": {
"unicorn/no-fn-reference-in-iterator": "off",
"unicorn/prefer-optional-catch-binding": "off"
},
"ignores": [
"mdast-zone.js"
]
Expand Down
5 changes: 1 addition & 4 deletions test/fixtures.js
Expand Up @@ -7,10 +7,7 @@ var hidden = require('is-hidden')

var root = path.join(__dirname, 'fixtures')

module.exports = fs
.readdirSync(root)
.filter(negate(hidden))
.map(map)
module.exports = fs.readdirSync(root).filter(negate(hidden)).map(map)

function map(basename) {
var output = null
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/nodes/index.js
Expand Up @@ -5,7 +5,7 @@ module.exports = assertion
function assertion(t, zone, tree) {
var count = 0

t.test('nodes', function(st) {
t.test('nodes', function (st) {
st.plan(6)

zone(tree, 'foo', handle)
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/range-children/index.js
Expand Up @@ -5,7 +5,7 @@ module.exports = assertion
function assertion(t, zone, tree) {
var count = 0

t.test('range-children', function(st) {
t.test('range-children', function (st) {
st.plan(3)

zone(tree, 'foo', handle)
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/simple/index.js
Expand Up @@ -3,7 +3,7 @@
module.exports = assertion

function assertion(t, zone, tree) {
t.test('range', function(st) {
t.test('range', function (st) {
st.plan(5)

zone(tree, 'foo', handle)
Expand Down
6 changes: 2 additions & 4 deletions test/index.js
Expand Up @@ -5,15 +5,13 @@ var remark = require('remark')
var fixtures = require('./fixtures')
var zone = require('..')

test('mdast-zone', function(t) {
test('mdast-zone', function (t) {
fixtures.forEach(each)

t.end()

function each(fixture) {
remark()
.use(plugin)
.process(fixture.input, done)
remark().use(plugin).process(fixture.input, done)

function done(err, file) {
t.ifError(err, 'should not fail (' + fixture.name + ')')
Expand Down

0 comments on commit ee823f6

Please sign in to comment.