mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-20 03:26:47 +08:00
style: imporve tsconfig (#4358)
This commit is contained in:
@@ -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') {
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
);
|
||||
|
||||
+5
-5
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user