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

refact: unified prettier config across repository #2250

Merged
merged 7 commits into from
Jul 18, 2024

Conversation

alduzy
Copy link
Member

@alduzy alduzy commented Jul 17, 2024

Description

This PR intents to unify prettier config across example apps. Inititally I wanted to copy the configuration but It's more convenient to just use the one from the root (by not overriding it).

Changes

  • removed per project .prettierrc files
  • fixed eslint export syntax in Example
  • formatted affected files

Checklist

  • Ensured that CI passes

Copy link
Member

@kkafar kkafar left a comment

Choose a reason for hiding this comment

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

I like the changes.

I'm just leaving a link to prettier docs with description of config file resolution algorithm, so that it is clear why removing .prettierrc.js files from applications works.

One note, I personally like trailingComma: 'all' option, as it makes adding new parameter / call / element less awkward. Won't insist here.

@alduzy
Copy link
Member Author

alduzy commented Jul 18, 2024

@kkafar Here you go 😉

Copy link
Member

@kkafar kkafar left a comment

Choose a reason for hiding this comment

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

lgtm

@alduzy alduzy merged commit c70f23b into main Jul 18, 2024
9 checks passed
@alduzy alduzy deleted the @alduzy/prettier-config-across-apps branch July 18, 2024 10:07
ja1ns pushed a commit to WiseOwlTech/react-native-screens that referenced this pull request Oct 9, 2024
)

## Description

This PR intents to unify prettier config across example apps. Inititally
I wanted to copy the configuration but It's more convenient to just use
the one from the root (by not overriding it).

## Changes

- removed per project `.prettierrc` files
- fixed eslint export syntax in Example
- formatted affected files

<!--

## Screenshots / GIFs

Here you can add screenshots / GIFs documenting your change.

You can add before / after section if you're changing some behavior.

### Before

### After

-->

<!--
## Test code and steps to reproduce

Please include code that can be used to test this change and short
description how this example should work.
This snippet should be as minimal as possible and ready to be pasted
into editor (don't exclude exports or remove "not important" parts of
reproduction example)
-->

## Checklist

- [x] Ensured that CI passes
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