forked from Hanabi-Live/hanabi-live
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprettier.config.mjs
32 lines (29 loc) · 913 Bytes
/
prettier.config.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// This is the configuration file for Prettier, the auto-formatter:
// https://prettier.io/docs/en/configuration.html
/** @type {import("prettier").Config} */
const config = {
plugins: [
"prettier-plugin-organize-imports", // Prettier does not format imports by default.
"prettier-plugin-packagejson", // Prettier does not format "package.json" by default.
// @template-customization-start
"prettier-plugin-go-template", // Prettier does not format Golang files by default.
// @template-customization-end
],
overrides: [
// Allow proper formatting of JSONC files:
// https://github.com/prettier/prettier/issues/5708
{
files: [
"**/*.jsonc",
"**/.vscode/*.json",
"**/tsconfig.json",
"**/tsconfig.*.json",
],
options: {
parser: "json5",
quoteProps: "preserve",
},
},
],
};
export default config;