-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.prettierrc.yml
42 lines (42 loc) · 1.22 KB
/
.prettierrc.yml
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
41
42
printWidth: 120
tabWidth: 4
useTabs: false
overrides:
- files: "**/lwc/**/*.html"
options:
parser: lwc
- files: "**/lwc/**/*.js"
options:
trailingComma: "es5"
- files: "*.{cmp,page,component,xml}"
options:
parser: "html"
- files: "unpackaged/**/*.{cmp,page,component}"
options:
parser: "html"
- files: "unpackaged/**/*.{xml,object,duplicateRule,app,permissionset,profile,standardValueSet,settings,report,reportType,layout,topicsForObjects,workflow}"
options:
parser: "html"
printWidth: 300
- files: "**/aura/**/*.js"
options:
trailingComma: "none"
- files: "**/classes/**/*.cls"
options:
plugins:
- "./node_modules/prettier-plugin-apex"
parser: apex
apexInsertFinalNewline: true
- files: "**/triggers/*.cls"
options:
plugins:
- "./node_modules/prettier-plugin-apex"
parser: apex
apexInsertFinalNewline: true
- files: "*.apex"
options:
plugins:
- "./node_modules/prettier-plugin-apex"
parser: apex
apexAnonymous: true
apexInsertFinalNewline: true