There isn’t a way to do this because the config for any one JavaScript file
can be merged from multiple locations. There isn’t just one file location
to merge from.
On Thu, Oct 18, 2018 at 6:24 AM Игорь Новожилов <[email protected]>
wrote:

> How find config file for CLIEngine without loading config?
> I use:
>
>> const { CLIEngine } = require('eslint');
>> const { parser, parserOptions } = new CLIEngine().getConfigForFile();
>
>
> How can I get the path to the relevant configuration file without loading
> it?
> I want to read the parameters I'm interested in from it myself without
> trying to resolve all the rules from dependencies and download third-party
> plugins.
> In doing so, I would like to use the search algorithm from CLIEngine.
>
> UPD:
> I can modify and send PULL to highlight the search method from
> getLocalConfigHierarchy
>
> https://github.com/eslint/eslint/blob/5984820670c3085becc98b75827fc4899001e605/lib/config.js#L201
>
> --
> You received this message because you are subscribed to the Google Groups
> "ESLint" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"ESLint" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to