Skip to content

Commit b1057d4

Browse files
greenkeeper[bot]pvdlg
authored andcommitted
chore(package): update xo to version 0.21.0
1 parent 5ed087b commit b1057d4

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"semantic-release": "^15.0.0",
4040
"sinon": "^5.0.0",
4141
"tempy": "^0.2.1",
42-
"xo": "^0.20.0"
42+
"xo": "^0.21.0"
4343
},
4444
"engines": {
4545
"node": ">=8.3"
@@ -77,7 +77,8 @@
7777
"semantic-release": ">=15.0.0 <16.0.0"
7878
},
7979
"prettier": {
80-
"printWidth": 120
80+
"printWidth": 120,
81+
"trailingComma": "es5"
8182
},
8283
"publishConfig": {
8384
"access": "public",

test/helpers/git-utils.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import getStream from 'get-stream';
1111
* If `withRemote` is `false`, creates a regular repository and initialize it. Change the current working directory to the repository root.
1212
*
1313
* @param {Boolean} withRemote `true` to create a shallow clone of a bare repository.
14-
* @param {String} [branc='master'] The branch to initialize.
14+
* @param {String} [branch='master'] The branch to initialize.
1515
* @return {String} The path of the clone if `withRemote` is `true`, the path of the repository otherwise.
1616
*/
1717
export async function gitRepo(withRemote, branch = 'master') {
@@ -98,6 +98,7 @@ export async function gitTagVersion(tagName, sha) {
9898
* The shallow will contain a limited number of commit and no tags.
9999
*
100100
* @param {String} origin The path of the repository to clone.
101+
* @param {String} [branch='master'] The branch to clone.
101102
* @param {Number} [depth=1] The number of commit to clone.
102103
* @return {String} The path of the cloned repository.
103104
*/
@@ -113,6 +114,8 @@ export async function gitShallowClone(origin, branch = 'master', depth = 1) {
113114
* Get Git configuration.
114115
*
115116
* @param {String} name Config name.
117+
*
118+
* @returns {String} The config's value.
116119
*/
117120
export async function gitGetConfig(name) {
118121
return execa.stdout('git', ['config', '--get', name]);

0 commit comments

Comments
 (0)