Change Linter to CLIEngine to use plugins on ESLint#166
Change Linter to CLIEngine to use plugins on ESLint#166americoneto1 wants to merge 3 commits intoes-analysis:masterfrom
Conversation
|
Anyone can check this PR? |
|
Thanks @americoneto1, can you add some tests for eslint in general? I don't use this functionality and don't know the use cases to test for (eg eslintrcs, plugins, etc). |
|
@americoneto1 we can't use another name for eslint config instead of |
|
Please, merge this pull request. This made eslint work. |
|
@ColCh As far as I know, when we use CLIEngine, the eslint file name must be .eslintrc. |
…ons. Fixes the test of strip comment utility.
|
Look at the recent pull request i made to your fork. There, you need to pass the config path, instead of an object. With a json file, it worked for me. |
ESLint config correction and test.
|
This pull request is still actuality. |
|
Is there another way to get ESLint plugins to work before this is fixed? |
|
@jmullo use forks |
### REASON solve several eslint issues (es-analysis#166, es-analysis#211)
Actually, Plato uses linter verify as you can see below:
https://github.com/es-analysis/plato/blob/master/lib/reporters/eslint/index.js#L39
But using linter on this way, eslint plugins doesn't work. ESLint team recommends use CLIEngine instead of Linter Verify (eslint/eslint#4119 (comment)).
Could you please validate this PR and if it's OK procceds with merge on master branch?
Thank you!