chore: Apply linting rules and add git hok (#611)

Co-authored-by: Fredrik Burmester <fredrik.burmester@gmail.com>
This commit is contained in:
lostb1t
2025-03-16 18:01:12 +01:00
committed by GitHub
parent 2688e1b981
commit 92513e234f
268 changed files with 9197 additions and 8394 deletions

View File

@@ -16,12 +16,12 @@ function withRNBackgroundDownloader(expoConfig) {
// Find the index of the AppDelegate import statement
const importIndex = appDelegateLines.findIndex((line) =>
/^#import "AppDelegate.h"/.test(line)
/^#import "AppDelegate.h"/.test(line),
);
// Find the index of the last line before the @end statement
const endStatementIndex = appDelegateLines.findIndex((line) =>
/@end/.test(line)
/@end/.test(line),
);
// Insert the import statement if it's not already present
@@ -34,7 +34,7 @@ function withRNBackgroundDownloader(expoConfig) {
appDelegateLines.splice(
endStatementIndex,
0,
backgroundDownloaderDelegate
backgroundDownloaderDelegate,
);
}