style: imporve tsconfig (#4358)
This commit is contained in:
@@ -164,7 +164,7 @@ const pageCollectionBaseAtom = atomWithObservable<Collection[]>(get => {
|
|||||||
|
|
||||||
export const currentCollectionsAtom: CollectionsAtom = atom(
|
export const currentCollectionsAtom: CollectionsAtom = atom(
|
||||||
get => get(pageCollectionBaseAtom),
|
get => get(pageCollectionBaseAtom),
|
||||||
async (get, set, apply) => {
|
async (get, _, apply) => {
|
||||||
const collections = await get(pageCollectionBaseAtom);
|
const collections = await get(pageCollectionBaseAtom);
|
||||||
let newCollections: Collection[];
|
let newCollections: Collection[];
|
||||||
if (typeof apply === 'function') {
|
if (typeof apply === 'function') {
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ const baseAtom = atom<Collection[]>([]);
|
|||||||
|
|
||||||
const mockAtom: CollectionsAtom = atom(
|
const mockAtom: CollectionsAtom = atom(
|
||||||
get => get(baseAtom),
|
get => get(baseAtom),
|
||||||
async (get, set, update) => {
|
async (_, set, update) => {
|
||||||
set(baseAtom, update);
|
set(baseAtom, update);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -5,16 +5,16 @@
|
|||||||
|
|
||||||
// Type Checking
|
// Type Checking
|
||||||
"strict": true,
|
"strict": true,
|
||||||
// exactOptionalPropertyTypes: false,
|
"exactOptionalPropertyTypes": false,
|
||||||
"noFallthroughCasesInSwitch": true,
|
"noFallthroughCasesInSwitch": true,
|
||||||
"noImplicitAny": true,
|
"noImplicitAny": true,
|
||||||
"noImplicitOverride": true,
|
"noImplicitOverride": true,
|
||||||
"noImplicitReturns": true,
|
"noImplicitReturns": true,
|
||||||
"noImplicitThis": true,
|
"noImplicitThis": true,
|
||||||
// "noUnusedLocals": true,
|
"noUnusedLocals": true,
|
||||||
// "noUnusedParameters": true,
|
"noUnusedParameters": true,
|
||||||
// noPropertyAccessFromIndexSignature: false,
|
"noPropertyAccessFromIndexSignature": false,
|
||||||
// noUncheckedIndexedAccess: false,
|
"noUncheckedIndexedAccess": false,
|
||||||
"useUnknownInCatchVariables": true,
|
"useUnknownInCatchVariables": true,
|
||||||
|
|
||||||
// Modules
|
// Modules
|
||||||
|
|||||||
Reference in New Issue
Block a user