Skip to content

Commit

Permalink
fix(LoadConfig): fixed issue with loading config files
Browse files Browse the repository at this point in the history
also added useEslintrc to config for using package.main entry. This
should have been set to false originally.
  • Loading branch information
jnmorse committed Jun 29, 2019
1 parent fc72ace commit 46289f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/load-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ class LoadConfig {
let cli = null;

if (configFile) {
cwd = path.dirname(configFile);
cli = new CLIEngine({
useEslintrc: false,
configFile,
cwd
});
} else {
cli = new CLIEngine({
useEslintrc: false,
configFile: pack.main,
cwd
});
Expand Down

0 comments on commit 46289f0

Please sign in to comment.