File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,8 @@ module.exports = {
51
51
} ,
52
52
rules : {
53
53
'@typescript-eslint/no-floating-promises' : 'error' ,
54
+ 'no-use-before-define' : 'off' ,
55
+ '@typescript-eslint/no-use-before-define' : 'error' ,
54
56
} ,
55
57
} ,
56
58
{
Original file line number Diff line number Diff line change @@ -176,8 +176,7 @@ export class PluginContext {
176
176
return this . constants . NETLIFY_BUILD_VERSION || 'v0.0.0'
177
177
}
178
178
179
- // eslint-disable-next-line no-invalid-this
180
- #useFrameworksAPI: typeof this . useFrameworksAPI | null = null
179
+ #useFrameworksAPI: PluginContext [ 'useFrameworksAPI' ] | null = null
181
180
get useFrameworksAPI ( ) : boolean {
182
181
if ( this . #useFrameworksAPI === null ) {
183
182
// 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 {
190
189
return this . #useFrameworksAPI
191
190
}
192
191
193
- // eslint-disable-next-line no-invalid-this
194
- #blobsStrategy: typeof this . blobsStrategy | null = null
192
+ #blobsStrategy: PluginContext [ 'blobsStrategy' ] | null = null
195
193
get blobsStrategy ( ) : 'legacy' | 'regional' | 'frameworks-api' {
196
194
if ( this . #blobsStrategy === null ) {
197
195
if ( this . useFrameworksAPI ) {
@@ -205,7 +203,6 @@ export class PluginContext {
205
203
? 'regional'
206
204
: 'legacy'
207
205
}
208
- //
209
206
}
210
207
211
208
return this . #blobsStrategy
You can’t perform that action at this time.
0 commit comments