-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.prettierrc.js
More file actions
40 lines (37 loc) · 1003 Bytes
/
.prettierrc.js
File metadata and controls
40 lines (37 loc) · 1003 Bytes
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
33
34
35
36
37
38
39
40
module.exports = {
// Standard Prettier options
printWidth: 80,
tabWidth: 2,
useTabs: false,
semi: true,
singleQuote: true,
trailingComma: "es5",
bracketSpacing: true,
bracketSameLine: false,
arrowParens: "always",
// Plugin-specific options for Terraform can be added if needed,
// but the default behavior of using `terraform fmt` is usually sufficient.
// This section is important for making sure the plugin is recognized
plugins: [require("prettier-plugin-terraform-formatter"), require("prettier-plugin-sh")],
// Override for Terraform files to ensure the plugin is used
overrides: [
{
files: "*.tf",
options: {
// The parser is automatically inferred by the plugin
},
},
{
files: "*.tfvars",
options: {
// The parser is automatically inferred by the plugin
},
},
{
files: "*.sh",
options: {
// The parser is automatically inferred by the plugin
},
},
],
};