Skip to content

Commit

Permalink
added prettier settings
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitasare7 committed Aug 17, 2024
1 parent 52a95ad commit 01b7d4a
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
15 changes: 15 additions & 0 deletions VSCode/PrettierApex/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"trailingComma": "none",
"printWidth": 150,
"plugins": ["prettier-plugin-apex"],
"overrides": [
{
"files": "**/lwc/**/*.html",
"options": { "parser": "lwc" }
},
{
"files": "*.{cmp,page,component}",
"options": { "parser": "html" }
}
]
}
12 changes: 12 additions & 0 deletions VSCode/PrettierApex/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"search.exclude": {
"**/node_modules": true,
"**/bower_components": true,
"**/.sfdx": true
},
"editor.defaultFormatter": "esbenp.prettier-vscode",
"[apex]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"notebook.defaultFormatter": "esbenp.prettier-vscode"
}

0 comments on commit 01b7d4a

Please sign in to comment.