Skip to content

Commit 2feb802

Browse files
committed
feat(load): update cosmiconfig #599
1 parent 337aa36 commit 2feb802

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

@commitlint/load/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
"@commitlint/execute-rule": "^7.5.0",
7474
"@commitlint/resolve-extends": "^7.5.0",
7575
"babel-runtime": "^6.23.0",
76-
"cosmiconfig": "^4.0.0",
76+
"cosmiconfig": "^5.2.0",
7777
"lodash": "4.17.11",
7878
"resolve-from": "^4.0.0"
7979
}

@commitlint/load/src/index.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,7 @@ export default async (seed = {}, options = {cwd: process.cwd()}) => {
8787

8888
async function loadConfig(cwd, configPath) {
8989
const explorer = cosmiconfig('commitlint', {
90-
rcExtensions: true,
91-
configPath: configPath ? path.resolve(cwd, configPath) : null
90+
searchPlaces: configPath ? [path.resolve(cwd, configPath)] : []
9291
});
9392

9493
const local = await explorer.load(cwd);

0 commit comments

Comments
 (0)