Skip to content

Commit

Permalink
refactor: use native String.startsWith instead of lodash/startsWith (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
armano2 committed Feb 7, 2020
1 parent 517b8b2 commit 9c5ec16
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions @commitlint/load/src/utils/load-parser-opts.ts
@@ -1,5 +1,3 @@
import startsWith from 'lodash/startsWith';

export async function loadParserOpts(
parserName: string,
pendingParser: Promise<any>
Expand All @@ -20,7 +18,7 @@ export async function loadParserOpts(
if (
typeof parser === 'object' &&
typeof parser.parserOpts === 'function' &&
startsWith(parserName, 'conventional-changelog-')
parserName.startsWith('conventional-changelog-')
) {
return await new Promise(resolve => {
const result = parser.parserOpts((_: never, opts: {parserOpts: any}) => {
Expand Down

0 comments on commit 9c5ec16

Please sign in to comment.