Skip to content

Commit c05ce98

Browse files
committed
Added pretty-quck, run prettier again
1 parent 96c3d9a commit c05ce98

File tree

8 files changed

+319
-26
lines changed

8 files changed

+319
-26
lines changed

.prettierignore

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.vscode
2+
dist
3+
images
4+
media
5+
node_modules
6+
out

examples/asl/yml/0.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ StartAt: Single State
22
States:
33
Single State:
44
Type: Pass
5-
End: true
5+
End: true
+13-13
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
2-
"AWSTemplateFormatVersion":"2010-09-09",
3-
"Description":"An example template for a Step Functions state machine.",
4-
"Resources":{
5-
"MyStateMachine":{
6-
"Type":"AWS::StepFunctions::StateMachine",
7-
"Properties":{
8-
"StateMachineName":"HelloWorld-StateMachine",
9-
"StateMachineType":"STANDARD",
10-
"DefinitionString":"{\"StartAt\": \"HelloWorld\",\"States\": {\"HelloWorld\": {\"Type\": \"Task\", \"Resource\":\"arn:aws:lambda:us-east-1:111122223333;:function:HelloFunction\", \"End\": true}}}",
11-
"RoleArn":"arn:aws:iam::111122223333:role/service-role/StatesExecutionRole-us-east-1;"
12-
}
13-
}
2+
"AWSTemplateFormatVersion": "2010-09-09",
3+
"Description": "An example template for a Step Functions state machine.",
4+
"Resources": {
5+
"MyStateMachine": {
6+
"Type": "AWS::StepFunctions::StateMachine",
7+
"Properties": {
8+
"StateMachineName": "HelloWorld-StateMachine",
9+
"StateMachineType": "STANDARD",
10+
"DefinitionString": "{\"StartAt\": \"HelloWorld\",\"States\": {\"HelloWorld\": {\"Type\": \"Task\", \"Resource\":\"arn:aws:lambda:us-east-1:111122223333;:function:HelloFunction\", \"End\": true}}}",
11+
"RoleArn": "arn:aws:iam::111122223333:role/service-role/StatesExecutionRole-us-east-1;"
12+
}
1413
}
15-
}
14+
}
15+
}

examples/sam/2_inline_definition.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
# SPDX-License-Identifier: Apache-2.0
3-
AWSTemplateFormatVersion: '2010-09-09'
3+
AWSTemplateFormatVersion: "2010-09-09"
44
Transform: AWS::Serverless-2016-10-31
55

66
Resources:
@@ -14,4 +14,4 @@ Resources:
1414
Type: Pass
1515
End: true
1616
Policies:
17-
- CloudWatchPutMetricPolicy: {}
17+
- CloudWatchPutMetricPolicy: {}

examples/sam/3_reference/template.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,4 @@ Outputs:
7373
Value: !Ref StockTradingStateMachine
7474
StockTradingStateMachineRole:
7575
Description: "IAM Role created for Stock Trading state machine based on the specified SAM Policy Templates"
76-
Value: !GetAtt StockTradingStateMachineRole.Arn
76+
Value: !GetAtt StockTradingStateMachineRole.Arn

package.json

+7
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,19 @@
5252
"@types/node": "14.14.35",
5353
"@types/ramda": "0.27.39",
5454
"@types/uuid": "8.3.0",
55+
"husky": "4.3.8",
5556
"prettier": "2.2.1",
57+
"pretty-quick": "3.1.0",
5658
"ts-loader": "8.0.18",
5759
"tslint": "6.1.3",
5860
"typescript": "4.2.3",
5961
"vscode": "1.1.37",
6062
"webpack": "5.27.0",
6163
"webpack-cli": "4.5.0"
64+
},
65+
"husky": {
66+
"hooks": {
67+
"pre-commit": "pretty-quick --staged"
68+
}
6269
}
6370
}

src/graphStyles.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@ export const getClusterOptions = (state: State) => {
4242

4343
export const getEdgeOptions = () => ({ labelStyle: "font-style: italic;" });
4444

45-
export const getMissingStyle = () => "fill: #ff0000;"
45+
export const getMissingStyle = () => "fill: #ff0000;";

0 commit comments

Comments
 (0)