cdk-nag
Version:
Check CDK v2 applications for best practices using a combination on available rule packs.
40 lines (39 loc) • 1 kB
YAML
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-json
- id: trailing-whitespace
exclude: ^API.md||.github/$
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v7.31.0
hooks:
- id: eslint
files: \.[jt]sx?$
types: [file]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: 'v2.3.2'
hooks:
- id: prettier
exclude: |
(?x)(
^.github/|
^.projen/|
^.mergify.yml|
^.*.json |
^API.md
)
- repo: https://github.com/dontirun/text-prepender
rev: v0.1.0
hooks:
- id: text-prepender
exclude: |
(?x)(
^.github/|
^.projen/|
^.mergify.yml|
^.*.json |
^API.md
)