Skip to content

Commit

Permalink
Update dev-dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Feb 16, 2021
1 parent fb48369 commit 6935702
Show file tree
Hide file tree
Showing 5 changed files with 96 additions and 94 deletions.
5 changes: 3 additions & 2 deletions lib/check/check-files.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ function checkIfReferencedFilesExist(ctx, next) {
function checkIfExists(filePath) {
fs.access(filePath, fs.F_OK, onaccess)

function onaccess(err) {
var noEntry = err && (err.code === 'ENOENT' || err.code === 'ENOTDIR')
function onaccess(error) {
var noEntry =
error && (error.code === 'ENOENT' || error.code === 'ENOTDIR')

landmarks[filePath] = {'': !noEntry}

Expand Down
12 changes: 6 additions & 6 deletions lib/find/find-repo.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ function findRepo(ctx, next) {
next()
}

function onremote(err, stdout) {
function onremote(error, stdout) {
var remote

if (err) {
if (error) {
expected = Infinity
return next(err)
return next(error)
}

remote = stdout.match(/origin\t(.+?) \(fetch\)/)
Expand All @@ -58,12 +58,12 @@ function findRepo(ctx, next) {
}
}

function oncdup(err, stdout) {
function oncdup(error, stdout) {
var out

if (err) {
if (error) {
expected = Infinity
return next(err)
return next(error)
}

out = stdout.trim()
Expand Down
10 changes: 5 additions & 5 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ function validateLinks(options, fileSet) {
function transformer(tree, file, next) {
find.run(xtend(settings, {tree: tree, file: file, fileSet: fileSet}), done)

function done(err) {
if (err) {
next(err)
function done(error) {
if (error) {
next(error)
} else if (fileSet) {
next()
} else {
Expand All @@ -42,7 +42,7 @@ function cliCompleter(set, next) {

function checkAll(files, next) {
// Check all references and landmarks.
check.run({files: files}, function (err) {
next(err)
check.run({files: files}, function (error) {
next(error)
})
}
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"strip-ansi": "^6.0.0",
"tape": "^5.0.0",
"vfile-sort": "^2.0.0",
"xo": "^0.33.0"
"xo": "^0.37.0"
},
"scripts": {
"format": "remark . -qfo --ignore-pattern test/ && prettier . -w --loglevel warn && xo --fix",
Expand All @@ -86,8 +86,9 @@
"prettier": true,
"esnext": false,
"rules": {
"unicorn/no-array-callback-reference": "off",
"unicorn/prefer-number-properties": "off",
"unicorn/prefer-optional-catch-binding": "off",
"unicorn/no-fn-reference-in-iterator": "off",
"unicorn/prefer-includes": "off",
"guard-for-in": "off"
}
Expand Down
Loading

0 comments on commit 6935702

Please sign in to comment.