Skip to content

Commit

Permalink
Add .mjs files to list of Prettier config files (#3351)
Browse files Browse the repository at this point in the history
  • Loading branch information
m99coder authored Mar 31, 2024
1 parent f595440 commit 1a743b7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ All notable changes to the "prettier-vscode" extension will be documented in thi

## [Unreleased]

## [10.5.0]

- Extend list of Prettier config files by ECMAScript module extentions

## [10.4.0]

- Fixed config resolution that caused plugins to be ignored when using Prettier 3.1.1 or later. (#3252)
Expand Down
2 changes: 2 additions & 0 deletions src/PrettierEditService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,11 @@ const PRETTIER_CONFIG_FILES = [
".prettierrc.toml",
".prettierrc.js",
".prettierrc.cjs",
".prettierrc.mjs",
"package.json",
"prettier.config.js",
"prettier.config.cjs",
"prettier.config.mjs",
".editorconfig",
];

Expand Down

0 comments on commit 1a743b7

Please sign in to comment.