forked from RossWilliams/ts-case-convert
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.projenrc.js
63 lines (60 loc) · 1.51 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
const { javascript, typescript, ProjectType } = require('projen');
const project = new typescript.TypeScriptProject({
defaultReleaseBranch: 'main',
jsiiFqn: 'projen.TypeScriptProject',
name: 'ts-case-convert',
authorEmail: 'ross@UniversalConstructor.co.uk',
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: javascript.NodePackageManager.YARN_CLASSIC,
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,
types: [],
},
},
tsconfigDev: {
compilerOptions: {
noUnusedLocals: false,
types: ['jest', 'node'],
},
},
jestOptions: {
configFilePath: 'jest.config.json',
},
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();