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-06-08 20:42:58 +03:00
|
|
|
// exactOptionalPropertyTypes: false,
|
|
|
|
"noFallthroughCasesInSwitch": true,
|
|
|
|
"noImplicitAny": true,
|
|
|
|
"noImplicitOverride": true,
|
|
|
|
"noImplicitReturns": true,
|
|
|
|
"noImplicitThis": true,
|
|
|
|
// noPropertyAccessFromIndexSignature: false,
|
|
|
|
// noUncheckedIndexedAccess: false,
|
|
|
|
// noUnusedLocals: false,
|
|
|
|
// noUnusedParameters: false,
|
|
|
|
"useUnknownInCatchVariables": true,
|
|
|
|
|
|
|
|
// Modules
|
|
|
|
"module": "ES2022",
|
|
|
|
"moduleResolution": "Node",
|
2022-12-30 16:40:15 +03:00
|
|
|
"resolveJsonModule": true,
|
2023-06-08 07:41:47 +03:00
|
|
|
|
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,
|
|
|
|
|
|
|
|
// Language and Environment
|
|
|
|
"jsx": "react-jsx",
|
|
|
|
"lib": ["ES2023", "DOM", "DOM.Iterable"],
|
|
|
|
"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-07-18 19:53:10 +03:00
|
|
|
"@affine/cli/*": ["./packages/cli/src/*"],
|
2023-02-18 05:08:52 +03:00
|
|
|
"@affine/component": ["./packages/component/src/index"],
|
2023-06-01 12:08:14 +03:00
|
|
|
"@affine/component/*": [
|
|
|
|
"./packages/component/src/components/*/index",
|
|
|
|
"./packages/component/src/components/*"
|
|
|
|
],
|
2023-02-18 05:08:52 +03:00
|
|
|
"@affine/i18n": ["./packages/i18n/src"],
|
2023-05-09 01:37:07 +03:00
|
|
|
"@affine/i18n/hooks": ["./packages/i18n/src/i18n-generated"],
|
2023-03-02 04:26:55 +03:00
|
|
|
"@affine/debug": ["./packages/debug"],
|
2023-03-31 20:40:30 +03:00
|
|
|
"@affine/jotai": ["./packages/jotai"],
|
2023-06-08 04:41:20 +03:00
|
|
|
"@affine/env": ["./packages/env/src"],
|
2023-03-23 19:17:38 +03:00
|
|
|
"@affine/env/*": ["./packages/env/src/*"],
|
|
|
|
"@affine/utils": ["./packages/utils"],
|
2023-03-24 00:29:29 +03:00
|
|
|
"@affine/workspace/*": ["./packages/workspace/src/*"],
|
2023-04-25 05:13:52 +03:00
|
|
|
"@affine/graphql": ["./packages/graphql/src"],
|
2023-05-30 13:02:49 +03:00
|
|
|
"@affine/copilot": ["./plugins/copilot/src"],
|
|
|
|
"@affine/copilot/*": ["./plugins/copilot/src/*"],
|
2023-06-09 06:42:54 +03:00
|
|
|
"@affine/electron/scripts/*": ["./apps/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-04-03 12:32:52 +03:00
|
|
|
"@toeverything/y-indexeddb": ["./packages/y-indexeddb/src"],
|
2023-05-17 07:36:51 +03:00
|
|
|
"@toeverything/hooks/*": ["./packages/hooks/src/*"],
|
2023-07-19 07:30:04 +03:00
|
|
|
"@toeverything/infra/*": ["./packages/infra/src/*"],
|
2023-05-30 13:02:49 +03:00
|
|
|
"@toeverything/plugin-infra/*": ["./packages/plugin-infra/src/*"],
|
2023-05-17 07:36:51 +03:00
|
|
|
"@affine/native": ["./packages/native/index.d.ts"],
|
2023-06-09 06:42:54 +03:00
|
|
|
"@affine/native/*": ["./packages/native/*"],
|
2023-06-29 04:45:45 +03:00
|
|
|
"@affine/storage": ["./packages/storage/index.d.ts"],
|
2023-06-09 06:42:54 +03:00
|
|
|
|
|
|
|
// Development only
|
2023-06-13 05:01:43 +03:00
|
|
|
"@affine/electron/*": ["./apps/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-06-08 07:41:47 +03:00
|
|
|
// Apps
|
2023-02-17 05:43:52 +03:00
|
|
|
{
|
2023-06-08 07:41:47 +03:00
|
|
|
"path": "./apps/electron"
|
2023-04-25 02:53:36 +03:00
|
|
|
},
|
2023-04-28 02:02:05 +03:00
|
|
|
{
|
|
|
|
"path": "./apps/server"
|
|
|
|
},
|
2023-06-28 15:29:52 +03:00
|
|
|
{
|
|
|
|
"path": "./apps/storybook"
|
|
|
|
},
|
2023-07-18 19:53:10 +03:00
|
|
|
{
|
|
|
|
"path": "./apps/core"
|
|
|
|
},
|
2023-06-08 07:41:47 +03:00
|
|
|
// Top level packages
|
2023-06-08 04:41:20 +03:00
|
|
|
{
|
|
|
|
"path": "./packages/infra"
|
|
|
|
},
|
2023-02-18 05:08:52 +03:00
|
|
|
{
|
2023-06-08 07:41:47 +03:00
|
|
|
"path": "./packages/graphql"
|
2023-02-18 05:08:52 +03:00
|
|
|
},
|
2023-04-03 12:32:52 +03:00
|
|
|
{
|
2023-06-08 07:41:47 +03:00
|
|
|
"path": "./packages/debug"
|
2023-04-03 12:32:52 +03:00
|
|
|
},
|
2023-06-09 11:43:46 +03:00
|
|
|
// Plugins
|
|
|
|
{
|
|
|
|
"path": "./packages/plugin-infra"
|
|
|
|
},
|
2023-07-20 22:28:55 +03:00
|
|
|
{
|
|
|
|
"path": "./plugins/bookmark"
|
|
|
|
},
|
2023-06-09 11:43:46 +03:00
|
|
|
{
|
|
|
|
"path": "./plugins/copilot"
|
|
|
|
},
|
2023-07-20 22:28:55 +03:00
|
|
|
{
|
|
|
|
"path": "./plugins/hello-world"
|
|
|
|
},
|
2023-07-13 12:05:01 +03:00
|
|
|
// Packages
|
2023-07-18 19:53:10 +03:00
|
|
|
{
|
|
|
|
"path": "./packages/cli"
|
|
|
|
},
|
2023-03-02 04:26:55 +03:00
|
|
|
{
|
2023-06-08 07:41:47 +03:00
|
|
|
"path": "./packages/component"
|
2023-03-22 01:39:13 +03:00
|
|
|
},
|
2023-04-25 05:13:52 +03:00
|
|
|
{
|
2023-06-08 07:41:47 +03:00
|
|
|
"path": "./packages/hooks"
|
2023-04-25 05:13:52 +03:00
|
|
|
},
|
2023-03-22 01:39:13 +03:00
|
|
|
{
|
2023-06-08 07:41:47 +03:00
|
|
|
"path": "./packages/i18n"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"path": "./packages/env"
|
2023-03-22 01:39:13 +03:00
|
|
|
},
|
|
|
|
{
|
2023-03-23 19:17:38 +03:00
|
|
|
"path": "./packages/workspace"
|
2023-03-24 00:29:29 +03:00
|
|
|
},
|
2023-04-03 12:32:43 +03:00
|
|
|
{
|
|
|
|
"path": "./packages/y-indexeddb"
|
|
|
|
},
|
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
|
|
|
{
|
|
|
|
"path": "./tsconfig.node.json"
|
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-06-29 09:50:26 +03:00
|
|
|
{
|
|
|
|
"path": "./tests/affine-legacy/0.7.0-canary.18"
|
2023-02-17 05:43:52 +03:00
|
|
|
}
|
|
|
|
],
|
2023-02-18 05:08:52 +03:00
|
|
|
"files": [],
|
2023-06-09 06:42:54 +03:00
|
|
|
"exclude": ["node_modules", "target", "lib", "test-results"]
|
2022-12-30 16:40:15 +03:00
|
|
|
}
|