mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-04 00:28:33 +00:00
136 lines
5.7 KiB
JSON
136 lines
5.7 KiB
JSON
{
|
|
"compilerOptions": {
|
|
// Strictness
|
|
"strict": true,
|
|
"verbatimModuleSyntax": true,
|
|
"exactOptionalPropertyTypes": false,
|
|
"noFallthroughCasesInSwitch": true,
|
|
"noImplicitOverride": true,
|
|
"noImplicitReturns": true,
|
|
"noUnusedLocals": true,
|
|
"noUnusedParameters": true,
|
|
"noPropertyAccessFromIndexSignature": false,
|
|
"noUncheckedIndexedAccess": false,
|
|
"skipLibCheck": true,
|
|
|
|
// Modules
|
|
"module": "ESNext",
|
|
"moduleResolution": "bundler",
|
|
"resolveJsonModule": true,
|
|
"typeRoots": ["./tools/@types", "./node_modules/@types"],
|
|
|
|
// Emit
|
|
"lib": ["ES2024"],
|
|
"target": "ES2024",
|
|
"useDefineForClassFields": false,
|
|
"declaration": true,
|
|
"declarationMap": true,
|
|
"sourceMap": true,
|
|
"importsNotUsedAsValues": "remove",
|
|
|
|
// Interop Constraints
|
|
"forceConsistentCasingInFileNames": true,
|
|
"allowSyntheticDefaultImports": true,
|
|
"isolatedModules": true,
|
|
|
|
// Composite
|
|
"composite": true,
|
|
|
|
// NOTE(@forehalo):
|
|
// We now "fully" resolve package exports by standard "exports" field in package.json
|
|
// but core's exports are lit bit complex, so we left it here and will fix it when repos reorganization is done
|
|
"paths": {
|
|
"@affine/core/*": ["./packages/frontend/core/src/*"]
|
|
}
|
|
},
|
|
"include": [],
|
|
"files": [],
|
|
"exclude": ["node_modules", "target", "dist", "lib"],
|
|
// NOTE(@forehalo):
|
|
// The references are generated by the cli, do not modify it manually
|
|
// COMMAND: `yarn affine init`
|
|
"references": [
|
|
{ "path": "./blocksuite/affine/all" },
|
|
{ "path": "./blocksuite/affine/blocks/block-attachment" },
|
|
{ "path": "./blocksuite/affine/blocks/block-bookmark" },
|
|
{ "path": "./blocksuite/affine/blocks/block-callout" },
|
|
{ "path": "./blocksuite/affine/blocks/block-code" },
|
|
{ "path": "./blocksuite/affine/blocks/block-data-view" },
|
|
{ "path": "./blocksuite/affine/blocks/block-database" },
|
|
{ "path": "./blocksuite/affine/blocks/block-divider" },
|
|
{ "path": "./blocksuite/affine/blocks/block-edgeless-text" },
|
|
{ "path": "./blocksuite/affine/blocks/block-embed" },
|
|
{ "path": "./blocksuite/affine/blocks/block-frame" },
|
|
{ "path": "./blocksuite/affine/blocks/block-image" },
|
|
{ "path": "./blocksuite/affine/blocks/block-latex" },
|
|
{ "path": "./blocksuite/affine/blocks/block-list" },
|
|
{ "path": "./blocksuite/affine/blocks/block-note" },
|
|
{ "path": "./blocksuite/affine/blocks/block-paragraph" },
|
|
{ "path": "./blocksuite/affine/blocks/block-root" },
|
|
{ "path": "./blocksuite/affine/blocks/block-surface" },
|
|
{ "path": "./blocksuite/affine/blocks/block-surface-ref" },
|
|
{ "path": "./blocksuite/affine/blocks/block-table" },
|
|
{ "path": "./blocksuite/affine/components" },
|
|
{ "path": "./blocksuite/affine/data-view" },
|
|
{ "path": "./blocksuite/affine/fragments/fragment-doc-title" },
|
|
{ "path": "./blocksuite/affine/fragments/fragment-frame-panel" },
|
|
{ "path": "./blocksuite/affine/fragments/fragment-outline" },
|
|
{ "path": "./blocksuite/affine/gfx/text" },
|
|
{ "path": "./blocksuite/affine/gfx/turbo-renderer" },
|
|
{ "path": "./blocksuite/affine/inlines/footnote" },
|
|
{ "path": "./blocksuite/affine/inlines/link" },
|
|
{ "path": "./blocksuite/affine/inlines/preset" },
|
|
{ "path": "./blocksuite/affine/inlines/reference" },
|
|
{ "path": "./blocksuite/affine/model" },
|
|
{ "path": "./blocksuite/affine/rich-text" },
|
|
{ "path": "./blocksuite/affine/shared" },
|
|
{ "path": "./blocksuite/affine/widgets/widget-drag-handle" },
|
|
{ "path": "./blocksuite/affine/widgets/widget-edgeless-auto-connect" },
|
|
{ "path": "./blocksuite/affine/widgets/widget-frame-title" },
|
|
{ "path": "./blocksuite/affine/widgets/widget-remote-selection" },
|
|
{ "path": "./blocksuite/affine/widgets/widget-scroll-anchoring" },
|
|
{ "path": "./blocksuite/affine/widgets/widget-slash-menu" },
|
|
{ "path": "./blocksuite/affine/widgets/widget-toolbar" },
|
|
{ "path": "./blocksuite/docs" },
|
|
{ "path": "./blocksuite/framework/block-std" },
|
|
{ "path": "./blocksuite/framework/global" },
|
|
{ "path": "./blocksuite/framework/store" },
|
|
{ "path": "./blocksuite/framework/sync" },
|
|
{ "path": "./blocksuite/integration-test" },
|
|
{ "path": "./blocksuite/playground" },
|
|
{ "path": "./packages/backend/native" },
|
|
{ "path": "./packages/backend/server" },
|
|
{ "path": "./packages/common/debug" },
|
|
{ "path": "./packages/common/env" },
|
|
{ "path": "./packages/common/error" },
|
|
{ "path": "./packages/common/graphql" },
|
|
{ "path": "./packages/common/infra" },
|
|
{ "path": "./packages/common/nbstore" },
|
|
{ "path": "./packages/frontend/admin" },
|
|
{ "path": "./packages/frontend/apps/android" },
|
|
{ "path": "./packages/frontend/apps/electron" },
|
|
{ "path": "./packages/frontend/apps/electron-renderer" },
|
|
{ "path": "./packages/frontend/apps/ios" },
|
|
{ "path": "./packages/frontend/apps/mobile" },
|
|
{ "path": "./packages/frontend/apps/web" },
|
|
{ "path": "./packages/frontend/component" },
|
|
{ "path": "./packages/frontend/core" },
|
|
{ "path": "./packages/frontend/electron-api" },
|
|
{ "path": "./packages/frontend/i18n" },
|
|
{ "path": "./packages/frontend/media-capture-playground" },
|
|
{ "path": "./packages/frontend/native" },
|
|
{ "path": "./packages/frontend/track" },
|
|
{ "path": "./tests/affine-cloud" },
|
|
{ "path": "./tests/affine-cloud-copilot" },
|
|
{ "path": "./tests/affine-desktop" },
|
|
{ "path": "./tests/affine-desktop-cloud" },
|
|
{ "path": "./tests/affine-local" },
|
|
{ "path": "./tests/affine-mobile" },
|
|
{ "path": "./tests/blocksuite" },
|
|
{ "path": "./tests/kit" },
|
|
{ "path": "./tools/cli" },
|
|
{ "path": "./tools/playstore-auto-bump" },
|
|
{ "path": "./tools/utils" }
|
|
]
|
|
}
|