Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tomekzaw committed Aug 30, 2024
1 parent 3f2eb74 commit f58f124
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,11 @@ function getRuntime() {
if ('HermesInternal' in global) {
const version =
// @ts-expect-error this is fine
// eslint-disable-next-line es/no-optional-chaining
global.HermesInternal?.getRuntimeProperties?.()['OSS Release Version'];
return `Hermes (${version})`;
}
if ('_v8runtime' in global) {
// @ts-expect-error this is fine
// eslint-disable-next-line no-underscore-dangle
const version = global._v8runtime().version;
return `V8 (${version})`;
}
Expand Down Expand Up @@ -96,7 +94,7 @@ export default function App() {
ref={ref}
markdownStyle={markdownStyle}
placeholder="Type here..."
onSelectionChange={(e) => setSelection(e.nativeEvent.selection)}
onSelectionChange={e => setSelection(e.nativeEvent.selection)}
selection={selection}
id={TEST_CONST.INPUT_ID}
/>
Expand Down

0 comments on commit f58f124

Please sign in to comment.