esprint icon indicating copy to clipboard operation
esprint copied to clipboard

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

Open ryan953 opened this issue 5 years ago • 0 comments

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

ryan953 avatar Aug 06 '19 16:08 ryan953