-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
58 lines (54 loc) · 1.46 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v8.56.0
hooks:
- id: eslint
files: \.[jt]sx?$ # *.js, *.jsx, *.ts and *.tsx
types: [ file ]
args: ["--fix"]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.5.1
hooks:
- id: prettier
files: \.[jt]sx?$ # *.js, *.jsx, *.ts and *.tsx
types: [ file ]
- repo: https://github.com/aws-samples/automated-security-helper
rev: 'v2.0.1' # update with the latest-tagged version in the repository
hooks:
- id: ash
stages: [ manual ]
# uncomment the line below if using "finch" on MacOS
# args: [ "-f" ]
- repo: https://github.com/sbrunner/pre-commit-copyright
rev: 1.2.1
hooks:
- id: copyright
name: update copyright
exclude: |
(?x)^(
^\..+|
.+\.md|
jest.config.js|
LICENSE|
package.json|
package-lock.json
tsconfig.json|
)$
- id: copyright-required
name: require copyright
exclude: |
(?x)^(
^\..+|
.+\.md|
jest.config.js|
LICENSE|
package.json|
package-lock.json|
tsconfig.json|
)$