forked from cdklabs/pr-linter-exemption-labeler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.projenrc.js
50 lines (46 loc) · 1.13 KB
/
.projenrc.js
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
const { GitHubActionTypeScriptProject } = require('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',
},
metadata: {
author: 'Kendra Neil',
inputs: {
'github-token': {
description: 'GitHub token',
required: true,
},
},
},
devDeps: ['projen-github-action-typescript'],
eslintOptions: {
prettier: true,
},
jestOptions: {
verbose: true,
silent: 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();