Skip to content

Commit

Permalink
Fix lint errros
Browse files Browse the repository at this point in the history
  • Loading branch information
teodragovic committed Jan 28, 2020
1 parent b0eaf16 commit 63df2c6
Show file tree
Hide file tree
Showing 2 changed files with 2,296 additions and 8 deletions.
15 changes: 7 additions & 8 deletions lib/writer.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
'use strict';

var pkg = require('../package.json');
var Bluebird = require('bluebird');
var { cosmiconfigSync } = require('cosmiconfig');
var pkg = require('../package.json');
var Bluebird = require('bluebird');
var cosmiconfigSync = require('cosmiconfig').cosmiconfigSync;

var { config } = cosmiconfigSync(pkg.name).search();
var config = cosmiconfigSync(pkg.name).search() || {};

var DEFAULT_TYPE = 'other';
var PR_REGEX = new RegExp(/#[1-9][\d]*/g);
var TYPES = {
var TYPES = Object.assign({
breaking: 'Breaking Changes',
build: 'Build System / Dependencies',
ci: 'Continuous Integration',
Expand All @@ -21,9 +21,8 @@ var TYPES = {
refactor: 'Refactors',
revert: 'Reverts',
style: 'Code Style Changes',
test: 'Tests',
...config.types
};
test: 'Tests'
}, config.types);

/**
* Generate the commit URL for the repository provider.
Expand Down
Loading

0 comments on commit 63df2c6

Please sign in to comment.