chore: standardize tsconfig (#9568)

This commit is contained in:
forehalo
2025-01-08 04:07:56 +00:00
parent 39f4b17315
commit c0ed74dfed
151 changed files with 1041 additions and 1566 deletions
@@ -1,5 +1,5 @@
import { Loading } from '@affine/component';
import { globalLoadingEventsAtom } from '@affine/component/global-loading/index.jotai';
import { globalLoadingEventsAtom } from '@affine/component/global-loading';
import { useAtomValue } from 'jotai';
import { type ReactNode, useEffect, useState } from 'react';
@@ -1,4 +1,4 @@
/* eslint-disable @typescript-eslint/no-non-null-assertion */
/* oxlint-disable @typescript-eslint/no-non-null-assertion */
import { Entity } from '@toeverything/infra';
import type { DesktopApiProvider } from '../provider';
@@ -1,5 +1,5 @@
import type { AppInfo } from '@affine/electron/preload/electron-api';
import type {
AppInfo,
ClientEvents,
ClientHandler,
SharedStorage,
+13 -27
View File
@@ -1,33 +1,19 @@
{
"extends": "../../../tsconfig.json",
"extends": "../../../tsconfig.web.json",
"compilerOptions": {
"outDir": "lib",
"typeRoots": ["../../../node_modules", "../../../node_modules/@types"],
"types": ["webpack-env", "ses", "affine__env"]
"rootDir": "./src",
"outDir": "./dist",
"tsBuildInfoFile": "./dist/tsconfig.tsbuildinfo"
},
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.json"],
"exclude": ["node_modules"],
"include": ["./src", "src/**/*.json"],
"references": [
{
"path": "../../frontend/component"
},
{
"path": "../../frontend/graphql"
},
{
"path": "../../frontend/i18n"
},
{
"path": "../../frontend/electron-api"
},
{
"path": "../../common/debug"
},
{
"path": "../../common/env"
},
{
"path": "../../../blocksuite/affine/all"
}
{ "path": "../component" },
{ "path": "../../common/debug" },
{ "path": "../electron-api" },
{ "path": "../../common/env" },
{ "path": "../graphql" },
{ "path": "../i18n" },
{ "path": "../track" },
{ "path": "../../../blocksuite/affine/all" }
]
}