diff --git a/CHANGELOG.md b/CHANGELOG.md index a9663dc6b..205b1926e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to the "prettier-vscode" extension will be documented in thi +## [Unreleased] + +- Extend list of Prettier config files by ts extentions + ## [11.0.0] - [BREAKING CHANGE] Prevent `.editorconfig` from satisfying the `requireConfig` setting (#2708) - Thanks to [@redoPop](https://github.com/redoPop) diff --git a/src/PrettierEditService.ts b/src/PrettierEditService.ts index 4e0d437c7..a0599d761 100644 --- a/src/PrettierEditService.ts +++ b/src/PrettierEditService.ts @@ -46,10 +46,16 @@ const PRETTIER_CONFIG_FILES = [ ".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", ];