Skip to content

Commit 4efa052

Browse files
committed
Husky/Lint-Staged
- added husky for pre commit formatting/pre push test - fixed prettier commands - formatted code Signed-off-by: JBBianchi <[email protected]>
1 parent 99e92e6 commit 4efa052

File tree

81 files changed

+3852
-2723
lines changed

Some content is hidden

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

81 files changed

+3852
-2723
lines changed

.huskyrc.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"hooks": {
3+
"pre-commit": "lint-staged",
4+
"pre-push": "npm run test"
5+
}
6+
}

.lintstagedrc.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
'*.ts': [
3+
'npm run format'
4+
]
5+
};

.prettierignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
node_modules
22
dist
3-
out-tsc
3+
out-tsc
4+
src/lib/validation/validators-paths.ts

.prettierrc.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/node/index.ts

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
import { workflowBuilder, injectstateBuilder, Specification } from '../../dist';
22
const workflow: Specification.Workflow = workflowBuilder()
3-
.id("helloworld")
4-
.version("1.0")
5-
.name("Hello World Workflow")
6-
.description("Inject Hello World")
7-
.start("Hello State")
8-
.states([
9-
injectstateBuilder()
10-
.name("Hello State")
11-
.data({
12-
"result": "Hello World!"
13-
})
14-
.end(true)
15-
.build()
16-
])
17-
.build();
18-
console.log(workflow.id);
3+
.id('helloworld')
4+
.version('1.0')
5+
.name('Hello World Workflow')
6+
.description('Inject Hello World')
7+
.start('Hello State')
8+
.states([
9+
injectstateBuilder()
10+
.name('Hello State')
11+
.data({
12+
result: 'Hello World!',
13+
})
14+
.end(true)
15+
.build(),
16+
])
17+
.build();
18+
console.log(workflow.id);

0 commit comments

Comments
 (0)