refactor: Consolidate tsconfig and eslintrc files (no-changelog) (#6816)

Co-authored-by: Csaba Tuncsik <csaba@n8n.io>
This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2023-08-01 17:32:43 +02:00
committed by GitHub
parent 31d8f478ee
commit 34df8b6238
22 changed files with 59 additions and 75 deletions

View File

@@ -1,11 +1,8 @@
{
"extends": "./tsconfig.json",
"extends": ["./tsconfig.json", "../../../tsconfig.build.json"],
"compilerOptions": {
"rootDir": "src",
"outDir": "dist",
"types": ["node"],
"noEmit": false,
"tsBuildInfoFile": "dist/build.tsbuildinfo"
"outDir": "dist"
},
"include": ["src/**/*.ts"],
"exclude": ["test/**"]

View File

@@ -7,10 +7,6 @@ module.exports = {
globalSetup: '<rootDir>/test/setup.ts',
globalTeardown: '<rootDir>/test/teardown.ts',
setupFilesAfterEnv: ['<rootDir>/test/setup-mocks.ts', '<rootDir>/test/extend-expect.ts'],
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1',
'^@db/(.*)$': '<rootDir>/src/databases/$1',
},
coveragePathIgnorePatterns: ['/src/databases/migrations/'],
testTimeout: 10_000,
};

View File

@@ -96,9 +96,7 @@
"@types/yamljs": "^0.2.31",
"chokidar": "^3.5.2",
"concurrently": "^8.2.0",
"ts-essentials": "^7.0.3",
"tsc-alias": "^1.8.7",
"tsconfig-paths": "^4.2.0"
"ts-essentials": "^7.0.3"
},
"dependencies": {
"@n8n/client-oauth2": "workspace:*",

View File

@@ -1,19 +1,9 @@
{
"extends": "./tsconfig.json",
"extends": ["./tsconfig.json", "../../tsconfig.build.json"],
"compilerOptions": {
"rootDir": "src",
"outDir": "dist",
"types": ["node"],
"noEmit": false,
"tsBuildInfoFile": "dist/build.tsbuildinfo"
"outDir": "dist"
},
"include": ["src/**/*.ts"],
"exclude": ["test/**"],
"tsc-alias": {
"replacers": {
"base-url": {
"enabled": false
}
}
}
"exclude": ["test/**"]
}

View File

@@ -1,9 +1,7 @@
{
"extends": "../../tsconfig.json",
"extends": ["../../tsconfig.json", "../../tsconfig.backend.json"],
"compilerOptions": {
"rootDir": ".",
"types": ["node", "jest"],
"noEmit": true,
"preserveSymlinks": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
@@ -12,7 +10,6 @@
"@/*": ["./*"],
"@db/*": ["./databases/*"]
},
"tsBuildInfoFile": "dist/typecheck.tsbuildinfo",
// TODO: remove all options below this line
"strict": false,
"noUnusedLocals": false,

View File

@@ -1,11 +1,8 @@
{
"extends": "./tsconfig.json",
"extends": ["./tsconfig.json", "../../tsconfig.build.json"],
"compilerOptions": {
"rootDir": "src",
"outDir": "dist",
"types": ["node"],
"noEmit": false,
"tsBuildInfoFile": "dist/build.tsbuildinfo"
"outDir": "dist"
},
"include": ["src/**/*.ts"],
"exclude": ["test/**"]

View File

@@ -1,15 +1,12 @@
{
"extends": "../../tsconfig.json",
"extends": ["../../tsconfig.json", "../../tsconfig.backend.json"],
"compilerOptions": {
"rootDir": ".",
"types": ["node", "jest"],
"composite": true,
"noEmit": true,
"baseUrl": "src",
"paths": {
"@/*": ["./*"]
},
"tsBuildInfoFile": "dist/typecheck.tsbuildinfo",
// TODO: remove all options below this line
"useUnknownInCatchVariables": false
},

View File

@@ -6,7 +6,6 @@
"target": "esnext",
"module": "esnext",
"importHelpers": true,
"skipLibCheck": true,
"allowJs": true,
"incremental": false,
"allowSyntheticDefaultImports": true,

View File

@@ -5,7 +5,6 @@
"outDir": "dist",
"target": "esnext",
"module": "esnext",
"skipLibCheck": true,
"allowJs": true,
"importHelpers": true,
"incremental": false,

View File

@@ -1,8 +1,7 @@
{
"extends": "../../tsconfig.json",
"extends": ["../../tsconfig.json", "../../tsconfig.backend.json"],
"compilerOptions": {
"outDir": "dist",
"types": ["node"],
"preserveSymlinks": true,
// TODO: remove all options below this line
"noUnusedLocals": false,

View File

@@ -2,8 +2,4 @@
module.exports = {
...require('../../jest.config'),
collectCoverageFrom: ['credentials/**/*.ts', 'nodes/**/*.ts', 'utils/**/*.ts'],
moduleNameMapper: {
'^@test/(.*)$': '<rootDir>/test/$1',
'^@utils/(.*)$': '<rootDir>/utils/$1',
},
};

View File

@@ -1,10 +1,7 @@
{
"extends": "./tsconfig.json",
"extends": ["./tsconfig.json", "../../tsconfig.build.json"],
"compilerOptions": {
"outDir": "dist",
"types": ["node"],
"noEmit": false,
"tsBuildInfoFile": "dist/build.tsbuildinfo"
"outDir": "dist"
},
"include": [
"credentials/**/*.ts",

View File

@@ -1,9 +1,7 @@
{
"extends": "../../tsconfig.json",
"extends": ["../../tsconfig.json", "../../tsconfig.backend.json"],
"compilerOptions": {
"lib": ["dom", "es2020", "es2022.error"],
"types": ["node", "jest"],
"noEmit": true,
"paths": {
"@test/*": ["./test/*"],
"@utils/*": ["./utils/*"]

View File

@@ -1,11 +1,8 @@
{
"extends": "./tsconfig.json",
"extends": ["./tsconfig.json", "../../tsconfig.build.json"],
"compilerOptions": {
"rootDir": "src",
"outDir": "dist",
"types": ["node"],
"noEmit": false,
"tsBuildInfoFile": "dist/build.tsbuildinfo"
"outDir": "dist"
},
"include": ["src/**/*.ts"],
"exclude": ["test/**"]

View File

@@ -2,14 +2,11 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": ".",
"types": ["node", "jest"],
"composite": true,
"noEmit": true,
"baseUrl": "src",
"paths": {
"@/*": ["./*"]
},
"tsBuildInfoFile": "dist/typecheck.tsbuildinfo",
// TODO: remove all options below this line
"useUnknownInCatchVariables": false
},