-
Notifications
You must be signed in to change notification settings - Fork 322
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
Change Linter to CLIEngine to use plugins on ESLint #166
base: master
Are you sure you want to change the base?
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!