Skip to content

Commit 3e96b96

Browse files
Migrate prettier config to javascript (#3121)
Newer versions of prettier works badly with vscode prettier extension when using a json config file.
1 parent b0c2e80 commit 3e96b96

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

.prettierrc

Lines changed: 0 additions & 4 deletions
This file was deleted.

eslint.config.mts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ const disabledTypeCheckConfig: ConfigWithExtends = {
137137
"**/docusaurus.config.mts",
138138
"**/eslint.config.mts",
139139
"**/mdx-components.tsx",
140+
"prettier.config.cjs",
140141
"typings/**",
141142
"**/*.js",
142143
"**/*.mjs",

prettier.config.cjs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/* global module, require */
2+
3+
/** @type {import("prettier").Config} */
4+
module.exports = {
5+
trailingComma: "all",
6+
7+
plugins: [require.resolve("prettier-plugin-tailwindcss")],
8+
};

0 commit comments

Comments
 (0)