There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
style: imporve tsconfig (#4358)
LongYinanaa3b97b05644
diff --git a/apps/core/src/utils/user-setting.ts b/apps/core/src/utils/user-setting.tsindex 06122f99d3..8e4ced7f73 100644--- a/apps/core/src/utils/user-setting.ts+++ b/apps/core/src/utils/user-setting.ts@@ -164,7 +164,7 @@ const pageCollectionBaseAtom = atomWithObservable<Collection[]>(get => {export const currentCollectionsAtom: CollectionsAtom = atom(get => get(pageCollectionBaseAtom),- async (get, set, apply) => {+ async (get, _, apply) => {const collections = await get(pageCollectionBaseAtom);let newCollections: Collection[];if (typeof apply === 'function') {diff --git a/packages/component/src/components/page-list/__tests__/use-all-page-setting.spec.ts b/packages/component/src/components/page-list/__tests__/use-all-page-setting.spec.tsindex 4e083b0954..ef21a293cd 100644--- a/packages/component/src/components/page-list/__tests__/use-all-page-setting.spec.ts+++ b/packages/component/src/components/page-list/__tests__/use-all-page-setting.spec.ts@@ -20,7 +20,7 @@ const baseAtom = atom<Collection[]>([]);const mockAtom: CollectionsAtom = atom(get => get(baseAtom),- async (get, set, update) => {+ async (_, set, update) => {set(baseAtom, update);});diff --git a/tsconfig.json b/tsconfig.jsonindex 0da03a3fae..1f1b9668ac 100644--- a/tsconfig.json+++ b/tsconfig.json@@ -5,16 +5,16 @@// Type Checking"strict": true,- // exactOptionalPropertyTypes: false,+ "exactOptionalPropertyTypes": false,"noFallthroughCasesInSwitch": true,"noImplicitAny": true,"noImplicitOverride": true,"noImplicitReturns": true,"noImplicitThis": true,- // "noUnusedLocals": true,- // "noUnusedParameters": true,- // noPropertyAccessFromIndexSignature: false,- // noUncheckedIndexedAccess: false,+ "noUnusedLocals": true,+ "noUnusedParameters": true,+ "noPropertyAccessFromIndexSignature": false,+ "noUncheckedIndexedAccess": false,"useUnknownInCatchVariables": true,// Modules