style: imporve tsconfig (#4358)

This commit is contained in:
LongYinan
2023-09-14 01:47:15 -07:00
committed by GitHub
parent 8fb0620bc8
commit aa3b97b056
3 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -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
View File
@@ -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