-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.projenrc.ts
57 lines (53 loc) · 1.27 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
import { GitHubActionTypeScriptProject, RunsUsing } from 'projen-github-action-typescript';
const project = new GitHubActionTypeScriptProject({
defaultReleaseBranch: 'main',
release: false,
name: 'pr-linter-exemption-labeler',
deps: ['@octokit/graphql', '@actions/core', '@actions/github', '@octokit/rest'],
autoApproveUpgrades: true,
autoApproveOptions: {
allowedUsernames: ['cdklabs-automation'],
secret: 'GITHUB_TOKEN',
},
projenrcTs: true,
actionMetadata: {
author: 'Kendra Neil',
runs: {
main: 'dist/index.js',
using: RunsUsing.NODE_20,
},
inputs: {
'github-token': {
description: 'GitHub token',
required: true,
},
},
},
devDeps: ['projen-github-action-typescript'],
eslintOptions: {
prettier: true,
dirs: ['src', 'test'],
},
jestOptions: {
jestConfig: {
verbose: true,
},
},
});
project.package.addField('prettier', {
singleQuote: true,
semi: true,
trailingComma: 'es5',
printWidth: 100,
});
project.eslint?.addRules({
'prettier/prettier': [
'error',
{ singleQuote: true, semi: true, trailingComma: 'es5', printWidth: 100 },
],
});
project.eslint?.addOverride({
files: ['*-function.ts'],
rules: { 'prettier/prettier': 'off' },
});
project.synth();