Skip to content

Commit 9c5ec16

Browse files
authored
refactor: use native String.startsWith instead of lodash/startsWith (#975)
1 parent 517b8b2 commit 9c5ec16

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

@commitlint/load/src/utils/load-parser-opts.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import startsWith from 'lodash/startsWith';
2-
31
export async function loadParserOpts(
42
parserName: string,
53
pendingParser: Promise<any>
@@ -20,7 +18,7 @@ export async function loadParserOpts(
2018
if (
2119
typeof parser === 'object' &&
2220
typeof parser.parserOpts === 'function' &&
23-
startsWith(parserName, 'conventional-changelog-')
21+
parserName.startsWith('conventional-changelog-')
2422
) {
2523
return await new Promise(resolve => {
2624
const result = parser.parserOpts((_: never, opts: {parserOpts: any}) => {

0 commit comments

Comments
 (0)