forked from RossWilliams/ts-case-convert
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.projenrc.js
64 lines (61 loc) · 1.44 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
57
58
59
60
61
62
63
64
const {
TypeScriptProject,
NodePackageManager,
ProjectType,
} = require('projen');
const project = new TypeScriptProject({
defaultReleaseBranch: 'main',
jsiiFqn: 'projen.TypeScriptProject',
name: 'ts-case-convert',
authorEmail: '[email protected]',
authorName: 'Ross Williams',
authorOrganization: 'Universal Constructor',
description:
'Typescript type-preserving conversion of objects between camelCase and snake_case',
entrypoint: 'lib/index.js',
keywords: [
'typescript',
'conversion',
'camelCase',
'camel-case',
'snake_case',
'snake-case',
'PascalCase',
'pascal-case',
],
packageManager: NodePackageManager.YARN,
repository: 'https://github.com/RossWilliams/ts-case-convert.git',
codeCov: true,
codeCovTokenSecret: 'CODECOV_TOKEN',
releaseToNpm: true,
license: 'Apache-2.0',
projectType: ProjectType.LIBRARY,
tsconfig: {
compilerOptions: {
noUnusedLocals: false,
},
},
jestOptions: {
typescriptConfig: {
compilerOptions: {
noUnusedLocals: false,
},
},
},
gitignore: ['.cache_ggshield'],
});
project.eslint.addRules({
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/indent': 'off',
'comma-dangle': 'off',
'@typescript-eslint/no-unused-vars': [
'error',
{
vars: 'all',
varsIgnorePattern: '^_',
args: 'after-used',
argsIgnorePattern: '^_',
},
],
});
project.synth();