Skip to content

Commit

Permalink
Added XML support to prettier (trailheadapps#108)
Browse files Browse the repository at this point in the history
* Added XML support to prettier

* Updated prettier xml plugin

* Applied prettier to XML files
  • Loading branch information
pozil authored Jan 22, 2020
1 parent 81c2aec commit bf54256
Show file tree
Hide file tree
Showing 95 changed files with 360 additions and 189 deletions.
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ lcc-react-js-bike-model/
**/staticresources/**
.localdevserver
.sfdx
.vscode
.vscode
jsconfig.json
5 changes: 3 additions & 2 deletions force-app/main/default/applications/EBikes.app-meta.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8" ?>
<CustomApplication xmlns="http://soap.sforce.com/2006/04/metadata">
<brand>
<headerColor>#C23335</headerColor>
Expand All @@ -8,7 +8,8 @@
</brand>
<actionOverrides>
<actionName>View</actionName>
<comment>Action override created by Lightning App Builder on activation. Added manually because this isn't registered by force:source:pull.</comment>
<comment
>Action override created by Lightning App Builder on activation. Added manually because this isn't registered by force:source:pull.</comment>
<content>Account_Record_Page</content>
<formFactor>Large</formFactor>
<skipRecordTypeSelect>false</skipRecordTypeSelect>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<AuraDefinitionBundle xmlns="urn:metadata.tooling.soap.sforce.com" fqn="bikeCustomizer">
<?xml version="1.0" encoding="UTF-8" ?>
<AuraDefinitionBundle
xmlns="urn:metadata.tooling.soap.sforce.com"
fqn="bikeCustomizer"
>
<apiVersion>47.0</apiVersion>
<description>A Lightning Component Bundle</description>
</AuraDefinitionBundle>
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<AuraDefinitionBundle xmlns="urn:metadata.tooling.soap.sforce.com" fqn="PageTemplate_2_7_3">
<?xml version="1.0" encoding="UTF-8" ?>
<AuraDefinitionBundle
xmlns="urn:metadata.tooling.soap.sforce.com"
fqn="PageTemplate_2_7_3"
>
<apiVersion>47.0</apiVersion>
<description>A Lightning Component Bundle</description>
</AuraDefinitionBundle>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8" ?>
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>47.0</apiVersion>
<status>Active</status>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8" ?>
<ApexClass xmlns="urn:metadata.tooling.soap.sforce.com" fqn="OrderController">
<apiVersion>47.0</apiVersion>
<status>Active</status>
Expand Down
2 changes: 1 addition & 1 deletion force-app/main/default/classes/PagedResult.cls-meta.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8" ?>
<ApexClass xmlns="urn:metadata.tooling.soap.sforce.com" fqn="PagedResult">
<apiVersion>47.0</apiVersion>
<status>Active</status>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8" ?>
<ApexClass xmlns="urn:metadata.tooling.soap.sforce.com" fqn="ProductController">
<apiVersion>47.0</apiVersion>
<status>Active</status>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<ApexClass xmlns="urn:metadata.tooling.soap.sforce.com" fqn="ProductRecordInfoController">
<?xml version="1.0" encoding="UTF-8" ?>
<ApexClass
xmlns="urn:metadata.tooling.soap.sforce.com"
fqn="ProductRecordInfoController"
>
<apiVersion>47.0</apiVersion>
<status>Active</status>
</ApexClass>
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<ApexClass xmlns="urn:metadata.tooling.soap.sforce.com" fqn="TestOrderController">
<?xml version="1.0" encoding="UTF-8" ?>
<ApexClass
xmlns="urn:metadata.tooling.soap.sforce.com"
fqn="TestOrderController"
>
<apiVersion>47.0</apiVersion>
<status>Active</status>
</ApexClass>
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<ApexClass xmlns="urn:metadata.tooling.soap.sforce.com" fqn="TestProductController">
<?xml version="1.0" encoding="UTF-8" ?>
<ApexClass
xmlns="urn:metadata.tooling.soap.sforce.com"
fqn="TestProductController"
>
<apiVersion>47.0</apiVersion>
<status>Active</status>
</ApexClass>
2 changes: 1 addition & 1 deletion force-app/main/default/contentassets/logo.asset-meta.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8" ?>
<ContentAsset xmlns="http://soap.sforce.com/2006/04/metadata">
<language>en_US</language>
<masterLabel>logo</masterLabel>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8" ?>
<CspTrustedSite xmlns="http://soap.sforce.com/2006/04/metadata">
<context>Communities</context>
<description>s3_us_west_1_amazonaws_com Trusted Site Added Via Community Builder</description>
<description
>s3_us_west_1_amazonaws_com Trusted Site Added Via Community Builder</description>
<endpointUrl>https://s3-us-west-1.amazonaws.com</endpointUrl>
<isActive>true</isActive>
</CspTrustedSite>
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8" ?>
<CspTrustedSite xmlns="http://soap.sforce.com/2006/04/metadata">
<context>Communities</context>
<description>www_cannondale_com Trusted Site Added Via Community Builder</description>
<description
>www_cannondale_com Trusted Site Added Via Community Builder</description>
<endpointUrl>https://www.cannondale.com</endpointUrl>
<isActive>true</isActive>
</CspTrustedSite>
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
<name>displayOption</name>
<value>BOTH</value>
</componentInstanceProperties>
<componentName>runtime_sales_merge:mergeCandidatesPreviewCard</componentName>
<componentName
>runtime_sales_merge:mergeCandidatesPreviewCard</componentName>
</componentInstances>
<componentInstances>
<componentInstanceProperties>
Expand Down Expand Up @@ -110,7 +111,8 @@
</flexiPageRegions>
<flexiPageRegions>
<componentInstances>
<componentName>runtime_sales_activities:activityPanel</componentName>
<componentName
>runtime_sales_activities:activityPanel</componentName>
</componentInstances>
<mode>Replace</mode>
<name>activityTabContent</name>
Expand Down Expand Up @@ -177,4 +179,4 @@
<name>flexipage:recordHomeTemplateDesktop</name>
</template>
<type>RecordPage</type>
</FlexiPage>
</FlexiPage>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8" ?>
<FlexiPage xmlns="http://soap.sforce.com/2006/04/metadata">
<flexiPageRegions>
<componentInstances>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8" ?>
<FlexiPage xmlns="http://soap.sforce.com/2006/04/metadata">
<flexiPageRegions>
<componentInstances>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8" ?>
<FlexiPage xmlns="http://soap.sforce.com/2006/04/metadata">
<flexiPageRegions>
<componentInstances>
Expand Down
12 changes: 6 additions & 6 deletions force-app/main/default/layouts/Case-Case Layout.layout-meta.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8" ?>
<Layout xmlns="http://soap.sforce.com/2006/04/metadata">
<emailDefault>false</emailDefault>
<feedLayout>
Expand Down Expand Up @@ -152,8 +152,8 @@
<detailHeading>false</detailHeading>
<editHeading>true</editHeading>
<label>Additional Information</label>
<layoutColumns/>
<layoutColumns/>
<layoutColumns />
<layoutColumns />
<style>TwoColumnsLeftToRight</style>
</layoutSections>
<layoutSections>
Expand Down Expand Up @@ -200,9 +200,9 @@
<customLabel>false</customLabel>
<detailHeading>false</detailHeading>
<editHeading>false</editHeading>
<layoutColumns/>
<layoutColumns/>
<layoutColumns/>
<layoutColumns />
<layoutColumns />
<layoutColumns />
<style>CustomLinks</style>
</layoutSections>
<quickActionList>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8" ?>
<Layout xmlns="http://soap.sforce.com/2006/04/metadata">
<layoutSections>
<customLabel>false</customLabel>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8" ?>
<Layout xmlns="http://soap.sforce.com/2006/04/metadata">
<layoutSections>
<customLabel>false</customLabel>
Expand Down Expand Up @@ -35,7 +35,7 @@
<field>Price__c</field>
</layoutItems>
</layoutColumns>
<layoutColumns/>
<layoutColumns />
<style>TwoColumnsTopToBottom</style>
</layoutSections>
<layoutSections>
Expand All @@ -61,9 +61,9 @@
<customLabel>false</customLabel>
<detailHeading>false</detailHeading>
<editHeading>true</editHeading>
<layoutColumns/>
<layoutColumns/>
<layoutColumns/>
<layoutColumns />
<layoutColumns />
<layoutColumns />
<style>CustomLinks</style>
</layoutSections>
<showEmailCheckbox>false</showEmailCheckbox>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8" ?>
<Layout xmlns="http://soap.sforce.com/2006/04/metadata">
<layoutSections>
<customLabel>false</customLabel>
Expand Down Expand Up @@ -32,18 +32,18 @@
<detailHeading>false</detailHeading>
<editHeading>true</editHeading>
<label>System Information</label>
<layoutColumns/>
<layoutColumns/>
<layoutColumns />
<layoutColumns />
<style>TwoColumnsTopToBottom</style>
</layoutSections>
<layoutSections>
<customLabel>true</customLabel>
<detailHeading>false</detailHeading>
<editHeading>true</editHeading>
<label>Custom Links</label>
<layoutColumns/>
<layoutColumns/>
<layoutColumns/>
<layoutColumns />
<layoutColumns />
<layoutColumns />
<style>CustomLinks</style>
</layoutSections>
<relatedLists>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8" ?>
<Layout xmlns="http://soap.sforce.com/2006/04/metadata">
<layoutSections>
<customLabel>false</customLabel>
Expand Down Expand Up @@ -50,9 +50,9 @@
<customLabel>false</customLabel>
<detailHeading>false</detailHeading>
<editHeading>true</editHeading>
<layoutColumns/>
<layoutColumns/>
<layoutColumns/>
<layoutColumns />
<layoutColumns />
<layoutColumns />
<style>CustomLinks</style>
</layoutSections>
<relatedLists>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8" ?>
<Layout xmlns="http://soap.sforce.com/2006/04/metadata">
<excludeButtons>Submit</excludeButtons>
<layoutSections>
Expand Down Expand Up @@ -112,9 +112,9 @@
<detailHeading>false</detailHeading>
<editHeading>true</editHeading>
<label>Custom Links</label>
<layoutColumns/>
<layoutColumns/>
<layoutColumns/>
<layoutColumns />
<layoutColumns />
<layoutColumns />
<style>CustomLinks</style>
</layoutSections>
<showEmailCheckbox>false</showEmailCheckbox>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
</targetConfig>
</targetConfigs>

</LightningComponentBundle>
</LightningComponentBundle>
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata" fqn="bikeCustomizerButtonBar">
<?xml version="1.0" encoding="UTF-8" ?>
<LightningComponentBundle
xmlns="http://soap.sforce.com/2006/04/metadata"
fqn="bikeCustomizerButtonBar"
>
<apiVersion>47.0</apiVersion>
<isExposed>false</isExposed>
</LightningComponentBundle>
</LightningComponentBundle>
7 changes: 5 additions & 2 deletions force-app/main/default/lwc/createCase/createCase.js-meta.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
<?xml version="1.0" encoding="UTF-8" ?>
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata" fqn="createOrder">
<LightningComponentBundle
xmlns="http://soap.sforce.com/2006/04/metadata"
fqn="createOrder"
>
<apiVersion>47.0</apiVersion>
<isExposed>true</isExposed>
<masterLabel>Create Case</masterLabel>
<targets>
<target>lightningCommunity__Page</target>
</targets>
</LightningComponentBundle>
</LightningComponentBundle>
Loading

0 comments on commit bf54256

Please sign in to comment.