AdguardTeam / AGLint

Universal adblock filter list linter
https://www.npmjs.com/package/@adguard/aglint
MIT License
51 stars 3 forks source link

Print configuration #158

Open scripthunter7 opened 1 year ago

scripthunter7 commented 1 year ago

I suggest implementing a command that resolves the linter configuration for a given path and prints it to the console in JSON / YAML format. For example:

aglint --print-config path/to/file.txt

or

aglint --print-config path/to/folder

or for the actual folder:

aglint --print-config .

This can be a useful tool for various debugging purposes.

Optionally, we can also list the chain of configuration files from which the configuration was compiled by merging.

scripthunter7 commented 1 year ago

Related: https://github.com/AdguardTeam/VscodeAdblockSyntax/issues/74