Skip to content

Commit b18f16f

Browse files
committed
chore: properly apply Prettier formatting to PHP files in VS Code
1 parent ddeffa1 commit b18f16f

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

.prettierrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,6 @@ overrides:
3535
- files: 'tests/**/*.php'
3636
options:
3737
printWidth: 80
38+
39+
plugins:
40+
- '@prettier/plugin-php'

.vscode/settings.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,8 @@
77
"titleBar.inactiveBackground": "#f5be1b99",
88
"titleBar.inactiveForeground": "#15202b99"
99
},
10-
"peacock.color": "#F5BE1B"
10+
"peacock.color": "#F5BE1B",
11+
"prettier.documentSelectors": [
12+
"**/*.{js,jsx,ts,tsx,vue,html,css,scss,less,json,md,mdx,graphql,yaml,yml,php}"
13+
]
1114
}

0 commit comments

Comments
 (0)