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

build: switched to .prettierrcjson with default config from documenta… #2939

Merged
merged 1 commit into from
Aug 9, 2023

Conversation

sophiabrandt
Copy link
Member

…tion

It seems like using the .prettierrc file doesn't work reliably, as I've seen a pull request that changed files but didn't trigger the lint-staged script (with prettier). When I manually run the prettier script, it also does not consider the semi:false.

Using .prettierrc.json seems to work, and it also has the advantage of being a .json file, so it can be formatted and displayed nicely.

…tion

It seems like using the `.prettierrc` file doesn't work reliably, as I've seen a pull request that changed files but didn't trigger
the lint-staged script (with prettier). When I manually run the prettier script, it also does not consider the `semi:false`.

Using `.prettierrc.json` seems to work, and it also has the advantage of being a `.json` file, so it can be formatted and displayed nicely.
@zero-to-mastery-bot
Copy link

🙏 Thanks for your pull request @sophiabrandt, The team will now review and merge this request. In the mean time why not check out some of the other opensource projects available, contributions are greatly appreciated!

Some of the most popular are


PR Statistics

#️⃣ PR Number: Line Additions: 🗑️ Line Deletions:
2939 3143 3112
📑 Files Changed: Repo Stars: 🔱 Total Forks:
29 960 2649

@sophiabrandt
Copy link
Member Author

I copied the configuration from the prettier documentation.

@sophiabrandt sophiabrandt merged commit 47a8087 into zero-to-mastery:master Aug 9, 2023
3 checks passed
@sophiabrandt sophiabrandt deleted the prettier_rc_json branch August 9, 2023 15:42
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.

1 participant