Skip to content

Commit

Permalink
Breaking: change relative paths with --config (refs eslint/rfcs#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
mysticatea committed Feb 8, 2020
1 parent aea1729 commit 9c342b7
Show file tree
Hide file tree
Showing 6 changed files with 461 additions and 344 deletions.
4 changes: 3 additions & 1 deletion lib/cli-engine/cascading-config-array-factory.js
Expand Up @@ -140,6 +140,7 @@ function createBaseConfigArray({
function createCLIConfigArray({
cliConfigData,
configArrayFactory,
cwd,
ignorePath,
specificConfigPath
}) {
Expand All @@ -158,7 +159,7 @@ function createCLIConfigArray({
cliConfigArray.unshift(
...configArrayFactory.loadFile(
specificConfigPath,
{ name: "--config" }
{ name: "--config", basePath: cwd }
)
);
}
Expand Down Expand Up @@ -220,6 +221,7 @@ class CascadingConfigArrayFactory {
cliConfigArray: createCLIConfigArray({
cliConfigData,
configArrayFactory,
cwd,
ignorePath,
specificConfigPath
}),
Expand Down

0 comments on commit 9c342b7

Please sign in to comment.