Skip to content

Files

pkglint

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jan 9, 2024
Jan 30, 2024
Jul 12, 2023
Jan 19, 2024
Sep 29, 2021
Sep 29, 2021
Sep 29, 2021
Jan 2, 2024
Mar 14, 2022
Aug 25, 2023
Jun 13, 2024
May 3, 2023

pkglint

enforces CDK-specific linter rules

Rules

All linter rules live in rules.ts. To create a new rule, create a new class in that file that extends ValidationRule. That class will be automatically picked up by pkglint when it is run.

When designing a new rule, do not assume that pkglint will run on a built aws-cdk repository. pkglint is sometimes run on just the source code of aws-cdk modules so validating compiled code will result in failure.