Skip to content

Commit 9864c7c

Browse files
committed
don't introduce eslint disables
1 parent 3f27a9a commit 9864c7c

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.eslintrc.cjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ module.exports = {
5151
},
5252
rules: {
5353
'@typescript-eslint/no-floating-promises': 'error',
54+
'no-use-before-define': 'off',
55+
'@typescript-eslint/no-use-before-define': 'error',
5456
},
5557
},
5658
{

src/build/plugin-context.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,7 @@ export class PluginContext {
176176
return this.constants.NETLIFY_BUILD_VERSION || 'v0.0.0'
177177
}
178178

179-
// eslint-disable-next-line no-invalid-this
180-
#useFrameworksAPI: typeof this.useFrameworksAPI | null = null
179+
#useFrameworksAPI: PluginContext['useFrameworksAPI'] | null = null
181180
get useFrameworksAPI(): boolean {
182181
if (this.#useFrameworksAPI === null) {
183182
// Defining RegExp pattern in edge function inline config is only supported since Build 29.50.5 / CLI 17.32.1
@@ -190,8 +189,7 @@ export class PluginContext {
190189
return this.#useFrameworksAPI
191190
}
192191

193-
// eslint-disable-next-line no-invalid-this
194-
#blobsStrategy: typeof this.blobsStrategy | null = null
192+
#blobsStrategy: PluginContext['blobsStrategy'] | null = null
195193
get blobsStrategy(): 'legacy' | 'regional' | 'frameworks-api' {
196194
if (this.#blobsStrategy === null) {
197195
if (this.useFrameworksAPI) {
@@ -205,7 +203,6 @@ export class PluginContext {
205203
? 'regional'
206204
: 'legacy'
207205
}
208-
//
209206
}
210207

211208
return this.#blobsStrategy

0 commit comments

Comments
 (0)