Skip to content

Commit ef8e11f

Browse files
committed
add lint:fix and fix lint errors
1 parent ff03708 commit ef8e11f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"format": "prettier --write '**/*.ts'",
1313
"format-check": "prettier --check '**/*.ts'",
1414
"lint": "eslint packages/**/*.ts",
15+
"lint:fix": "eslint packages/**/*.ts --fix",
1516
"build-all": "npm run build --prefix packages/hooklib && npm run build --prefix packages/k8s && npm run build --prefix packages/docker"
1617
},
1718
"repository": {

packages/k8s/tests/prepare-job-test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,11 +236,11 @@ describe('Prepare job', () => {
236236
prepareJobData.args!.container!.image =
237237
'ghcr.io/actions/actions-runner:latest' // known to use user 1001
238238
await expect(
239-
prepareJob(prepareJobData.args!, prepareJobOutputFilePath)
239+
prepareJob(prepareJobData.args, prepareJobOutputFilePath)
240240
).resolves.not.toThrow()
241241

242-
const content = JSON.parse(
242+
JSON.parse(
243243
fs.readFileSync(prepareJobOutputFilePath).toString()
244-
)
244+
).resolves.not.toThrow()
245245
})
246246
})

0 commit comments

Comments
 (0)