Closed yazeedb closed 5 years ago
Add the contents of .prettierrc
to package.json
under the key prettier
and run npx prettier
then I could merge this 👍
@lukejacksonn Done 👍
Do we need .prettierrc
anymore?
Great! No we do not need .prettierrc
anymore.. it being in the package.json is good enough. Also.. I don't usually add prettier as a dev dependency 🤔as I have it incorporated into my code editor, do you think this is the case for most people?
Good point. Only benefit I see is running Prettier from node_modules
instead of requiring global installation. But that's only needed for fixing the codebase style, which this PR already does? 😜
I'll remove the devDep. We can always add it back if needed.
This looks good to me! Someone on the Chatkit team will have to merge it if they are happy 👍 cc @hamchapman @callum-oakley @vivangkumar
Awesome - thanks @yazeedb and @lukejacksonn 👍
If there's any interest, integrating Prettier into this project was surprisingly easy.
Benefit (IMO):
Implementation: I added a
.prettierrc
with the minimal config to mesh with the existing code style.Also ran
to "fix" everything in
/src
, only 3 files were affected.