-
Notifications
You must be signed in to change notification settings - Fork 191
Expand file tree
/
Copy pathprettier.config.mjs
More file actions
32 lines (27 loc) · 1.07 KB
/
prettier.config.mjs
File metadata and controls
32 lines (27 loc) · 1.07 KB
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
// @ts-check
/** @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-sh", // Prettier does not format Bash files by default.
// @template-customization-end
],
overrides: [
// Allow proper formatting of JSONC files that have JSON file extensions.
{
files: ["**/.vscode/*.json", "**/tsconfig.json", "**/tsconfig.*.json"],
options: {
parser: "jsonc",
},
},
],
// We break from the default Prettier config for only a single option: operator position. There
// are no known arguments for placing operators at the end of the line, as outlined in this
// thread: https://github.com/prettier/prettier/issues/3806
experimentalOperatorPosition: "start",
};
export default config;