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

Accept cli args or config value and forward them into new CLIEngine #96

Open
ryan953 opened this issue Aug 6, 2019 · 0 comments
Open

Comments

@ryan953
Copy link

ryan953 commented Aug 6, 2019

The eslint CLIEngine class accepts all the same runtime configuration as the cli does if we were to run eslint directly on a set of files.

It would be great if esprint could also accept those same flags on the cli, or even as part of .esprintrc and forward them in to the engine. Then we could use options like --config, --fix or --rules-dir.

Constructor params: https://eslint.org/docs/developer-guide/nodejs-api#cliengine
Cli options: https://eslint.org/docs/user-guide/command-line-interface#options
Looks like we'd want to get the values into this constructor: https://github.com/pinterest/esprint/blob/master/src/LintWorker.js#L3

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

No branches or pull requests

1 participant