Skip to content

Commit 4c3de5e

Browse files
refactor: add pre-commit hooks for status list mock
1 parent 1200a95 commit 4c3de5e

2 files changed

Lines changed: 30 additions & 41 deletions

File tree

.pre-commit-config.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@
3131
verbose: true
3232
files: ^txma-mock/template\.yaml$
3333

34+
- id: checkov
35+
verbose: true
36+
files: ^status-list--mock/template\.yaml$
37+
3438
- repo: https://github.com/aws-cloudformation/cfn-lint
3539
rev: v1.51.0
3640
hooks:
@@ -48,3 +52,29 @@
4852

4953
- id: rain-format
5054
files: ^txma-mock/template\.yaml$
55+
56+
- id: rain-format
57+
files: ^status-list--mock/template\.yaml$
58+
59+
- repo: local
60+
hooks:
61+
- id: status-list-mock-eslint-ts
62+
name: Status List Mock - ESLint linter
63+
language: system
64+
entry: bash -c 'cd status-list-mock && npm run lint'
65+
files: ^status-list-mock/.*\.(ts|md)$
66+
stages: [pre-commit]
67+
68+
- id: status-list-mock-prettier-ts
69+
name: Status List Mock - Prettier format check
70+
language: system
71+
entry: bash -c 'cd status-list-mock && npm run format:check'
72+
files: ^status-list-mock/.*\.(ts|md|yaml)$
73+
stages: [pre-commit]
74+
75+
- id: status-list-mock-jest-tests
76+
name: Status List Mock - Jest unit tests
77+
language: system
78+
entry: bash -c 'cd status-list-mock && npm run test'
79+
files: ^status-list-mock/.*\.ts$
80+
stages: [pre-push]

status-list-mock/quality-gate.manifest.json

Lines changed: 0 additions & 41 deletions
This file was deleted.

0 commit comments

Comments
 (0)