Skip to content

Conversation

@queengooborg
Copy link
Contributor

This PR inverts the direction of the .prettierignore file, so that it lists the files and folders to ignore (as the file name implies), rather than all the files and folders to only format.

Motivation

In another PR (my first), the first review comment had requested that the new script was added to the .prettierignore file as an opt-in. However, it is not standard to use a .ignore file for opting into formatting, so this was very confusing to me. Additionally, since I'm assuming the plan is to eventually format all files using Prettier, having the .prettierignore file use an opt-out (or using proper terminology, ignore) structure, it serves as a to-do list for what still needs to be formatted.

Copy link
Collaborator

@ddbeck ddbeck left a comment

Choose a reason for hiding this comment

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

Thank you, @queengooborg. This is a good fix. When we originally started using prettier it was only for the YAML files, so .prettierignore existed only to prevent editors from automatically formatting everything else. It makes sense now to flip it around.

One nit in a line comment, but otherwise ready to go.

@ddbeck ddbeck added the tools and infrastructure Project internal tooling, such as linters, GitHub Actions, or repo settings label Aug 28, 2024
Co-authored-by: Daniel D. Beck <daniel@ddbeck.com>
@queengooborg
Copy link
Contributor Author

Formatting of all the remaining files will soon follow as well!

@ddbeck ddbeck merged commit ee7ab89 into web-platform-dx:main Aug 28, 2024
@queengooborg queengooborg deleted the prettierignore branch August 28, 2024 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tools and infrastructure Project internal tooling, such as linters, GitHub Actions, or repo settings

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants