2022-12-30 16:40:15 +03:00
|
|
|
{
|
|
|
|
"compilerOptions": {
|
2023-06-08 20:42:58 +03:00
|
|
|
"verbatimModuleSyntax": true,
|
|
|
|
// Classification follows https://www.typescriptlang.org/tsconfig
|
|
|
|
|
|
|
|
// Type Checking
|
2022-12-30 16:40:15 +03:00
|
|
|
"strict": true,
|
2023-09-14 11:47:15 +03:00
|
|
|
"exactOptionalPropertyTypes": false,
|
2023-06-08 20:42:58 +03:00
|
|
|
"noFallthroughCasesInSwitch": true,
|
|
|
|
"noImplicitAny": true,
|
|
|
|
"noImplicitOverride": true,
|
|
|
|
"noImplicitReturns": true,
|
|
|
|
"noImplicitThis": true,
|
2023-09-14 11:47:15 +03:00
|
|
|
"noUnusedLocals": true,
|
|
|
|
"noUnusedParameters": true,
|
|
|
|
"noPropertyAccessFromIndexSignature": false,
|
|
|
|
"noUncheckedIndexedAccess": false,
|
2023-06-08 20:42:58 +03:00
|
|
|
"useUnknownInCatchVariables": true,
|
|
|
|
|
|
|
|
// Modules
|
2023-08-05 03:00:36 +03:00
|
|
|
"module": "ESNext",
|
|
|
|
"moduleResolution": "bundler",
|
2022-12-30 16:40:15 +03:00
|
|
|
"resolveJsonModule": true,
|
2023-08-10 22:56:16 +03:00
|
|
|
"types": ["affine__env"],
|
2023-06-08 20:42:58 +03:00
|
|
|
// Emit
|
|
|
|
"declaration": true,
|
|
|
|
"declarationMap": true,
|
|
|
|
"sourceMap": true,
|
|
|
|
// skip type emit for @internal types
|
|
|
|
// "stripInternal": true,
|
|
|
|
|
|
|
|
// JavaScript Support
|
|
|
|
"allowJs": false,
|
|
|
|
"checkJs": false,
|
2023-06-08 07:41:47 +03:00
|
|
|
|
2023-06-08 20:42:58 +03:00
|
|
|
// Interop Constraints
|
|
|
|
"forceConsistentCasingInFileNames": true,
|
|
|
|
"allowSyntheticDefaultImports": true,
|
2023-08-05 03:00:36 +03:00
|
|
|
"isolatedModules": true,
|
2023-06-08 20:42:58 +03:00
|
|
|
|
|
|
|
// Language and Environment
|
2023-08-05 03:00:36 +03:00
|
|
|
"jsx": "preserve",
|
|
|
|
"jsxImportSource": "@emotion/react",
|
|
|
|
"lib": ["ESNext", "DOM"],
|
2023-06-08 20:42:58 +03:00
|
|
|
"target": "ES2022",
|
2023-06-28 06:43:13 +03:00
|
|
|
"useDefineForClassFields": false,
|
2022-12-30 16:40:15 +03:00
|
|
|
"experimentalDecorators": true,
|
2023-04-18 06:24:44 +03:00
|
|
|
"emitDecoratorMetadata": true,
|
2023-06-08 20:42:58 +03:00
|
|
|
|
|
|
|
// Projects
|
|
|
|
"composite": true,
|
|
|
|
"incremental": true,
|
|
|
|
|
|
|
|
// Completeness
|
|
|
|
"skipLibCheck": true, // skip all type checks for .d.ts files
|
2022-12-30 16:40:15 +03:00
|
|
|
"paths": {
|
2023-10-18 18:30:08 +03:00
|
|
|
"@affine/core/*": ["./packages/frontend/core/src/*"],
|
|
|
|
"@affine/cli/*": ["./tools/cli/src/*"],
|
|
|
|
"@affine/server/*": ["./packages/backend/server/src/*"],
|
|
|
|
"@affine/component": ["./packages/frontend/component/src/index"],
|
2023-06-01 12:08:14 +03:00
|
|
|
"@affine/component/*": [
|
2023-10-18 18:30:08 +03:00
|
|
|
"./packages/frontend/component/src/components/*/index",
|
|
|
|
"./packages/frontend/component/src/components/*"
|
2023-06-01 12:08:14 +03:00
|
|
|
],
|
2023-10-18 18:30:08 +03:00
|
|
|
"@affine/i18n": ["./packages/frontend/i18n/src"],
|
|
|
|
"@affine/i18n/hooks": ["./packages/frontend/i18n/src/i18n-generated"],
|
|
|
|
"@affine/debug": ["./packages/common/debug"],
|
|
|
|
"@affine/env": ["./packages/common/env/src"],
|
|
|
|
"@affine/env/*": ["./packages/common/env/src/*"],
|
|
|
|
"@affine/workspace/*": ["./packages/frontend/workspace/src/*"],
|
|
|
|
"@affine/graphql": ["./packages/frontend/graphql/src"],
|
|
|
|
"@affine/copilot": ["./packages/plugins/copilot/src"],
|
|
|
|
"@affine/copilot/*": ["./packages/plugins/copilot/src/*"],
|
|
|
|
"@affine/electron/scripts/*": ["./packages/frontend/electron/scripts/*"],
|
2023-04-25 06:12:48 +03:00
|
|
|
"@affine-test/kit/*": ["./tests/kit/*"],
|
2023-04-02 10:57:50 +03:00
|
|
|
"@affine-test/fixtures/*": ["./tests/fixtures/*"],
|
2023-10-18 18:30:08 +03:00
|
|
|
"@toeverything/y-indexeddb": ["./packages/common/y-indexeddb/src"],
|
|
|
|
"@toeverything/hooks/*": ["./packages/frontend/hooks/src/*"],
|
|
|
|
"@toeverything/infra/*": ["./packages/common/infra/src/*"],
|
|
|
|
"@affine/sdk/*": ["./packages/common/sdk/src/*"],
|
|
|
|
"@affine/native": ["./packages/frontend/native/index.d.ts"],
|
|
|
|
"@affine/native/*": ["./packages/frontend/native/*"],
|
|
|
|
"@affine/storage": ["./packages/backend/storage/index.d.ts"],
|
2023-06-09 06:42:54 +03:00
|
|
|
|
|
|
|
// Development only
|
2023-10-18 18:30:08 +03:00
|
|
|
"@affine/electron/*": ["./packages/frontend/electron/src/*"]
|
2022-12-30 16:40:15 +03:00
|
|
|
}
|
|
|
|
},
|
2023-05-31 15:49:56 +03:00
|
|
|
"include": [],
|
2023-02-17 05:43:52 +03:00
|
|
|
"references": [
|
2023-10-18 18:30:08 +03:00
|
|
|
// Backend
|
2023-02-17 05:43:52 +03:00
|
|
|
{
|
2023-10-18 18:30:08 +03:00
|
|
|
"path": "./packages/backend/server"
|
2023-04-25 02:53:36 +03:00
|
|
|
},
|
2023-04-28 02:02:05 +03:00
|
|
|
{
|
2023-10-18 18:30:08 +03:00
|
|
|
"path": "./packages/backend/server/tests"
|
2023-04-28 02:02:05 +03:00
|
|
|
},
|
2023-10-18 18:30:08 +03:00
|
|
|
// Frontend
|
2023-09-15 10:34:14 +03:00
|
|
|
{
|
2023-10-18 18:30:08 +03:00
|
|
|
"path": "./packages/frontend/component"
|
2023-09-15 10:34:14 +03:00
|
|
|
},
|
2023-06-28 15:29:52 +03:00
|
|
|
{
|
2023-10-18 18:30:08 +03:00
|
|
|
"path": "./packages/frontend/core"
|
2023-06-28 15:29:52 +03:00
|
|
|
},
|
2023-07-18 19:53:10 +03:00
|
|
|
{
|
2023-10-19 06:14:30 +03:00
|
|
|
"path": "./packages/frontend/electron/tsconfig.test.json"
|
2023-07-18 19:53:10 +03:00
|
|
|
},
|
2023-06-08 04:41:20 +03:00
|
|
|
{
|
2023-10-18 18:30:08 +03:00
|
|
|
"path": "./packages/frontend/graphql"
|
2023-06-08 04:41:20 +03:00
|
|
|
},
|
2023-02-18 05:08:52 +03:00
|
|
|
{
|
2023-10-18 18:30:08 +03:00
|
|
|
"path": "./packages/frontend/hooks"
|
2023-02-18 05:08:52 +03:00
|
|
|
},
|
2023-04-03 12:32:52 +03:00
|
|
|
{
|
2023-10-18 18:30:08 +03:00
|
|
|
"path": "./packages/frontend/i18n"
|
2023-04-03 12:32:52 +03:00
|
|
|
},
|
2023-06-09 11:43:46 +03:00
|
|
|
{
|
2023-10-18 18:30:08 +03:00
|
|
|
"path": "./packages/frontend/workspace"
|
2023-06-09 11:43:46 +03:00
|
|
|
},
|
2023-10-18 18:30:08 +03:00
|
|
|
// Common
|
2023-06-09 11:43:46 +03:00
|
|
|
{
|
2023-10-18 18:30:08 +03:00
|
|
|
"path": "./packages/common/cmdk"
|
2023-06-09 11:43:46 +03:00
|
|
|
},
|
2023-07-20 22:28:55 +03:00
|
|
|
{
|
2023-10-18 18:30:08 +03:00
|
|
|
"path": "./packages/common/debug"
|
2023-07-20 22:28:55 +03:00
|
|
|
},
|
2023-08-03 07:47:05 +03:00
|
|
|
{
|
2023-10-18 18:30:08 +03:00
|
|
|
"path": "./packages/common/env"
|
2023-08-03 07:47:05 +03:00
|
|
|
},
|
2023-08-06 06:59:14 +03:00
|
|
|
{
|
2023-10-18 18:30:08 +03:00
|
|
|
"path": "./packages/common/infra"
|
2023-08-06 06:59:14 +03:00
|
|
|
},
|
2023-07-18 19:53:10 +03:00
|
|
|
{
|
2023-10-18 18:30:08 +03:00
|
|
|
"path": "./packages/common/infra"
|
2023-07-18 19:53:10 +03:00
|
|
|
},
|
2023-07-30 21:10:45 +03:00
|
|
|
{
|
2023-10-18 18:30:08 +03:00
|
|
|
"path": "./packages/common/sdk"
|
2023-07-30 21:10:45 +03:00
|
|
|
},
|
2023-03-02 04:26:55 +03:00
|
|
|
{
|
2023-10-18 18:30:08 +03:00
|
|
|
"path": "./packages/common/y-indexeddb"
|
2023-03-22 01:39:13 +03:00
|
|
|
},
|
2023-10-18 18:30:08 +03:00
|
|
|
// Plugins
|
2023-04-25 05:13:52 +03:00
|
|
|
{
|
2023-10-18 18:30:08 +03:00
|
|
|
"path": "./packages/plugins/copilot"
|
2023-04-25 05:13:52 +03:00
|
|
|
},
|
2023-03-22 01:39:13 +03:00
|
|
|
{
|
2023-10-18 18:30:08 +03:00
|
|
|
"path": "./packages/plugins/hello-world"
|
2023-06-08 07:41:47 +03:00
|
|
|
},
|
|
|
|
{
|
2023-10-18 18:30:08 +03:00
|
|
|
"path": "./packages/plugins/image-preview"
|
2023-03-22 01:39:13 +03:00
|
|
|
},
|
|
|
|
{
|
2023-10-18 18:30:08 +03:00
|
|
|
"path": "./packages/plugins/vue-hello-world"
|
2023-03-24 00:29:29 +03:00
|
|
|
},
|
2023-10-18 18:30:08 +03:00
|
|
|
// Tools
|
2023-04-03 12:32:43 +03:00
|
|
|
{
|
2023-10-18 18:30:08 +03:00
|
|
|
"path": "./tools/cli"
|
2023-04-03 12:32:43 +03:00
|
|
|
},
|
2023-09-22 17:31:26 +03:00
|
|
|
{
|
2023-10-18 18:30:08 +03:00
|
|
|
"path": "./tools/plugin-cli"
|
2023-09-22 17:31:26 +03:00
|
|
|
},
|
2023-07-13 12:05:01 +03:00
|
|
|
// Tests
|
2023-04-25 06:12:48 +03:00
|
|
|
{
|
|
|
|
"path": "./tests/kit"
|
|
|
|
},
|
2023-04-18 08:07:03 +03:00
|
|
|
{
|
2023-10-18 18:30:08 +03:00
|
|
|
"path": "./tests/storybook"
|
2023-06-29 09:50:26 +03:00
|
|
|
},
|
2023-07-13 12:05:01 +03:00
|
|
|
{
|
|
|
|
"path": "./tests/affine-local"
|
|
|
|
},
|
2023-07-29 05:43:52 +03:00
|
|
|
{
|
|
|
|
"path": "./tests/affine-plugin"
|
|
|
|
},
|
2023-10-13 06:03:42 +03:00
|
|
|
{
|
|
|
|
"path": "./tests/affine-migration"
|
|
|
|
},
|
2023-06-29 09:50:26 +03:00
|
|
|
{
|
|
|
|
"path": "./tests/affine-legacy/0.7.0-canary.18"
|
2023-08-10 08:05:34 +03:00
|
|
|
},
|
2023-08-29 13:07:05 +03:00
|
|
|
{
|
2023-09-29 06:02:26 +03:00
|
|
|
"path": "./tests/affine-legacy/0.8.0-canary.7"
|
2023-08-29 13:07:05 +03:00
|
|
|
},
|
2023-09-17 23:26:06 +03:00
|
|
|
{
|
2023-09-29 06:02:26 +03:00
|
|
|
"path": "./tests/affine-cloud"
|
2023-09-17 23:26:06 +03:00
|
|
|
},
|
2023-08-10 08:05:34 +03:00
|
|
|
{
|
2023-09-29 06:02:26 +03:00
|
|
|
"path": "./tests/affine-desktop"
|
2023-09-06 10:44:53 +03:00
|
|
|
},
|
|
|
|
{
|
2023-09-29 06:02:26 +03:00
|
|
|
"path": "./tests/affine-legacy/0.8.4"
|
2023-10-18 18:30:08 +03:00
|
|
|
},
|
2023-11-13 13:00:40 +03:00
|
|
|
{
|
|
|
|
"path": "./tests/affine-legacy/0.6.1-beta.1"
|
|
|
|
},
|
2023-10-18 18:30:08 +03:00
|
|
|
// Others
|
|
|
|
{
|
|
|
|
"path": "./tsconfig.node.json"
|
2023-02-17 05:43:52 +03:00
|
|
|
}
|
|
|
|
],
|
2023-02-18 05:08:52 +03:00
|
|
|
"files": [],
|
2023-08-05 02:11:30 +03:00
|
|
|
"exclude": ["node_modules", "target", "lib", "test-results"],
|
|
|
|
"ts-node": {
|
2023-10-21 03:28:04 +03:00
|
|
|
"esm": true,
|
2023-08-05 02:11:30 +03:00
|
|
|
"compilerOptions": {
|
|
|
|
"module": "ESNext",
|
|
|
|
"moduleResolution": "Node"
|
|
|
|
}
|
|
|
|
}
|
2022-12-30 16:40:15 +03:00
|
|
|
}
|