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 prettier and reformat code #93

Merged
merged 1 commit into from
Apr 29, 2020
Merged

Add prettier and reformat code #93

merged 1 commit into from
Apr 29, 2020

Conversation

pspi
Copy link
Contributor

@pspi pspi commented Apr 29, 2020

Add prettier with config identical to main node-postgres module. Reformat all code. This change follows guidelines set here brianc/node-postgres#2172

The eslint config mentioned in the linked issue is targeted for TypeScript and doesn't add anything for non-TS projects. So let's go with prettier only for now and think of adding eslint when migrating to TypeScript in the future.

@pspi
Copy link
Contributor Author

pspi commented Apr 29, 2020

Ideally this project would have a mechanism for enforcing the prettier configuration and fail any commits that deviate from it. This could be automated either with git hooks or with a step in the CI pipeline. Do you have any thoughts on this?

@jeromew jeromew merged commit 07d8813 into brianc:master Apr 29, 2020
@jeromew
Copy link
Collaborator

jeromew commented Apr 29, 2020

We could maybe add prettier as a blocking step in the minor,patch,major Makefile targets

@pspi pspi deleted the add-prettier branch April 30, 2020 07:43
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.

2 participants