-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.projenrc.ts
62 lines (53 loc) · 1.49 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
import { CdklabsTypeScriptProject } from 'cdklabs-projen-project-types';
const project = new CdklabsTypeScriptProject({
private: false,
projenrcTs: true,
name: '@cdklabs/eslint-plugin',
description: 'eslint rules published by the CDK team. Contains CDK rules and others.',
majorVersion: 1,
repository: 'https://github.com/cdklabs/eslint-rules',
authorName: 'Amazon Web Services',
authorUrl: 'https://aws.amazon.com',
authorOrganization: true,
defaultReleaseBranch: 'main',
enablePRAutoMerge: true,
devDeps: [
'@types/fs-extra',
'@types/estree',
],
deps: [
'fs-extra',
],
peerDeps: [
'@typescript-eslint/parser',
'eslint@>=6 <9',
],
peerDependencyOptions: {
pinnedDevDependency: false,
},
tsconfig: {
compilerOptions: {
// moduleResolution: TypeScriptModuleResolution.NODE16,
},
exclude: [
// 'test/rules/fixtures/**/*.ts',
],
},
releaseToNpm: true,
autoApproveOptions: {
allowedUsernames: ['cdklabs-automation'],
secret: 'GITHUB_TOKEN',
},
autoApproveUpgrades: true,
eslintOptions: {
dirs: ['src'],
ignorePatterns: ['test/rules/fixtures/**/*.ts'],
},
});
// Declare different eslint deps than upstream projen
project.addDevDeps('@types/eslint@^8', 'eslint@^8');
// Only ignore node_modules at the root, we also have one inside the
// `test/fixtures` directory.
project.gitignore.addPatterns('!test/rules/fixtures/node_modules/');
project.gitignore.addPatterns('.test-output/');
project.synth();