meta: increase the typescript config separation of main and renderer files
This commit is contained in:
parent
ac7eb61515
commit
c0eff54795
|
@ -166,6 +166,18 @@
|
||||||
"@typescript-eslint/no-shadow": ["error"]
|
"@typescript-eslint/no-shadow": ["error"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"files": ["src/renderer.ts", "src/renderer/**/*.ts"],
|
||||||
|
"parserOptions": {
|
||||||
|
"project": "./tsconfig.renderer.json"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"files": ["types/**/*"],
|
||||||
|
"rules": {
|
||||||
|
"@typescript-eslint/no-magic-numbers": "off"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"files": ["src/main/migrations/**/*"],
|
"files": ["src/main/migrations/**/*"],
|
||||||
"rules": {
|
"rules": {
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"target": "es2019",
|
"target": "es2019",
|
||||||
"lib": ["es2019", "dom"],
|
|
||||||
"types": ["reflect-metadata"],
|
"types": ["reflect-metadata"],
|
||||||
"module": "commonjs",
|
"module": "commonjs",
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "node",
|
||||||
|
@ -15,5 +14,5 @@
|
||||||
"experimentalDecorators": true,
|
"experimentalDecorators": true,
|
||||||
"emitDecoratorMetadata": true
|
"emitDecoratorMetadata": true
|
||||||
},
|
},
|
||||||
"include": ["declarations/**/*.ts", "types/**/*.ts", "src/**/*.ts"]
|
"include": ["declarations/**/*.ts", "types/**/*.ts", "src/main.ts", "src/main/**/*.ts", "src/services/**/*.ts"]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"target": "es2019",
|
"target": "es2020",
|
||||||
"lib": ["dom"],
|
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "node",
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
"noImplicitAny": true,
|
"noImplicitAny": true,
|
||||||
|
|
Loading…
Reference in New Issue