Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
felixhabib committed Mar 6, 2025
1 parent f77119a commit e20d06e
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/Playroom/CodeEditor/keymaps/comment.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import type CodeMirror from 'codemirror';
import { type Editor, Pos } from 'codemirror';
import type { Selection } from './types';

Expand Down
1 change: 0 additions & 1 deletion src/Playroom/CodeEditor/keymaps/wrap.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import type CodeMirror from 'codemirror';
import { type Editor, Pos } from 'codemirror';
import type { Selection } from './types';

Expand Down
1 change: 0 additions & 1 deletion src/Playroom/Frame.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import type React from 'react';
import type { ReactNode } from 'react';
import { useParams } from '../utils/params';
import CatchErrors from './CatchErrors/CatchErrors';
Expand Down
5 changes: 3 additions & 2 deletions src/render.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import ReactDOM, { version as reactDomVersion } from 'react-dom';

// Uses the correct render API based on the available version of
// `react-dom`. This hack can be removed when support for older
// versions of React is removed.
// `react-dom`.
// Todo - remove check when support for React 17 is removed
const canUseNewReactRootApi =
reactDomVersion &&
(reactDomVersion.startsWith('18') ||
Expand All @@ -16,6 +16,7 @@ export const renderElement = (node, outlet) => {
const root = createRoot(outlet);
root.render(node);
} else {
// eslint-disable-next-line react/no-deprecated
ReactDOM.render(node, outlet);
}
};

0 comments on commit e20d06e

Please sign in to comment.