Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Share CLIEngine per worker #61

Merged
merged 1 commit into from
Jul 6, 2017
Merged

Share CLIEngine per worker #61

merged 1 commit into from
Jul 6, 2017

Conversation

arthuralee
Copy link
Contributor

Fixes #10. Should give a significant speed improvement for large codebases.

@@ -1,21 +1,16 @@
import { CLIEngine } from 'eslint';

const lintFile = (config, fileArg) => {
const eslint = new CLIEngine({ cwd: process.cwd() });
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you need to instantiate the cwd as process.cwd()?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm, technically no - since the code in CLIEngine already does this

@arthuralee arthuralee merged commit 122f385 into master Jul 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants