Skip to content

Commit be54f97

Browse files
committed
chore: run prettier lint
1 parent fac6a24 commit be54f97

File tree

18 files changed

+10
-32
lines changed

18 files changed

+10
-32
lines changed

.github/workflows/lint.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ jobs:
2626
run: npm ci --no-audit
2727

2828
- name: Lint
29-
run: npm run lint
29+
run: npm run lint

eslint_temporary_suppressions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,5 +91,5 @@ export default [
9191
rules: {
9292
'@typescript-eslint/no-empty-object-type': 'off',
9393
},
94-
}
94+
},
9595
]

packages/blobs/src/store.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export class Store {
107107
async get(key: string, opts: GetOptions): Promise<string>
108108
async get(key: string, { type }: GetOptions & { type: 'arrayBuffer' }): Promise<ArrayBuffer>
109109
async get(key: string, { type }: GetOptions & { type: 'blob' }): Promise<Blob>
110-
110+
111111
async get(key: string, { type }: GetOptions & { type: 'json' }): Promise<any>
112112
async get(key: string, { type }: GetOptions & { type: 'stream' }): Promise<ReadableStream>
113113
async get(key: string, { type }: GetOptions & { type: 'text' }): Promise<string>
@@ -185,15 +185,11 @@ export class Store {
185185
options: { type: 'blob' } & GetWithMetadataOptions,
186186
): Promise<({ data: Blob } & GetWithMetadataResult) | null>
187187

188-
189-
190188
async getWithMetadata(
191189
key: string,
192190
options: { type: 'json' } & GetWithMetadataOptions,
193191
): Promise<({ data: any } & GetWithMetadataResult) | null>
194192

195-
196-
197193
async getWithMetadata(
198194
key: string,
199195
options: { type: 'stream' } & GetWithMetadataOptions,

packages/blobs/test/util.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ export const base64Encode = (input: string | object) => {
77
}
88

99
export const streamToString = async function streamToString(stream: NodeJS.ReadableStream): Promise<string> {
10-
1110
const chunks: Array<any> = []
1211

1312
for await (const chunk of stream) {

packages/cache/src/bootstrap/cache.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ export class NetlifyCache implements Cache {
101101
await Promise.allSettled(requests.map((request) => this.add(request)))
102102
}
103103

104-
105104
async delete(request: RequestInfo | URL) {
106105
const context = this.#getContext({ operation: Operation.Delete })
107106

packages/dev-utils/src/lib/global-config.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,11 @@ import { sync as writeFileAtomicSync } from 'write-file-atomic'
88

99
import { getLegacyPathInHome, getPathInHome } from './paths.js'
1010

11-
type ConfigStoreOptions<
12-
13-
T extends Record<string, any>,
14-
> = {
11+
type ConfigStoreOptions<T extends Record<string, any>> = {
1512
defaults?: T | undefined
1613
}
1714

18-
export class GlobalConfigStore<
19-
20-
T extends Record<string, any> = Record<string, any>,
21-
> {
15+
export class GlobalConfigStore<T extends Record<string, any> = Record<string, any>> {
2216
#storagePath: string
2317

2418
public constructor(options: ConfigStoreOptions<T> = {}) {
@@ -41,7 +35,6 @@ export class GlobalConfigStore<
4135
}
4236

4337
public get(key: string): T[typeof key] {
44-
4538
return dot.getProperty(this.getConfig(), key)
4639
}
4740

packages/dev-utils/src/lib/local-state.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export class LocalState {
8787
// TODO figure out cleaner way of grabbing ENV vars
8888
return process.env.NETLIFY_SITE_ID
8989
}
90-
90+
9191
return getProperty(this.all, key)
9292
}
9393

packages/dev-utils/src/lib/memoize.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ interface MemoizeOptions<T> {
2222
// This allows us to discard any duplicate filesystem events, while ensuring
2323
// that actual updates happening during the zip operation will be executed
2424
// after it finishes (only the last update will run).
25-
25+
2626
export const memoize = <T>({ cache, cacheKey, command }: MemoizeOptions<T>) => {
2727
if (cache[cacheKey] === undefined) {
2828
cache[cacheKey] = {
@@ -43,4 +43,3 @@ export const memoize = <T>({ cache, cacheKey, command }: MemoizeOptions<T>) => {
4343

4444
return cache[cacheKey].task
4545
}
46-

packages/dev-utils/src/test/fetch.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ export class MockFetch {
6464
}
6565

6666
get fetch() {
67-
6867
return async (...args: Parameters<typeof globalThis.fetch>) => {
6968
const [reqOrURL, options] = args
7069
const url = (reqOrURL instanceof Request ? reqOrURL.url : reqOrURL).toString()

packages/functions/dev/function.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,6 @@ export class NetlifyFunction {
185185
return null
186186
}
187187

188-
189188
return getNextRun(this.schedule!)
190189
}
191190

0 commit comments

Comments
 (0)