Skip to content

Commit c1d8970

Browse files
committed
run prettier
1 parent 884a527 commit c1d8970

File tree

113 files changed

+1387
-1413
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+1387
-1413
lines changed

.github/workflows/CI.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ jobs:
1616
ref: ${{ github.ref }}
1717
fetch-depth: 0
1818

19-
- name: "Setup node"
19+
- name: 'Setup node'
2020
uses: actions/setup-node@v4
2121
with:
22-
node-version: "lts/*"
22+
node-version: 'lts/*'
2323
#cache: "npm"
2424

2525
- name: Install Salesforce CLI + Scanner

.github/workflows/Package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818

1919
- uses: actions/setup-node@v4
2020
with:
21-
node-version: ">=20"
21+
node-version: 'lts/*'
2222

2323
- name: Install sf cli
2424
run: |

.prettierrc

Lines changed: 69 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,81 @@
11
{
2-
"plugins": ["prettier-plugin-apex"],
2+
"arrowParens": "avoid",
3+
"bracketSpacing": true,
4+
"bracketSameLine": true,
5+
"printWidth": 100,
6+
"semi": true,
7+
"singleQuote": true,
38
"trailingComma": "none",
9+
"endOfLine": "lf",
10+
"apexInsertFinalNewline": false,
411
"useTabs": true,
512
"overrides": [
613
{
714
"files": "**/lwc/**/*.html",
815
"options": { "parser": "lwc" }
916
},
17+
{
18+
"files": "*.{cls,trigger}",
19+
"options": { "parser": "apex", "tabWidth": 2, "useTabs": true }
20+
},
21+
{
22+
"files": "*.trigger",
23+
"options": { "printWidth": 200 }
24+
},
1025
{
1126
"files": "*.{cmp,page,component}",
12-
"options": { "parser": "html" }
27+
"options": {
28+
"parser": "html",
29+
"useTabs": true,
30+
"htmlWhitespaceSensitivity": "css"
31+
}
32+
},
33+
{
34+
"files": "*.{apex,soql}",
35+
"options": { "parser": "apex-anonymous" }
36+
},
37+
{
38+
"files": "*.{yml,yaml}",
39+
"options": { "parser": "yaml", "tabWidth": 2, "useTabs": false }
40+
},
41+
{
42+
"files": ".prettier*",
43+
"options": { "parser": "json", "printWidth": 80, "useTabs": true }
44+
},
45+
{
46+
"files": "*.xml",
47+
"options": {
48+
"parser": "xml",
49+
"useTabs": true,
50+
"singleQuote": false,
51+
"xmlSelfClosingSpace": true
52+
}
53+
},
54+
{
55+
"files": ["**/pmd/*.xml", "*ruleset*.xml", "config/**/*.xml"],
56+
"options": {
57+
"parser": "xml",
58+
"xmlSelfClosingSpace": true,
59+
"xmlWhitespaceSensitivity": "ignore"
60+
}
61+
},
62+
{
63+
"files": "*meta.xml",
64+
"options": {
65+
"parser": "xml",
66+
"useTabs": false,
67+
"xmlSelfClosingSpace": false
68+
}
69+
},
70+
{
71+
"files": "*.json",
72+
"options": {
73+
"parser": "json-stringify",
74+
"useTabs": false,
75+
"tabWidth": 2
76+
}
1377
}
14-
]
78+
],
79+
"plugins": ["prettier-plugin-apex", "@prettier/plugin-xml"],
80+
"$schema": "https://json.schemastore.org/prettierrc"
1581
}

config/project-scratch-def.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"orgName": "Demo company",
3-
"edition": "Developer",
4-
"features": []
2+
"orgName": "Demo company",
3+
"edition": "Developer",
4+
"features": []
55
}

docs/custom-objects/DML_Finalizer__mdt.md

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
# DML Finalizer
22

33
## API Name
4+
45
`DML_Finalizer__mdt`
56

67
## Fields
8+
79
### Apex Class Name
10+
811
**Required**
912

1013
Enter the name of the Apex Class which defines the action to be taken
@@ -15,9 +18,10 @@ Enter the name of the Apex Class which defines the action to be taken
1518

1619
**Type**
1720

18-
*Text*
21+
_Text_
1922

2023
---
24+
2125
### Bypass Execution
2226

2327
Set this to true to bypass this Trigger Action from being called
@@ -28,9 +32,10 @@ Set this to true to bypass this Trigger Action from being called
2832

2933
**Type**
3034

31-
*Checkbox*
35+
_Checkbox_
3236

3337
---
38+
3439
### Bypass Permission
3540

3641
Optional. Enter the API name of a permission. If this field has a value, then the triggers on this object will be bypassed if the running user has the custom permission identified.
@@ -41,10 +46,12 @@ Optional. Enter the API name of a permission. If this field has a value, then th
4146

4247
**Type**
4348

44-
*Text*
49+
_Text_
4550

4651
---
52+
4753
### Order
54+
4855
**Required**
4956

5057
**API Name**
@@ -53,17 +60,18 @@ Optional. Enter the API name of a permission. If this field has a value, then th
5360

5461
**Type**
5562

56-
*Number*
63+
_Number_
5764

5865
---
66+
5967
### Required Permission
6068

61-
Optional. Enter the API name of a permission. If this field has a value, then the triggers on this object will only execute if the running user has the custom permission identified.
69+
Optional. Enter the API name of a permission. If this field has a value, then the triggers on this object will only execute if the running user has the custom permission identified.
6270

6371
**API Name**
6472

6573
`Required_Permission__c`
6674

