-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.projenrc.ts
59 lines (58 loc) · 1.78 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
import { TypeScriptProject } from '@vladcos/projen-base'
const deps = [
'eslint',
'@typescript-eslint/eslint-plugin',
'@typescript-eslint/parser',
'eslint-config-prettier',
'eslint-define-config',
'eslint-import-resolver-alias',
'eslint-import-resolver-typescript',
'eslint-plugin-import',
'eslint-plugin-jest',
'eslint-plugin-json-schema-validator',
'eslint-plugin-jsonc',
'eslint-plugin-json-files',
// 'eslint-plugin-node',
'eslint-plugin-promise',
'eslint-plugin-sonarjs@^0',
'eslint-plugin-unicorn',
'eslint-plugin-unused-imports',
'eslint-plugin-vue',
'eslint-plugin-react',
'eslint-plugin-react-hooks',
'eslint-plugin-react-refresh',
'eslint-plugin-tailwindcss',
'eslint-define-config',
'eslint-plugin-tailwindcss',
'@rushstack/eslint-patch',
'eslint-config-canonical@42',
'eslint-plugin-readable-tailwind',
'eslint-plugin-simple-import-sort',
'eslint-plugin-deprecation',
]
const project = new (class extends TypeScriptProject {
override preSynthesize() {
super.preSynthesize()
this.eslint._extends?.delete(this.name)
}
})({
defaultReleaseBranch: 'main',
devDeps: ['@vladcos/projen-base'],
name: '@vladcos/eslint-config',
projenrcTs: true,
packemon: false,
projenDevDependency: false,
disableTsconfig: false,
disableTsconfigDev: false,
tsconfigDevFile: 'tsconfig.dev.json',
peerDependencyOptions: {
pinnedDevDependency: false,
},
deps,
repository: 'https://github.com/vladcosorg/eslint-config',
})
// @ts-expect-error We have to edit the private var
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-call,@typescript-eslint/no-unsafe-member-access
project.eslint.addExtends('./lib/index.js')
// project.compileTask.reset(`cp -R src ${project.libdir}`)
project.synth()