Skip to content

Commit da97014

Browse files
committed
Missing const, eslint
1 parent 238a7ba commit da97014

3 files changed

Lines changed: 6 additions & 1 deletion

File tree

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
export const DOWNLOAD_EVENT_ENDPOINT =
22
'https://ai.swmansion.com/telemetry/downloads/api/downloads';
3+
4+
// eslint-disable-next-line @typescript-eslint/no-var-requires
5+
export const LIB_VERSION: string = require('../../package.json').version;

packages/react-native-executorch/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ declare global {
105105
symbols: string,
106106
independentCharacters?: boolean
107107
) => Promise<any>;
108+
// eslint-disable-next-line camelcase
108109
var __rne_isEmulator: () => boolean;
109110
}
110111
// eslint-disable no-var
@@ -126,6 +127,7 @@ if (
126127
global.loadTextToSpeechKokoro == null ||
127128
global.loadOCR == null ||
128129
global.loadVerticalOCR == null ||
130+
// eslint-disable-next-line camelcase
129131
global.__rne_isEmulator == null
130132
) {
131133
if (!ETInstallerNativeModule) {

packages/react-native-executorch/src/utils/ResourceFetcherUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { ResourceSource } from '..';
22
import { getModelNameForUrl } from '../constants/modelUrls';
3-
import { DOWNLOAD_EVENT_ENDPOINT } from '../constants/resourceFetcher';
3+
import { DOWNLOAD_EVENT_ENDPOINT, LIB_VERSION } from '../constants/resourceFetcher';
44

55
/**
66
* Http status codes

0 commit comments

Comments
 (0)