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 #3

Merged
merged 1 commit into from
Sep 10, 2022
Merged

add prettier #3

merged 1 commit into from
Sep 10, 2022

Conversation

with-heart
Copy link
Owner

This pull requests adds prettier and the prettier-plugin-organize-imports plugin.

semi: false,
singleQuote: true,
trailingComma: 'all',
plugins: [require.resolve('prettier-plugin-organize-imports')],
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Normally prettier plugins are automatically detected by prettier we're installed, but we're using pnpm as our package manager, so we need to manually require.resolve the import here.

See prettier/prettier#8056 for more information.

@with-heart with-heart merged commit 5de89ad into main Sep 10, 2022
@with-heart with-heart deleted the prettier branch September 10, 2022 05:02
@with-heart with-heart added the repo management Repo tooling label Sep 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
repo management Repo tooling
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant