Skip to content

Commit

Permalink
Fix: Use cwd option for ESLint's CLIEngine
Browse files Browse the repository at this point in the history
  • Loading branch information
lewisl9029 authored and zimme committed Nov 17, 2019
1 parent c87b69b commit 6d4fb22
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,10 @@ function getESLintConfig(filePath, eslintPath) {
`eslint config for "${filePath}" received`,
prettyFormat(config)
);
return config;
return {
...eslintOptions,
...config
};
} catch (error) {
// is this noisy? Try setting options.disableLog to false
logger.debug('Unable to find config');
Expand Down

0 comments on commit 6d4fb22

Please sign in to comment.