Skip to content

Commit 7fd684a

Browse files
authored
Upgrade prettier (kentaro-m#114)
* chore: add pre-commit tool * fix: format codes
1 parent 7eac648 commit 7fd684a

File tree

7 files changed

+917
-19
lines changed

7 files changed

+917
-19
lines changed

.husky/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/pre-commit

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx lint-staged

__tests__/handler.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ describe('handlePullRequest', () => {
1010
let context: Context
1111

1212
beforeEach(async () => {
13-
context = ({
13+
context = {
1414
eventName: '',
1515
workflow: '',
1616
action: '',
@@ -44,7 +44,7 @@ describe('handlePullRequest', () => {
4444
},
4545
sha: '',
4646
ref: '',
47-
} as unknown) as Context
47+
} as unknown as Context
4848
})
4949

5050
test('responds with an error if the webhook payload is not exist', async () => {

__tests__/run.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ describe.only('run', () => {
5454
})
5555

5656
test('succeeds the process', async () => {
57-
coreMocked.getInput.mockImplementation(name => {
57+
coreMocked.getInput.mockImplementation((name) => {
5858
switch (name) {
5959
case 'repo-token':
6060
return 'token'

0 commit comments

Comments
 (0)