This repository has been archived by the owner on Jun 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.projenrc.ts
75 lines (72 loc) · 1.8 KB
/
.projenrc.ts
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
import { cdktf } from "projen";
const project = new cdktf.ConstructLibraryCdktf({
author: "Slalom Build",
authorAddress: "[email protected]",
authorOrganization: true,
cdktfVersion: "^0.12.1",
constructsVersion: "^10.1.84",
defaultReleaseBranch: "main",
packageName: "@slalombuild/fusion-cdk",
name: "@slalombuild/fusion-cdk",
repositoryUrl: "https://github.com/SlalomBuild/fusion-cdk.git",
npmRegistryUrl: "https://npm.pkg.github.com",
description: "Secure by default Terraform CDK constructs.",
license: "MIT",
staleOptions: {
issues: {
daysBeforeStale: 14,
daysBeforeClose: -1,
},
pullRequest: {
daysBeforeStale: 14,
daysBeforeClose: -1,
},
},
githubOptions: {
pullRequestLintOptions: {
semanticTitleOptions: {
types: ["feat", "fix", "chore", "docs"],
},
},
},
deps: ["@cdktf/provider-aws"],
peerDeps: ["@cdktf/provider-aws"],
devDeps: ["eslint-plugin-jsdoc", "husky", "lint-staged"],
eslintOptions: {
dirs: ["src"],
prettier: true,
},
release: true,
releaseToNpm: true,
projenrcTs: true,
prettier: true,
gitignore: [
".DS_Store",
"**/*.js",
"**/*.d.ts",
"package-lock.json",
"yarn.lock",
"/test/__snapshots__/",
],
});
project.setScript("pre-commit", "lint-staged");
project.eslint?.addPlugins("jsdoc");
project.eslint?.addExtends("plugin:jsdoc/recommended");
project.eslint?.addRules({
"jsdoc/require-param-type": "off",
"jsdoc/require-description": "warn",
"jsdoc/require-returns-type": "off",
"jsdoc/require-jsdoc": [
"warn",
{
require: {
ArrowFunctionExpression: true,
ClassDeclaration: false,
ClassExpression: false,
FunctionDeclaration: true,
MethodDefinition: true,
},
},
],
});
project.synth();