6775
**Type**
6876

69-
*Text*
77+
_Text_

docs/custom-objects/Trigger_Action__mdt.md

Lines changed: 36 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
# Trigger Action
22

33
## API Name
4+
45
`Trigger_Action__mdt`
56

67
## Fields
8+
79
### After Delete
810

911
Enter the name of the sObject you want to have this action execute on during the after delete context
@@ -14,9 +16,10 @@ Enter the name of the sObject you want to have this action execute on during the
1416

1517
**Type**
1618

17-
*MetadataRelationship*
19+
_MetadataRelationship_
1820

1921
---
22+
2023
### After Insert
2124

2225
Enter the name of the sObject you want to have this action execute on during the after insert context
@@ -27,9 +30,10 @@ Enter the name of the sObject you want to have this action execute on during the
2730

2831
**Type**
2932

30-
*MetadataRelationship*
33+
_MetadataRelationship_
3134

3235
---
36+
3337
### After Undelete
3438

3539
Enter the name of the sObject you want to have this action execute on during the after undelete context
@@ -40,9 +44,10 @@ Enter the name of the sObject you want to have this action execute on during the
4044

4145
**Type**
4246

43-
*MetadataRelationship*
47+
_MetadataRelationship_
4448

4549
---
50+
4651
### After Update
4752

4853
Enter the name of the sObject you want to have this action execute on during the after update context
@@ -53,9 +58,10 @@ Enter the name of the sObject you want to have this action execute on during the
5358

5459
**Type**
5560

56-
*MetadataRelationship*
61+
_MetadataRelationship_
5762

5863
---
64+
5965
### Allow Flow Recursion?
6066

6167
Check this box to allow the flow to execute recursively
@@ -66,10 +72,12 @@ Check this box to allow the flow to execute recursively
6672

6773
**Type**
6874

69-
*Checkbox*
75+
_Checkbox_
7076

7177
---
78+
7279
### Apex Class Name
80+
7381
**Required**
7482

7583
Enter the name of the Apex Class which defines the action to be taken
@@ -80,9 +88,10 @@ Enter the name of the Apex Class which defines the action to be taken
8088

8189
**Type**
8290

83-
*Text*
91+
_Text_
8492

8593
---
94+
8695
### Before Delete
8796

8897
Enter the name of the sObject you want to have this action execute on during the before delete context
@@ -93,9 +102,10 @@ Enter the name of the sObject you want to have this action execute on during the
93102

94103
**Type**
95104

96-
*MetadataRelationship*
105+
_MetadataRelationship_
97106

98107
---
108+
99109
### Before Insert
100110

101111
Enter the name of the sObject you want to have this action execute on during the before insert context
@@ -106,9 +116,10 @@ Enter the name of the sObject you want to have this action execute on during the
106116

107117
**Type**
108118

109-
*MetadataRelationship*
119+
_MetadataRelationship_
110120

111121
---
122+
112123
### Before Update
113124

114125
Enter the name of the sObject you want to have this action execute on during the before update context
@@ -119,9 +130,10 @@ Enter the name of the sObject you want to have this action execute on during the
119130

120131
**Type**
121132

122-
*MetadataRelationship*
133+
_MetadataRelationship_
123134

124135
---
136+
125137
### Bypass Execution
126138

127139
Set this to true to bypass this Trigger Action from being called
@@ -132,9 +144,10 @@ Set this to true to bypass this Trigger Action from being called
132144

133145
**Type**
134146

135-
*Checkbox*
147+
_Checkbox_
136148

137149
---
150+
138151
### Bypass Permission
139152

140153
Optional. Enter the API name of a permission. If this field has a value, then the triggers on this object will be bypassed if the running user has the custom permission identified.
@@ -145,9 +158,10 @@ Optional. Enter the API name of a permission. If this field has a value, then th
145158

146159
**Type**
147160

148-
*Text*
161+
_Text_
149162

150163
---
164+
151165
### Description
152166

153167
**API Name**
@@ -156,9 +170,10 @@ Optional. Enter the API name of a permission. If this field has a value, then th
156170

157171
**Type**
158172

159-
*LongTextArea*
173+
_LongTextArea_
160174

161175
---
176+
162177
### Entry Criteria
163178

164179
Formula which if evaluated to true for a given record during trigger processing, then this trigger action will be processed for that record.
@@ -169,9 +184,10 @@ Formula which if evaluated to true for a given record during trigger processing,
169184

170185
**Type**
171186

172-
*LongTextArea*
187+
_LongTextArea_
173188

174189
---
190+
175191
### Flow Name
176192

177193
Enter the API name of the flow you would like to execute.
@@ -182,10 +198,12 @@ Enter the API name of the flow you would like to execute.
182198

183199
**Type**
184200

185-
*Text*
201+
_Text_
186202

187203
---
204+
188205
### Order
206+
189207
**Required**
190208

191209
**API Name**
@@ -194,17 +212,18 @@ Enter the API name of the flow you would like to execute.
194212

195213
**Type**
196214

197-
*Number*
215+
_Number_
198216

199217
---
218+
200219
### Required Permission
201220

202-
Optional. Enter the API name of a permission. If this field has a value, then the triggers on this object will only execute if the running user has the custom permission identified.
221+
Optional. Enter the API name of a permission. If this field has a value, then the triggers on this object will only execute if the running user has the custom permission identified.
203222

204223
**API Name**
205224

206225
`Required_Permission__c`
207226

208227
**Type**
209228

210-
*Text*
229+
_Text_

0 commit comments

Comments
 (0)