-
-
Notifications
You must be signed in to change notification settings - Fork 175
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
not respecting es6 prefer-* rules like prefer-arrow-callback. #149
Comments
BTW, this is my poor man's prettier-eslint implementation - I'm using your's require('../../node_modules/prettier-eslint/dist/utils.js').getOptionsForFormatting for inferring eslint prettier rules from eslint's config which does excellent job.
|
I'm just wondering if this is related to the following issue. |
https://prettier.io/docs/en/eslint.html - says:
It is not a prettier-eslint dependency but if I do npm install I see the module installed in node_modules so I guess is an indirect dependency. Probably is this... Doing npm ls :
don't know what this "eslint-config-kentcdodds": "^13.0.1", does I will try to remove it from my local prettier-eslint and see if this issue is still reproducible. |
Well, I don't think that what they are talking about is a problem with the plugin package but about that prettier and eslint have conflicting fixes for prefer-arrow-callbacks and that's the problem they want to solve by disabling the eslint rule in the plugin/config package. I'll look into this a bit later. |
Try with latest P.S. I do believe this might be related to prettier/eslint-plugin-prettier#65 |
I'm reporting this issue in the form of a very simple node.js project that demonstrate it. basically prettier-eslint is not respecting "prefer-arrow-callback": "error" and more - it seems it it removing or preventing eslint to do it. In the project I'm calling prettier and eslint --fix separately and that works OK but with prettier-eslint it doesn't . It also happens with other es6 "prefer" fixable rules like functions to methods, etc
https://github.com/cancerberoSgx/prettier-eslint-gallery/tree/master/misc/prettier-eslint-issue
Basically all popular styleguides are broken in prettier-eslint if in my case you must force arrow functions for callbacks, methods, etc
I'm using a very simple api call:
prettier-eslint logs don't show any error or mistake.
The text was updated successfully, but these errors were encountered: