diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 331f0117..5f79a61c 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -23,5 +23,6 @@ module.exports = { '@typescript-eslint/no-empty-function': 'off', '@typescript-eslint/no-explicit-any': 'off', '@typescript-eslint/no-unused-vars': 'off', + 'react/react-in-jsx-scope': 'off', }, } diff --git a/.prettierrc b/.prettierrc index 6fed3d0f..c6838a94 100644 --- a/.prettierrc +++ b/.prettierrc @@ -2,5 +2,6 @@ "tabWidth": 2, "useTabs": false, "semi": false, - "singleQuote": true + "singleQuote": true, + "jsxSingleQuote": true } diff --git a/Eplant/Eplant.tsx b/Eplant/Eplant.tsx index 2c810bc1..7f3ed886 100644 --- a/Eplant/Eplant.tsx +++ b/Eplant/Eplant.tsx @@ -170,7 +170,7 @@ export default function Eplant() { } /> - } /> + } /> @@ -199,7 +199,7 @@ function DirectPane() { return loaded ? (
-
-
+
+
{panes[id]?.activeGene ? panes[id]?.activeGene + ' - ' : ''} {views.find((v) => v.id == panes[id]?.view)?.name}
@@ -261,7 +261,7 @@ export function MainEplant() { return ( <> { renderValues.buttons = [ - + , ] }} @@ -402,7 +402,7 @@ function EplantLayout() { ) : (
@@ -463,25 +463,25 @@ function EplantLayout() { renderValues.stickyButtons.push( addTab({ tabsetId: node.getId() })} - size="small" - key="add-tab" + size='small' + key='add-tab' > - - + + , ) renderValues.buttons.push( - + { const id = node.getSelectedNode()?.getId() if (id) makePopout(id) }} - size="small" - key="make-popout" + size='small' + key='make-popout' > - + - + , ) } } diff --git a/Eplant/UI/Dropdown.tsx b/Eplant/UI/Dropdown.tsx index 69f994a3..f5816397 100644 --- a/Eplant/UI/Dropdown.tsx +++ b/Eplant/UI/Dropdown.tsx @@ -70,9 +70,9 @@ export default function Dropdown({