Skip to content
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

Add formatting to eslint #455

Merged
merged 3 commits into from Jul 14, 2020
Merged

Add formatting to eslint #455

merged 3 commits into from Jul 14, 2020

Conversation

caass
Copy link
Contributor

@caass caass commented Jun 29, 2020

Use prettier and eslint-plugin-prettier to enforce consistent formatting across the project.

yarn lint:js --fix will automatically fix formatting errors wherever possible. Usually, it's also possible to configure your text editor to automatically fix on save a la prettier-vscode.

I configured .prettierrc with some of the defaults i like, but you're more than welcome to change them if you don't like them. The full configuration options are here.

There are a shit ton of files changed but I swear I only ran prettier. The first commit is just me configuring the formatter if you're looking for what I actually did.

Cassandra Cool added 2 commits June 28, 2020 23:15
Integrated prettier with eslint to enforce commit code styling.
Listen I know a ton of files changed but i swear it's literally all formatting.
Tests still passed so hopefully it's fine 😅
@mcfiredrill
Copy link
Member

mcfiredrill commented Jul 2, 2020

This looks good, I'll have to setup my editor to run prettier as well. 👍

Looks like most of the changes are just changing to singlequotes.

@caass
Copy link
Contributor Author

caass commented Jul 3, 2020

yeah, it's probably worth looking through all the options and figuring out what you'd like to use for the project -- i personally like trailing commas and single quotes, but otherwise don't have too many opinions

@caass caass closed this Jul 11, 2020
@caass caass deleted the prettier branch July 11, 2020 23:21
@mcfiredrill
Copy link
Member

Something wrong here? I was planning on reviewing this eventually, sorry just haven't got around to it yet. 😅

@caass caass restored the prettier branch July 12, 2020 20:54
@caass caass reopened this Jul 12, 2020
@caass
Copy link
Contributor Author

caass commented Jul 12, 2020

Nothing wrong lol I just was trying to get my fork's master to match the upstream master and in a fit of git-induced rage i deleted every branch 🙃

@mcfiredrill
Copy link
Member

Here's a link for anyone else using vim and coc:
https://github.com/neoclide/coc-prettier#usage

@mcfiredrill mcfiredrill merged commit 1a1ac35 into datafruits:master Jul 14, 2020
@caass caass deleted the prettier branch August 19, 2020 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants