Skip to content

Commit

Permalink
refactor: apply biome lint
Browse files Browse the repository at this point in the history
  • Loading branch information
negezor committed Apr 10, 2024
1 parent a0524e6 commit 2c26185
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/cacher/src/adapters/memory.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IAdapter, IAdapterIncrementOptions, IAdapterSetOptions } from './adapter';
import type { IAdapter, IAdapterIncrementOptions, IAdapterSetOptions } from './adapter';

export interface IMapLike<K, V> {
get(key: K): V | undefined;
Expand Down
3 changes: 2 additions & 1 deletion packages/cacher/src/adapters/union.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {
import type {
IAdapter,
IAdapterIncrementOptions,
IAdapterSetOptions,
Expand Down Expand Up @@ -74,6 +74,7 @@ export class UnionAdapter implements IAdapter {
return firstItems.map(item => (
item !== undefined
? item
// biome-ignore lint/suspicious/noAssignInExpressions: this is simple
: secondResult[index += 1]
));
}
Expand Down
5 changes: 3 additions & 2 deletions packages/cacher/src/cacher.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { IAdapter, MemoryAdapter } from './adapters';
import {
import { type IAdapter, MemoryAdapter } from './adapters';
import type {
ICacherOptions,
ICacherGetOptions,
ICacherSetOptions,
Expand All @@ -13,6 +13,7 @@ import {
} from './types';
import { arraify } from './helpers';

// biome-ignore lint/suspicious/noExplicitAny: by default any is simple for usage
export class Cacher<V = any> {
protected adapter: IAdapter;

Expand Down
2 changes: 1 addition & 1 deletion packages/cacher/src/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IAdapter, IAdapterTouchOptions } from './adapters';
import type { IAdapter, IAdapterTouchOptions } from './adapters';

export type AllowArray<T> = T | T[];

Expand Down
2 changes: 1 addition & 1 deletion packages/redis/src/redis.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import IORedis from 'ioredis';

import {
import type {
IAdapter,
IAdapterIncrementOptions,
IAdapterSetOptions,
Expand Down

0 comments on commit 2c26185

Please sign in to comment.