Expand Prettier config list (#33744)

Improves the prettier config file detection by adding missing entries
that are allowed per the docs: https://prettier.io/docs/configuration

Release Notes:

- Improved Prettier config file detection
This commit is contained in:
Ian Mitchell 2025-07-02 01:44:14 -07:00 committed by GitHub
parent 79f3cb1225
commit 123a25c58c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -54,9 +54,17 @@ impl Prettier {
".prettierrc.toml",
".prettierrc.js",
".prettierrc.cjs",
".prettierrc.mjs",
".prettierrc.ts",
".prettierrc.cts",
".prettierrc.mts",
"package.json",
"prettier.config.js",
"prettier.config.cjs",
"prettier.config.mjs",
"prettier.config.ts",
"prettier.config.cts",
"prettier.config.mts",
".editorconfig",
".prettierignore",
];