-
Notifications
You must be signed in to change notification settings - Fork 6
Consider to add prettier #51
Comments
Another conflict with eslint vs prettier is the code style for arrow functions parameters. Prettier has only two options for curly braces:
EDIT: This issue was resolved after Dominik have suggested me to use prettier extension's option for eslint integration
|
I'd rather we keep full compatibility with projects that just use AirBnB's ESLint rules and don't use Prettier. As you said, in VSCode we may use I think it's a good idea to include Prettier in CRA by default, even just to ensure that everyone will have it configured correctly (the aforementioned @virzen, do you have any ideas? |
I think that the best use of prettier is in the editor. However, if we want to ship it with CRA, then probably a npm script would be ok? The main problem with git hooks is that Npm script is a nice middle ground IMO, though it doesn't enforce the formatting in any way. 😕 |
In my case Im using prettier extension for VScode that formats code automatically on file save so I do not need to spend extra time for that. I've just stumbled upon the conflict between prettier and CRA's eslint code style configuration. Would be nice to have an option that allows to add eslint-config-prettier that eliminates that kind of conflicts for projects that are using prettier.
The text was updated successfully, but these errors were encountered: