AFFiNE/tsconfig.json

191 lines
4.6 KiB
JSON
Raw Normal View History

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