Skip to content

Commit

Permalink
chore(package): update xo to version 0.25.0
Browse files Browse the repository at this point in the history
  • Loading branch information
greenkeeper[bot] authored and pvdlg committed Sep 26, 2019
1 parent c86045c commit 5986bf9
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 8 deletions.
2 changes: 2 additions & 0 deletions index.js
@@ -1,3 +1,5 @@
/* eslint require-atomic-updates: off */

const {template, pick} = require('lodash');
const marked = require('marked');
const TerminalRenderer = require('marked-terminal');
Expand Down
2 changes: 2 additions & 0 deletions lib/definitions/plugins.js
@@ -1,3 +1,5 @@
/* eslint require-atomic-updates: off */

const {isString, isPlainObject} = require('lodash');
const {getGitHead} = require('../git');
const hideSensitive = require('../hide-sensitive');
Expand Down
2 changes: 1 addition & 1 deletion lib/get-git-auth-url.js
Expand Up @@ -41,7 +41,7 @@ module.exports = async ({cwd, env, options: {repositoryUrl, branch}}) => {
// Test if push is allowed without transforming the URL (e.g. is ssh keys are set up)
try {
await verifyAuth(repositoryUrl, branch, {cwd, env});
} catch (error) {
} catch (_) {
const envVar = Object.keys(GIT_TOKENS).find(envVar => !isNil(env[envVar]));
const gitCredentials = `${GIT_TOKENS[envVar] || ''}${env[envVar] || ''}`;

Expand Down
2 changes: 1 addition & 1 deletion lib/git.js
Expand Up @@ -63,7 +63,7 @@ async function isRefInHistory(ref, execaOpts) {
async function fetch(repositoryUrl, execaOpts) {
try {
await execa('git', ['fetch', '--unshallow', '--tags', repositoryUrl], execaOpts);
} catch (error) {
} catch (_) {
await execa('git', ['fetch', '--tags', repositoryUrl], execaOpts);
}
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -67,7 +67,7 @@
"sinon": "^7.2.7",
"stream-buffers": "^3.0.2",
"tempy": "^0.3.0",
"xo": "^0.24.0"
"xo": "^0.25.0"
},
"engines": {
"node": ">=8.3"
Expand Down
6 changes: 3 additions & 3 deletions test/helpers/git-utils.js
Expand Up @@ -100,10 +100,10 @@ export async function gitGetCommits(from, execaOpts) {
* Checkout a branch on the current git repository.
*
* @param {String} branch Branch name.
* @param {Boolean} create `true` to create the branch, `false` to checkout an existing branch.
* @param {Boolean} create to create the branch, `false` to checkout an existing branch.
* @param {Object} [execaOpts] Options to pass to `execa`.
*/
export async function gitCheckout(branch, create = true, execaOpts) {
export async function gitCheckout(branch, create, execaOpts) {
await execa('git', create ? ['checkout', '-b', branch] : ['checkout', branch], execaOpts);
}

Expand Down Expand Up @@ -224,6 +224,6 @@ export async function gitCommitTag(gitHead, execaOpts) {
*
* @throws {Error} if the push failed.
*/
export async function gitPush(repositoryUrl = 'origin', branch = 'master', execaOpts) {
export async function gitPush(repositoryUrl, branch, execaOpts) {
await execa('git', ['push', '--tags', repositoryUrl, `HEAD:${branch}`], execaOpts);
}
2 changes: 1 addition & 1 deletion test/helpers/mockserver.js
Expand Up @@ -30,7 +30,7 @@ async function start() {
minTimeout: 1000,
factor: 2,
});
} catch (error) {
} catch (_) {
throw new Error(`Couldn't start mock-server after 2 min`);
}
}
Expand Down
2 changes: 1 addition & 1 deletion test/helpers/npm-registry.js
Expand Up @@ -39,7 +39,7 @@ async function start() {
minTimeout: 1000,
factor: 2,
});
} catch (error) {
} catch (_) {
throw new Error(`Couldn't start npm-registry-docker after 2 min`);
}

Expand Down

0 comments on commit 5986bf9

Please sign in to comment.