Merged PR 170: Add new eslint rules

- naming-convention
- prefer-arrow-callback
- func-style
- import/no-default-export
This commit is contained in:
Eric Nguyen 2022-08-26 16:13:21 +00:00
parent 3f58c5ba5e
commit ad126c6c28
65 changed files with 781 additions and 784 deletions

View file

@ -3,7 +3,7 @@ import ReactDOM from 'react-dom/client';
import { App } from './Components/App/App';
import './index.scss';
function render(root: Element | Document): void {
function RenderRoot(root: Element | Document): void {
ReactDOM.createRoot(root.querySelector('#root') as HTMLDivElement).render(
<React.StrictMode>
<App root={root}/>
@ -12,10 +12,9 @@ function render(root: Element | Document): void {
}
namespace SVGLayoutDesigner {
export const Render = render;
export const Render = RenderRoot;
}
(window as any).SVGLayoutDesigner = SVGLayoutDesigner;
render(document);
RenderRoot(document);