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

Ignore CODEOWNERS file #3457

Closed
coliff opened this issue Jul 8, 2024 · 1 comment
Closed

Ignore CODEOWNERS file #3457

coliff opened this issue Jul 8, 2024 · 1 comment

Comments

@coliff
Copy link
Contributor

coliff commented Jul 8, 2024

Is your feature request related to a problem? Please describe.
I have a CODEOWNERS file in my projects. The first line I have is a comment formatted like this:

# About CODEOWNERS - <https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners>

The second is a catch-all formatted as this:

* @username

As such, VS Code auto-detects the sort of file the CODEOWNERS file is and assumes it's markdown... so Prettier autoformats and changes the * @username to - @username (as it thinks its a list) - this causes the CODEOWNERS file to not work as expected.

Describe the solution you'd like

Ideally it'd be good if CODEOWNERS could be added to a global ignore somehow.

Describe alternatives you've considered

I know we can add CODEOWNERS to our own .prettierignore files for now, but a global fix would be welcome!

@ntotten
Copy link
Member

ntotten commented Aug 14, 2024

Using prettierignore is the correct way of doing this. THe extension is not opinionated about this type of thing.

@ntotten ntotten closed this as completed Aug 14, 2024
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

No branches or pull requests

2 participants