Skip to content

Commit 35fd77d

Browse files
greenkeeper[bot]pvdlg
authored andcommitted
chore(package): update xo to version 0.21.0
1 parent 35efcf5 commit 35fd77d

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

index.js

+5-3
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,14 @@ const DEFAULT_RELEASE_RULES = require('./lib/default-release-rules');
1111
* Determine the type of release to create based on a list of commits.
1212
*
1313
* @param {Object} [pluginConfig={}] semantic-release configuration
14-
* @param {string} pluginConfig.preset conventional-changelog preset ('angular', 'atom', 'codemirror', 'ember', 'eslint', 'express', 'jquery', 'jscs', 'jshint')
15-
* @param {string} pluginConfig.config requierable npm package with a custom conventional-changelog preset
16-
* @param {string|Array} pluginConfig.releaseRules a string to load an external module or an `Array` of rules.
14+
* @param {String} pluginConfig.preset conventional-changelog preset ('angular', 'atom', 'codemirror', 'ember', 'eslint', 'express', 'jquery', 'jscs', 'jshint')
15+
* @param {String} pluginConfig.config requierable npm package with a custom conventional-changelog preset
16+
* @param {String|Array} pluginConfig.releaseRules a string to load an external module or an `Array` of rules.
1717
* @param {Object} pluginConfig.parserOpts additional `conventional-changelog-parser` options that will overwrite ones loaded by `preset` or `config`.
1818
* @param {Object} options semantic-release options
1919
* @param {Array} options.commits array of commits
20+
*
21+
* @returns {String|null} the type of release to create based on the list of commits or `null` if no release has to be done.
2022
*/
2123
async function commitAnalyzer(pluginConfig, {commits, logger}) {
2224
const releaseRules = loadReleaseRules(pluginConfig);

package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"rimraf": "^2.6.1",
3737
"semantic-release": "^15.0.0",
3838
"sinon": "^5.0.0",
39-
"xo": "^0.20.0"
39+
"xo": "^0.21.0"
4040
},
4141
"engines": {
4242
"node": ">=8.3"
@@ -71,7 +71,8 @@
7171
"all": true
7272
},
7373
"prettier": {
74-
"printWidth": 120
74+
"printWidth": 120,
75+
"trailingComma": "es5"
7576
},
7677
"publishConfig": {
7778
"access": "public",

test/load-parser-config.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import test from 'ava';
2-
import loadParserConfig from './../lib/load-parser-config';
2+
import loadParserConfig from '../lib/load-parser-config';
33

44
/**
55
* AVA macro to verify that `loadParserConfig` return a parserOpts object.

test/load-release-rules.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import test from 'ava';
2-
import loadReleaseRules from './../lib/load-release-rules';
2+
import loadReleaseRules from '../lib/load-release-rules';
33
import testReleaseRules from './fixtures/release-rules';
44

55
test('Accept a "releaseRules" option', t => {

0 commit comments

Comments
 (0)