-
Notifications
You must be signed in to change notification settings - Fork 0
/
.projenrc.js
56 lines (46 loc) · 1.47 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
51
52
53
54
55
56
const { awscdk, release } = require('projen');
const project = new awscdk.AwsCdkConstructLibrary({
name: 'cdk-greatexpectations',
description: '.',
repositoryUrl: 'https://github.com/mattiamatrix/cdk-greatexpectations',
author: 'Mattia Sappa',
authorAddress: 'mattiasappa@gmail.com',
stability: 'experimental',
defaultReleaseBranch: 'main',
keywords: ['aws', 'athena', 'greatexpectations'],
docgen: false,
cdkVersion: '2.40.0',
// deps: [], /* Runtime dependencies of this module. */
devDeps: [
'@trivago/prettier-plugin-sort-imports',
'eslint-config-prettier',
'eslint-plugin-prettier',
'eslint-plugin-promise',
'ts-node',
'tsc-alias',
],
eslint: true,
prettier: true,
prettierOptions: {
settings: {
semi: true,
trailingComma: 'all',
singleQuote: true,
printWidth: 120,
tabWidth: 2,
importOrder: ['^constructs(.*)$', '^aws-cdk(.*)$', '^@aws-sdk(.*)$', '^test/(.*)$', '^[./]'],
importOrderSeparation: true,
},
},
dependabot: false,
});
// .eslintrc.json
project.eslint.addRules({ 'import/order': 'off' });
const common_exclude = ['cdk.out', 'cdk.context.json', 'yarn-error.log', 'coverage', 'venv'];
// .gitignore
project.gitignore.exclude(...common_exclude);
// .npmignore
project.npmignore.exclude(...common_exclude);
// .prettierignore
[...common_exclude, 'node_modules', 'dist', 'out'].forEach((element) => project.prettier.addIgnorePattern(element));
project.synth();